Question: I have pathological dislike of using search and I cannot read DTDs. I also don't understand that questions about resource-ref should be in ejb forum.
How do I configure a resource-ref for a datasource: in ejb-jar.xml | <ejb-jar> | <session> | <ejb-name>Whatever</ejb-name> | ... | <resource-ref> | <description>The default DS</description> | <res-ref-name>jdbc/DataSource</res-ref-name> | <res-type>javax.sql.DataSource</res-type> | <res-auth>Container</res-auth> | </resource-ref> | </session> | </ejb-jar> | in jboss.xml | <jboss> | <session> | <ejb-name>Whatever</ejb-name> | ... | <resource-ref> | <description>The default DS</description> | <res-ref-name>jdbc/DataSource</res-ref-name> | <jndi-name>java:/MySQLDS</jndi-name> | </resource-ref> | </session> | </jboss> | Other frequently asked questions: 1) This binds a link to java:/MySQLDS in your ENC at java:comp/env/jdbc/DataSource 2) If you do not put anything in jboss.xml it uses java:/DefaultDS 3) The java:comp/env binding is only available inside the EJB (or a POJO it calls) when using the new InitialContext() jndi configuartion. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835228#3835228 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835228 ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
