5 Replies Latest reply on Mar 6, 2004 11:48 AM by Adrian Brock

    Client can not locate JCA resource

    Raj Venkat Newbie

      Having problem connecting to a JCA adapter. Wrote custom JCA adapter fand deployed it in JBOSS 3.2.3. Works good with the following messages:

      22:45:10,238 INFO [MainDeployer] Starting deployment of package: file:/C:/servers/jboss-3.2.3/server/default/deploy/jcat.rar
      22:45:10,538 INFO [RARDeployer] nested deployment: file:/C:/servers/jboss-3.2.3/server/default/tmp/deploy/tmp31137jcat.rar-contents/jcat.jar
      22:45:10,578 INFO [RARDeployer] nested deployment: file:/C:/servers/jboss-3.2.3/server/default/tmp/deploy/tmp31137jcat.rar-contents/META-INF/apits-ds.xml
      22:45:10,779 INFO [STDOUT] In MyManagedConnectionFactory.constructor
      22:45:10,779 INFO [RARDeployment] Started jboss.jca:service=ManagedConnectionFactory,name=apits
      22:45:10,789 INFO [JBossManagedConnectionPool] Started jboss.jca:service=ManagedConnectionPool,name=apits
      22:45:10,789 INFO [STDOUT] In MyManagedConnectionFactory.setLogWriter
      22:45:10,789 INFO [STDOUT] In MyManagedConnectionFactory.createConnectionFactory,1
      22:45:10,809 INFO [STDOUT] In MyDataSource
      22:45:11,019 INFO [apits] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=NoTxCM,name=apits to JNDI name 'java:/apits'
      22:45:11,019 INFO [NoTxConnectionManager] Started jboss.jca:service=NoTxCM,name=apits
      22:45:11,029 INFO [MainDeployer] Deployed package: file:/C:/servers/jboss-3.2.3/server/default/deploy/jcat.rar

      When I try to access the resource from client, I get name not found exception. Can someone help. thanks

      In the client code:

      DataSource ds = (javax.sql.DataSource)initCtx.lookup("java:/apits");