aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Clustering of EJB/App Server - What Really Do? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Clustering of EJB/App Server - What Really Do?" Watch "Clustering of EJB/App Server - What Really Do?" New topic
Author

Clustering of EJB/App Server - What Really Do?

Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
I have a question about the implications of clustering of an EJB appserver. When you cluster an app server, does that automatically cluster the databases (assuming that's your data storage backing the EJBs)they "represent", assuming you only interact with the data through the app server? In other words, if I have the following:


Would clustering those EJB App servers cause them to stay in synch and as a result cause their databases to be kept in synch? Also, would clustering them also allow transactions to protect the data properly between the two? So if I am editing on EJB App Serve 1 and someone tries to edit the same data on EJB App Server 2, they cannot, correct?
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Normally, clustered application servers would share the same database.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Sergiu Truta
Ranch Hand

Joined: Dec 16, 2003
Posts: 121
In a clustered environment you use several application servers but the database server is the same. Also a clustered environment should work as if it were a single application server and a mechanism must be implemented so that no two users can edit the same record in the same time. If the cluster is not working as if it were a single application server than something is wrong with it.


...watch me...as I'm walking the path...
Tonny Tssagovic
Ranch Hand

Joined: Dec 30, 2003
Posts: 226
Well, usually your app servers access the same DB server to make sure you have a consistent state. The database servers can themselves be clustered to deal with high load. In case you are using one DB server, and it starts showing performance problems (and you need a cheap/free solution) then I would suggest you to take a look at Clustered-JDBC.
Clus. JDBC
 
 
subject: Clustering of EJB/App Server - What Really Do?