I too am researching mixing EJB 2.1 and 3.0 Beans in the same .jar file.  I 
have verified that you can mix EJB2.1 SLSB and EJB3 SLSB in the same .jar file. 
 Unit tests verified that they work perfectly together.

HOWEVER, currently I am not able to mix EJB2.1 entities with EJB3 entities.

* If persistence.xml is placed inside the .jar file, then the EJB3 deployer 
kicks in and only EJB3 entity beans are deployed.

* If I remove the persistence.xml file, then the normal deployment takes place 
and only my EJB2.1 entity beans are deployed.

It would be really really great if someone could shed light on this issue.  I'm 
sure there are many of us who want to upgrade to EJB3 but can only do so 
partially (and is one of the objectives of EJB3 to allow interoperability if 
I'm not mistaken).  It would be a problem if EJB2.1 and EJB3 entities had to be 
packaged in different .jar files as I would not be able to implement CMR 
between those entities.

Thanks very much in advance.

ps. sorry for the same posting to two different forum messages, as they are 
similar.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026842
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to