[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] Re: use one connectio nper user - no connection pool

Hm. That is unexpected; appearantly some data is stored statically. That amazes me, since all configuration is done via instance level methods.

How about configuring two identical EMFs? Each EMF has a name in the persistence.xml; create two identical ones.



Thomas Haskes wrote:
Thanks for the fast answer. How can I force the method
Persistence.createEntityManagerFactory() to create a second connection
pool? According to the EL output the persistence.xml is read only once,
and so is the creation of the entitymanager. The first time i create an
EMF i see some output and the first time I create an EntityManager I see
7 logins from the first user (which is the default connection pool i
think), The second time I do all this I get a different EMF object and
EM object, but i see no output and no more logins from the second user.
Don't know why.