• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Stateless Session EJB's in Hosted env

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well,

Has anyone developed J2EE based application, that is hosting serving multiple dynamically growing client's. At any time, the clients may be added or removed from hosted envoronment with out having to shutdown the application server.


Requirement :
1. Develop a J2EE application, that would work in a hosted environment.
2. Each user logged into the system is identified by the Company Name.
3. Each company has its own exclusive application database.
4. There are separate company based DB connection pool DataSource's configured in the EJB container, so as to enlist the transactions in the container managed transactions.

Assumptions :
Application is stateless and only Stateless session EJB's are used, that may use several tiers of functional compositions of Classes/objects/helpers/DAO etc.,

1. Say there are 5 clients hosting environment. Do i need to define the resource references of all the JNDI datasources for all the customer databases in the ejb-jar.xml file, for every EJB deployed ?

It is a pain, how do i get around that, so that the addition of new clients to the hosted environment is seamless with out having to redeploy the several ejb's by adding the new company.

Any better ideas are always welcome ?

All ideas are greately appreciated.
reply
    Bookmark Topic Watch Topic
  • New Topic