2 Replies Latest reply on Oct 17, 2003 12:42 AM by micke

    Binding ConnectionFactory to java:/comp/env namespace

    Sandeep Rajpathak Newbie

      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"?>

      <adapter-display-name>Test Connector</adapter-display-name>

      <!-- If you supply the usr/pw from a JAAS login module -->

      <!-- if your app supplies the usr/pw explicitly getConnection(usr, pw) -->