[jboss-user] [EJB 3.0] - Re: There is no default persistence unit in this deployment

davestar do-not-reply at jboss.com
Fri Jan 16 15:55:07 EST 2009


Thanks Everyone, the JIRA ticket can be closed.
Thanks jaikiran! that worked when I moved the persistence.xml to the META-INF within the EJB jar.

I also found that with my current structure of having persistence.xml at the top level META-INF within the ear, it works when I have the unitName for the @PersistenceContext annotation.

Eg:
@PersistenceContext(unitName=PERSISTENCE_UNIT_NAME)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202576#4202576

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202576



More information about the jboss-user mailing list