Hello EJB Gurus,
Is it possible to dynamically change the database into which data is persisted at run time depending on a criteria for an Entity Bean which uses container managed persistence?
Or is the best solution for the problem is to deploy the entity bean with different deployment descriptors which point to different databases and deploy it in JNDI in a context ejb/<criteria>/bean. A session bean can do the look up from JNDI for the specific EJB?
I don't want to use Bean Managed Persistence if there is a choice..
Thanks in advance for your help..
Regards,
Murali
-
CMP Entity Bean Accessing Multiple Databases (3 messages)
- Posted by: Lakshminarayanan Muralidharan
- Posted on: March 15 2001 12:28 EST
Threaded Messages (3)
- CMP Entity Bean Accessing Multiple Databases by Paul Reed on March 17 2001 02:22 EST
- CMP Entity Bean Accessing Multiple Databases by Lakshminarayanan Muralidharan on March 19 2001 10:28 EST
- CMP Entity Bean Accessing Multiple Databases by Lakshminarayanan Muralidharan on March 19 2001 10:28 EST
-
CMP Entity Bean Accessing Multiple Databases[ Go to top ]
- Posted by: Paul Reed
- Posted on: March 17 2001 02:22 EST
- in response to Lakshminarayanan Muralidharan
I do this today, simply by changing the deployment descriptor to point to a different data source.
I am using BEA's Weblogic Server 6.0 -
CMP Entity Bean Accessing Multiple Databases[ Go to top ]
- Posted by: Lakshminarayanan Muralidharan
- Posted on: March 19 2001 10:28 EST
- in response to Paul Reed
Thanks Paul. Do you have different JNDI name for the bean per data source? -
CMP Entity Bean Accessing Multiple Databases[ Go to top ]
- Posted by: Lakshminarayanan Muralidharan
- Posted on: March 19 2001 10:28 EST
- in response to Paul Reed
Thanks Paul. Do you have different JNDI name for the bean per data source?