This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Deploying the same ear twice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Deploying the same ear twice" Watch "Deploying the same ear twice" New topic
Author

Deploying the same ear twice

Pablo Mu�iz
Greenhorn

Joined: Jan 19, 2004
Posts: 5
Hi all,
I'm facing a problem I've been trying to solve for several days. The fact is I have an application wich uses Struts + EJBs.
My intention is to reuse it deploying it several times under different contexts. I've changed JNDI names associated with entity beans and also datasource info.
But my surprise is when I deploy two instances of this app under two different contexts using two different datasources, one of them empty.
When I access the app with the empty datasource I get info from the other app. It is like it is using EJBs from the other app.
This make me think of several questions. Is it possible to reuse code with only changing deployment descriptors? Maybe I've lost some step?
Please, any help will be very, very appreciated. This issue is making me insane.
Thanks in advance.
Pablo.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying the same ear twice
 
Similar Threads
Inter Servlet Communication
design help
performance increase - move to ear - suggestions
Switch abuse?
Session Timeout between different web applications