For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > March 2004 > Single JDBC connection for EJB CMP?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Single JDBC connection for EJB CMP?
davout

2004-03-19, 8:45 pm

Am I right in thinking that an EJB JAR using CMP can only use a single JDBC
connection? (In my case I'm using JBoss 3.x)





John C. Bollinger

2004-03-19, 8:45 pm

davout wrote:

> Am I right in thinking that an EJB JAR using CMP can only use a single JDBC
> connection? (In my case I'm using JBoss 3.x)


No. CMP is not required to use JDBC for persistence at all. If it
does, then the spec has nothing to say about how many connections will
be used either serially or simultaneously. It must be possible to
configure at least some of these things in the app-server-specific
deployment file, but you should certainly not assume that only one
connection will be used unless you find a documented way of configuring
things that way.


John Bollinger
jobollin@indiana.edu


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com