GlassFish provides you a Connection Pool. The way it is available to you is through the data-source
definition. Thus, you lookup something like "jdbc/MySQLDB" and you get a connection from the
connection pool that points to that Database. All the connections in connection pool already
implement the Connection Interface (
http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Connection.html).
But since these are two session beans, do you have to have the same connection?
Maybe I am misunderstanding something ...
Regards,
Kedar
[Message sent by forum member 'km' (km)]
http://forums.java.net/jive/thread.jspa?messageID=241421