Ok, so it turns out that deploying the JCA resource adapter in JBoss 4.0 isn’t all that difficult. Here is an example file (I called it tamino-ds.xml) that will do it:
<?xml version="1.0" encoding="UTF-8"?>
<connection-factories>
<tx-connection-factory>
<rar-name>TaminoJCA.rar</rar-name>
<jndi-name>eis/ActiveWebflowTaminoDB</jndi-name>
<connection-definition>
com.softwareag.tamino.db.api.connector.TaminoDataSource
</connection-definition>
<config-property name="taminoURL">
http://localhost/tamino/MyDB_EWittmann
</config-property>
</tx-connection-factory>>
</connection-factories>
This is great, but now I can’t seem to get a Non-Managed version of the adapter to work. I have the SAG supplied versions of TaminoJCA.rar - one is localTX and the other is noTX. What I really need is something like a TaminoJCA_nonManaged.rar. Anyone have any thoughts?
So far I have subclassed the TaminoNonManagedConnectionFactoryImpl in order to provide a public constructor. When I ran with that, a non managed TaminoDataSource was bound to JNDI, but when I used it and closed the connection, exceptions were thrown. So I changed my code to proxy the TConnection (that I get back from the TaminoDataSource) to a proxy class that ignores the call to close(). This seemed to work, but at some point the factory gets “closed” by JBoss and stops working.
Now I’m confused…
#API-Management#webMethods-Tamino-XML-Server-APIs#webMethods