Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

where groupId and artifactId are from the module the J2CA object is deployed in, and the j2eeType and name are from the AbstractName or ObjectName identifying the object. The j2eeType is normally JCAManagedConnectionFactory or JCAAdminObject. Note that although this format appears to specify a gbean such as a ManagedConnectionFactoryWrapper gbean what is actually obtained from JNDI is what you get by calling the $getResource() method on this gbean, in this case a connection factory such as a DataSource. Similarly for a JCAAdminObject you are likely to get a Topic or Queue if you are working with a JMS adapter such as that for ActiveMQ.

...

You can customize which objects are bound and where they end up with these properties from var/config/config-substitutions.properties:

  • ResourceBindingsFormat default
    No Format
    groupId/artifactId/j2eeType/name
    
    Specify a format string. "variables" are enclosed in curly brackets
    No Format
    {}
    and text outside these brackets is copied literally. You can use any component of the module artifact (groupId, artifactId, version, type) and any name-value pair in the object name as a variable.
  • ResourceBindingsNameInNamespace default jca: There seems to be a bug in xbean-naming that requires this to be different from any other nameInNamespace in a context gbean. So, java: doesn't seem to work
  • ResourceBindingsNamePattern default null. If set, a regexp matched against the name component of the object name to filter those object to be bound.
  • ResourceBindingsQuery default ?#org.apache.geronimo.naming.ResourceSource. This can also be used to filter which objects will be bound for instance
    No Format
    ?j2eeType=JCAManagedConnectionFactory#org.apache.geronimo.naming.ResourceSource 
    will only bind DataSources and ConnectionFactories and not AdminObjects.

...