Dear all,
I constructed an ear consisting of an ejb-jar and a persistence archive. Both, the ejb-jar and the persistence archive have a persistence
unit of the same name.
I try to use the persistence archive's persistence unit in the
ejb using the # syntax as described in JSR 220 (JPA pdf), 6.2.2 (page 141).
Unfortunately this results in the following runtime exception:
Unknown entity bean class: class persistence.Customer, please verify that this class has been marked with the @Entity annotation
If the persistence.xml file is removed from the ejb-jar everything works fine!
I'm using glassfish / oracle-toplink-essentials.
Has anyone tried a similar scenario with this app serv / persistence provider ? Did it work ?
Thanks for your help.
Ralph