Hi,

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?