Results 1 to 1 of 1
Thread: lookup of entity manager
- 04-14-2011, 08:02 AM #1Member
- Join Date
- Apr 2011
- Rep Power
lookup of entity manager
In our application we have the need or retrieving entity manager from 'pojo' classes.
The best way will be to lookup entity manager in JNDI, but as I undestand this feature is not avaialabe in weblogic.
I wanted to ask specifiaclly on the solution which is the most similiar I think to searching entityManagerFactory in JNDI:
- creating an 'entity manager factory' locator ejb. This is an ejb with no transaction attribute, which has one method getEntityManagerFactory. It injects entityManagerFactory and returns it.
Is this a valid solution to use?
- By research779 in forum JDBCReplies: 0Last Post: 01-25-2011, 08:07 PM
- By mackmak in forum Advanced JavaReplies: 0Last Post: 08-02-2010, 04:41 PM