Hi Atul. Sorry, no I do not know, although I suspect so. We are using BMP Enity Beans, due to the unusual database design (CMP won't handle it). However, our BMP EJB's do automatically deploy, and successfully create and register their own connection pools in JNDI on demand. Otherwise, our entire security and database access framework would be non-functional.
You would have to look up the exact sequence of events, but there are a number of function calls made on the EJB during load and activation before any attempt is made to access the database. The exact sequence of calls is specified in the EJB specification. If you were to intercept one of these earlier calls to create your connection, I suspect that would work. We are doing something similiar. -Steve Setlur, Atul (MED) wrote: > Steve, > > Do you know if CMP Entity Beans deploy if the connection pool is > established programatically? Because in this approach the connection > pool is established, after the EJB jars have been deployed. > > Thanks, > -Atul > > -----Original Message----- > From: Stephen Davidson [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 09, 2001 4:06 PM > To: Orion-Interest > Subject: Re: Multiple data sources for each application > > > You can also create them programmatically, and then bind > them to the JNDI tree. But unless you are doing something > really weird (I am working on one such app, multiple database > schema with identical tables), I would recommend the approach > that Jeff is advocating. > > -Steve > -- Stephen Davidson Java Consultant Delphi Consultants, LLC http://www.delphis.com Phone: 214-696-6224 x208