users@glassfish.java.net

Re: Sharing a Connection between EJB's

From: <glassfish_at_javadesktop.org>
Date: Tue, 23 Oct 2007 06:05:12 PDT

Yes, it is applicable for all appservers.

 ejb-jar.xml 's resource-ref has the sharing scope : default : shareable
 <resource-ref>
        <res-ref-name>DataSource</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
[b] <res-sharing-scope>Shareable</res-sharing-scope>[/b]
      </resource-ref>
[Message sent by forum member 'jr158900' (jr158900)]

http://forums.java.net/jive/thread.jspa?messageID=241651