[jboss-user] [EJB 3.0] - Re: Package ejb2.1 entities along with ejb3.0 session deans

arisa do-not-reply at jboss.com
Sat Mar 10 01:37:15 EST 2007


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=4026841#4026841

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



More information about the jboss-user mailing list