Hi Everyone,
  Our EJB project is geared toward providing access to mainframe data.  We will be 
using MQSeries for the communication mechanism.  For our entity beans we will be using 
MQSeries with BMP.  The question I have is how to provide an MQSeries connection pool 
for our beans to use.  There are two approaches that I have thought about and would 
like some feedback on.

1.  Create a static class with static properties (synchronized) and methods.  This 
class will have an init() method that will be called once to create the connections.  
This init() method will need to be called by some bean.  What happens to the static 
class if the bean gets removed/passivated?

2.  Create a stateless session bean to hold the pool, and configure the server so that 
only one of these beans can be created.  The problem once again is the server removing 
the bean.  I could put in code to close/reopen the connections in the ejbRemove(), but 
I don't want the overhead of reconnecting.

Thanks!

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to