I went back and looked at the code that you posted:
anonymous wrote :
| Context ctx = new InitialContext();
| DataSource ds = (DataSource) ctx.lookup("project");
This should be:
Context ctx = new InitialContext();
| DataSource ds = (DataSource) ctx.lookup("java:/project");
And with this lookup code, you need not have the <use-java-context> attribute
in the ds.xml.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042452#4042452
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042452
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user