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.
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.
You'll probably get better info asking on the servlet forum, this is really a servlet container config question.