Dave; JBoss specifically puts the DataSource bindings in the java:/ namespace of JNDI to make it inaccessible to external VMs, since by definition, they cannot use any objects bound in that space.
In the case of EJBs, you have two options. You can reference the java:/ namespace directly to retrieve the DataSource, or you can create a link that will make it appear as though your DataSource is in your EJB's java:comp/env/jdbc/ namespace. The later is probably preferred since the spec says that an EJB has no access to JNDI outside of its own java:comp/env/ environment. The easiest way to get this reference in the deployment descriptor, and the easiest way in general to write EJBs is to use XDoclet. Skip the 94 page tutorial and just go by the examples in XDoclet or XPetStore. XDoclet : http://xdoclet.sourceforge.net XPetStore: http://xpetstore.sourceforge.net/ And you will need Ant as well. Cheers and good luck. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828728#3828728 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828728 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user