EJB3 Clustering , Java Standalone Client

I'm trying to design a system where in a standalone java client invokes an EJB3 on my application server. I'm trying to come up with a solution for Clustering,
handle failover. I have only two application servers in the cluster, and no load balancer server. Do I need to program to switch between the application servers
on my client.
dolphin_gAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gibu GeorgeChief Technology OfficerCommented:
Which App server are you using?
0
dolphin_gAuthor Commented:
JBoss AS 5.x
0
Gibu GeorgeChief Technology OfficerCommented:
I don't think you need do any coding efforts to configure clustering in JBoss. Even if required it will be minimal
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

a_bCommented:
On Jboss, the if you use the all configuration to deploy your war file, you can configure  to handlefailover. The point of having the clustering is so that the client is does not know of the failure. You donot need any code on the client to handle that.
0
Gibu GeorgeChief Technology OfficerCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mrjoltcolaCommented:
If you have no intermediary or load-balancer, then you will need client side failover. If node1 is down, it cannot forward to node2. So either use an intermediate server, or client-based failover.

If you do not, you can still get pseudo load-balancing while both nodes are up, but one of the IPs is the primary, and it is the single point of failure for failover.
0
mrjoltcolaCommented:
The client will have to know one way or the other, about all nodes. Otherwise, there _must_ be failover on the server or intermediate. gibu_george is correct, though, you should be able to configure all JNDI addresses on the client side.

Section 2.2.2. in the clustering guide.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.