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 EJB and other Java EE Technologies and the fly likes Best way to structure an enterprise application 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 » Java » EJB and other Java EE Technologies
Bookmark "Best way to structure an enterprise application" Watch "Best way to structure an enterprise application" New topic
Author

Best way to structure an enterprise application

Brent Falk
Greenhorn

Joined: Feb 23, 2004
Posts: 2
I'm wondering what the best way to set up an enterprise app is. For example, say i'm developing an application for a hospital clinic. As part of this application, i determine that i need a scheduling component, a patient management component, an employee management component, and a web client. Each of the components is deployed as an ejb-jar with a session facade. If i want to reuse some of the functionality in one or more of the components in another application (e.g. use the employee component for a payroll application), what is the best way to deploy this application? Should i put all of the components, as well as the web client, in an .ear file, then bundle the same components in the second application's .ear file, deploying the same beans with different jndi names? Or should i keep these reusable components out of the application's ear and deploy each of them on their own, so there is only one version of each living on the server? Is there a best practice for this kind of situation?

Thanks,
Brent
 
Consider Paul's rocket mass heater.
 
subject: Best way to structure an enterprise application
 
Similar Threads
Integrating JForum into another application
long post IBM.158
Integrating Jforum with other application but within a single ear
Passed 700,701 and 340 last Thursday
Deploying servlet in tomcat