-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: How to properly isolate EJB applications?
PostPosted: Fri Feb 29, 2008 6:02 am 
Beginner
Beginner

Joined: Mon Aug 27, 2007 8:10 am
Posts: 37
On our server we have one EJB3 persistence unit (unit1.jar) up and running.
Now we need to deploy a newer version of the persistence unit so that a new version of our web-application can use new features on the persistence layer.
We also need to keep previous version, so that the old application did not get broken.

To achive that we build a jar with a different name (unit2.jar) and gave a different name to the persistence unit in persistence.xml:
Code:
persistence-unit name="unit2"

and different jndi-name in jboss.xml:
Code:
<jndi-name>unit2/myDAO/remote</jndi-name>

Though, we have not changed ejb-name, using the same as in unit1
Code:
<ejb-name>myDAO</ejb-name>

When we deploy unit2.jar we get exception:
org.hibernate.AnnotationException "Use of the same entity name twice"

Please give as an advice how to overcome this issue or point to a source where I can read about this.

Thanks


Top
 Profile  
 
 Post subject: Re: How to properly isolate EJB applications?
PostPosted: Tue Mar 04, 2008 10:58 am 
Beginner
Beginner

Joined: Mon Aug 27, 2007 8:10 am
Posts: 37
Anyone can help?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.