I have basically coded a Resource Adapter which is required to work on WebLogic, WebSphere, Oracle 9, SUN One and JBoss application server.
I am binding the ConnectionFactory of my RA to a particular name. In case of all the other app. servers, the factory get bound to java:/comp/env/. However in case of JBoss it get bound to java:/
Obviously I want to avoid writing Application Server specific code in my adapter.
Is there any way by which I can bind to java:/comp/env namespace. I read a lot posting about this but none of them mentioned how to do it.
I am using JBoss 3.2.1 and following is my TestConnector-ds.xml
----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<connection-factories>
<no-tx-connection-factory>
<jndi-name>mytest/connector</jndi-name>
<adapter-display-name>Test Connector</adapter-display-name>
<!-- If you supply the usr/pw from a JAAS login module -->
<security-domain/>
<!-- if your app supplies the usr/pw explicitly getConnection(usr, pw) -->
<application-managed-security/>
</no-tx-connection-factory>
</connection-factories>
--------------------------------------------