File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Stateless Session EJB's in Hosted env Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Stateless Session EJB Watch "Stateless Session EJB New topic

Stateless Session EJB's in Hosted env

steve mcdonald
Ranch Hand

Joined: Nov 18, 2005
Posts: 46

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.
I agree. Here's the link:
subject: Stateless Session EJB's in Hosted env
jQuery in Action, 3rd edition