[jboss-user] [JNDI/Naming/Network] - Re: JNDI lookup for Data source
jaikiran
do-not-reply at jboss.com
Mon Nov 20 02:36:23 EST 2006
resource-ref are not mandatory but are recommended. If your java utility is being used in a servlet, then the resource-ref will go in the web.xml. If the utility is being used in a EJB then the resource-ref will go in the ejb-jar.xml. In either case, the java utility code will not change. Your code will look like:
| Context ctx = new InitialContext();
| ctx.lookup("java:comp/env/.......");
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987224#3987224
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987224
More information about the jboss-user
mailing list