"maffeis" wrote : | Is there a way of making such a JNDI lookup possible from a Servlet, without adding a <resource-ref> declaration to the web.xml file?
Yes you should be able to get theJCA CF by simply looking at the JNDI. Just define the -ds.xml and deploy it in the JBoss, later on in the servlet(or any web component) just make this call | InitialContext context = new InitialContext(); | ConnectionFactory cf = (ConnectionFactory)context.lookup(JNDINAME); The ConectionFactory/JNDINAME should be defined in the -ds.xml at <connection-definition>/ <jndi-name> tags. Check this for more details http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch7.chapt.html View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266013#4266013 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266013 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user