[jboss-user] [EJB 3.0] - Re: Single persistence.xml file with multiple EJB jars

jaikiran do-not-reply at jboss.com
Fri Mar 28 09:04:36 EDT 2008


"rruppel" wrote : 
  | 
  | let me ask a question:
  | 
  | the persistence.xml has the information about the persistence driver (if it should use Postgresql or Oracle, for example)
  | 
  | but, if I put this information inside persistence.xml, if I change the database, I will have to recompile the jars with the correct persistence.xml
  | 
  | is there a workaround to avoid recompiling the jar?
  | 
  | 

rruppel,

I believe, you would have a build process where you can handle such things. If you are changing a DB server vendor, then definitely you would have to rebuild the jar (probably not recompile your classes).

P.S: This question is actually not related to what the original poster asked. If you have anymore questions on this please open a new topic in the appropriate forum. That will help in keeping track of the original topic being discussed :)



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

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



More information about the jboss-user mailing list