Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does a bean access multiple databases in the same transaction?

bean databases transaction
0
Posted

How does a bean access multiple databases in the same transaction?

0

Location: http://www.jguru.com/faq/view.jsp?EID=120647 Created: Aug 6, 2000 Modified: 2000-08-07 08:28:02.592 Author: Robert Castaneda (http://www.jguru.com/guru/viewbio.jsp?EID=4362) Question originally posed by srinivas rallapalli (http://www.jguru.com/guru/viewbio.jsp?EID=14867 In EJB 1.1, the way your EJB accesses multiple databases is the same as for accessing a single database: the datasource is defined in the deployment descriptor and looked up by the EJB using the JNDI environment naming context, that is, java:comp/env. It is the responsibility of the container/server to handle the transaction context propagation and the synchronization/2PC behavior. Warning: this functionality, accessing multiple databases in EJB within the same transaction context, is not supported by all products.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123