[jboss-user] [EJB 3.0] - Re: address CMP beans from session bean in other JAR but sam

2006-11-13 Thread sunstarnova
Zuerst: Danke nach Berlin! I checked the Beans and the Beans are not a double deployment. They even deploy once and they deploy without errors. I think I just missed something. Maybe it's the Deployment descriptor I was not aware of. All my both JARs have is persitence.xml (both look the

[jboss-user] [EJB 3.0] - Re: address CMP beans from session bean in other JAR but sam

2006-11-13 Thread sunstarnova
The deployment descriptors seem not to be the problem as the EJB 3 Spec states that it's not needed: | Definition of the Java language metadata annotations that can be used to annotate EJB applications. | These metadata annotations are targeted at simplifying the developer?s task, at

[jboss-user] [EJB 3.0] - Re: address CMP beans from session bean in other JAR but sam

2006-11-13 Thread sunstarnova
ANYWAY: ! ! ! I DO ALSO APPRECIATE DEPLOYMENT DESCRIPTOR EXAMLES ! ! ! Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3985396#3985396 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3985396

[jboss-user] [EJB 3.0] - Re: address CMP beans from session bean in other JAR but sam

2006-11-13 Thread sunstarnova
So, die Lösung ist gefunden: -Man benötigt nur einen persistence.xml - Eintrag in dem JAR mit den Entities, die andere kann leer bleiben. -Als Verweis benutzt man dann | @PersistenceContext(unitName=../NAMEDESANDERENJARS.jar#PERSISTENCEUNITNAME) private EntityManager em; | Also z.B. |

[jboss-user] [EJB 3.0] - Re: address CMP beans from session bean in other JAR but sam

2006-11-09 Thread mwoelke
Could it be that you have the Config entity bean in both of your jars inside the ear? Or maybe there is another deployment unit in the deploy dir containing this entity bean? We had the same exception when deploying the same entity bean twice with different ears. Regards, Milan Wölke View