cancel
Showing results for 
Search instead for 
Did you mean: 

EntityManagerFactory jndi lookup (JPA)

Former Member
0 Kudos

Hi

How can i obtain a EntityManagerFactory in the NW CE 7.1.

My object is not a container managed object (it's a simple POJO) so container injection want work in that case, so i guess the only way to get EntityManagerFactory in this case ( according to the JPA spec) is through jndi lookup, but

i cant find its jndi name on jndi browser tab in the SAP NetWeaver Administrator panel.

Maybe it because of the malformed presistence.xml file - perhaps a property missing.

My persistence.xml consists of the following entries

<persistence-unit name="test1" transaction-type="JTA">

<jta-data-source>testDataSource</jta-data-source>

<class>test.TestEntity</class>

<jta-data-source>

<persistence-unit>

Br

PF

Accepted Solutions (0)

Answers (1)

Answers (1)

Vlado
Advisor
Advisor
0 Kudos

Please follow [this|; thread.