tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "m.s" <m.vollm...@sinnerschrader.de>
Subject Problem using EntityManagerFactory emf = Persistence.createEntityManagerFactory
Date Wed, 17 Feb 2010 09:59:51 GMT

Hallo

I managed to setup openejb with my project but running any test fails due to
the following:
We are using EhCache to cache some data. Unfortunatly the CacheEntryFactory
needs the/an EntitiyManager to create the cache entries. This is done by
these lines:
   EntityManagerFactory emf =
Persistence.createEntityManagerFactory("<name_of_persistent_unit>");
   EntityManager em = emf.createEntityManager();

This fails because the PersistenceProvider tries to connect to
localhost:3700 which of course fails.

The remoting capabilities of openEjb are not inteded to cover this so i am a
bit stuck now :-(

Regards
-- 
View this message in context: http://n4.nabble.com/Problem-using-EntityManagerFactory-emf-Persistence-createEntityManagerFactory-tp1558438p1558438.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message