• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Deploying the same ear twice  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 will suppress my every urge. But not this shameless plug:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!