wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes connections and CMP's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "connections and CMP Watch "connections and CMP New topic
Author

connections and CMP's

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi all,
i have a theoretical questions. When i have three CMP objects
within one transaction how many connections are allocated from
the connection pool ? Is it only one connection object which is
shared by the CMP's or are there three connections ?
(BTW: I am talking of EJB 2.0)
Thx in advance
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
This is managed by the Container, so it is really implementation dependent. In other words it is not mandated by the EJB Specification. However, I would think that given the fact that they are all part of the same transaction then they would likely use the same connection.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connections and CMP's
 
Similar Threads
Singleton Pattern
multiple DB connections using hibernate
Illegal use of 1PC datasource in Transaction
how to apply transactional insert is a scenario that 3 tables are going to change?
CMP remote component interface business methods