Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stateless Session EJB's in Hosted env  RSS feed

steve mcdonald
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!