Thanks for the response. I can see we used to use a method to
configure the same XADataSource as the container in older version of
Narayana:
http://anonsvn.jboss.org/repos/labs/labs/jbosstm/branches/JBOSSTS_4_6_1_GA_CP/atsintegration/classes/com/arjuna/ats/internal/jbossatx/jta/AppServerJDBCXARecovery.java
but it wasn't as simple as looking up the DS, it was a set of JMX
calls to get the parameters to do that:
ObjectName objectName = new
ObjectName("jboss.jca:name="+_dataSourceId+",service=ManagedConnectionFactory");
String className = (String)server.invoke(objectName,
"getManagedConnectionFactoryAttribute", new Object[]
{"XADataSourceClass"}, new String[] {"java.lang.String"});
String properties = (String)server.invoke(objectName,
"getManagedConnectionFactoryAttribute", new Object[]
{"XADataSourceProperties"}, new String[] {"java.lang.String"});
ObjectName txCmObjectName = new ObjectName("jboss.jca:name="
+_dataSourceId + ",service=XATxCM");
String securityDomainName = (String)
server.getAttribute(txCmObjectName, "SecurityDomainJndiName");
etc...
Is it possible to do anything similar with later revisions of
IronJacamar at all (i.e. access the configuration for a datasource
looked up by JNDI name)?