[jboss-user] [EJB 3.0] - Re: Reference-Problems within an ear

jaikiran do-not-reply at jboss.com
Mon Apr 14 03:20:23 EDT 2008


"Hilwi" wrote : 
  | I created another ejb-jar named OpenJbs_EJB.jar now that only contains the persistence.xml with the jar-files to scan:
  | 

This need not be an EJB jar. It can be a simple jar file and in the application.xml file you can map it as a java module instead of an ejb module:



  |   <module>
  |     <java>OpenJbs_EJB.jar</java>
  |   </module>
  | 

"Hilwi" wrote : 
  | This seems not to be a very clean solution to me because the OpenJbs_EJB.jar is just a dummy. Isn't it possible to put the persistence.xml elsewhere?

As far as i know, this is the only way to have multiple jars containing the entities, all belonging to a single persistence unit. In your case, you had to create the dummy jar because you are planning to use the modules across multiple applications.

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

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



More information about the jboss-user mailing list