Hey,
I success to include entites from another jar in the persistence , but the problem is that my DAO's from another jar cant reference to this persistence unit.
I get an exception in the deploy:
Code:
14:01:55,513 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:ear=insite-1.0-SNAPSHOT.ear,jar=serverInfrastructure-1.0-SNAPSHOT.jar,name=AuditorDao,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=ver-1.0-SNAPSHOT.jar,unitName=BRL-Server
The DAO in the other jar failed to find the persistence unit which declared in the "server-1.0-SNAPSHOT.jar".
Here is the injection:
@PersistenceContext(unitName="server-1.0-SNAPSHOT.jar#BRL-Server")
Code:
Thank you