Like it spring manages the em creation, just link it to the transaction
manager of tomee with a lookup.

I advice you to move the persistence.xml to avoid tomee to manage it.

- Romain
Le 9 juin 2012 22:03, "Bradley Rintoul" <brint...@sbcglobal.net> a écrit :

>
>
> I think I'm having some trouble posting XML, so I'll just try to describe
> what
> I've got going on...
>
> It appears that TomEE is recognizing my PersistentUnit named "stuffDb".  I
> can
> see a line which names it as such.
>
> Within a Spring configuration file, I am trying to set up a
> LocalContainerEntityManagerFactoryBean with "stuffDb" as its PersistentUnit
> property.  When the bean is being created, the Spring framework is
> claiming it
> can't find "stuffDb".  Does anyone know the mechanism in use here?  Is it
> looking in JNDI?  How can I find the PersistentUnit in JNDI?
>
> Thanks!
>
> Brad

Reply via email to