This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes 2 JBoss servers pointing to 1 database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "2 JBoss servers pointing to 1 database" Watch "2 JBoss servers pointing to 1 database" New topic
Author

2 JBoss servers pointing to 1 database

Robbie Martinus
Greenhorn

Joined: Jan 16, 2008
Posts: 3
Hi all,

Do you think it is a good idea to run 2 jboss servers pointing to the same database?

One jboss would have one ear file, and the other one would have a newer version of ear file.

The purpose is for certain users to be able to use new functionalities in one of the jboss servers, while leaving the rest of the users the older and the more stable ear file.

If anyone has had a good or bad experience on this, please let me know.
Keerthi Sagar
Greenhorn

Joined: Apr 21, 2007
Posts: 28
=================
Do you think it is a good idea to run 2 jboss servers pointing to the same database?

One jboss would have one ear file, and the other one would have a newer version of ear file.

=================

Yes, you can have 2 JBoss servers pointing to the same database without any problems. If both servers are in same mechine then the only needed precaution is maintaining different port numbers for different servers.

In one of my project, I am supposed to run some batch jobs containing huge database round trips. I distributed my work by installing 3 JBoss servers with different port numbers in 4 different terminals. The database is same for all of those. So, totally 12 systems worked without any problems.

Same logic you can use with different .ear files also



Thanks and Regards,<br />Y. Keerthi Sagar.
Robbie Martinus
Greenhorn

Joined: Jan 16, 2008
Posts: 3
Thanks Keerthi.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 2 JBoss servers pointing to 1 database
 
Similar Threads
Migrating existing application to different business model
What is JBoss Clustered On?
J2EE application in production environment
Regarding WAR & EAR
How to run more than one JBoss 4.x server in one m/c