Norton Lam wrote:

>   
> When called from an entity bean, this method works fine.  However,
> when called from outside an entity bean, I get:
> 
> NamingException: mysql not bound


Define "outside an entity bean." That code _should_ work from an entity 
or a session or a servlet/JSP running under embedded tomcat/jetty. You 
might need an empty jboss-web.xml to make it work from servlets.

It _will not_ work from outside of the VM that JBoss is running in.

Note that looking up under that name isn't necessarily portable accross 
application servers, and goes against the J2EE recommendations. You 
should bite the bullet and put resource references into your descriptors 
( (ejb-jar.xml && jboss.xml) || (web.xml && jboss-web.xml) )


-danch




_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to