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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...