3 Replies Latest reply on Sep 12, 2002 1:07 PM by davidjencks

    Accessing adapter through servlet

    guru

      Hi,

      is it possible to acess the adapter that is deployed in JBOSS from a servlet or jsp that is deployed in TOMCAT ?

      if it is possible can u tell me how to configure it ...

      regards,
      Gurumurthy R.

        • 1. Re: Accessing adapter through servlet
          davidjencks

          As long as you are running tomcat integrated in the jboss vm it is possible, look it up as java:/jndiname where jndiname is specificed in the *-service.xml file deploying your adapter.

          The java:/context is not accessible outside the jboss vm and jca adapters are not intended to be accessible outside the vm in which they are deployed.

          • 2. Re: Accessing adapter through servlet
            guru

            Hi David,

            i accept ur argument,

            i have deployed the adapter in JBOSS along with *-servive.xml file.

            im deploying my (.war) file in Tomcat webapps directory.
            how will i configure my web.xml file ?

            how will i be able to lookup the adapter .... is it through resource-reference or direct JNDI lookup ..

            coz, we used to lookup the adapter only thrugh its reference configured in web.xml file.... and JNDI Name

            Tomocat doesn't comeup with anyof its xml file for .war configuration.... it gives only server.xml file ....

            i would like to know how to confgure my JNDI name and give it reference .. so that in my web.xml, i can have resource-ref to the adapter ....

            please let me know if i understood anything wrong.

            regards,
            Gurumurthy R.

            • 3. Re: Accessing adapter through servlet
              davidjencks

              You'll probably get better info asking on the servlet forum, this is really a servlet container config question.