[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yeah Right.. This is what happens if you have a long weekend ofvacation!!!




actually as far as the long weekend was concerned you should have just
enjoyed 4th of july. It was quiet a view outside ;).
ok now to answer your question.
to start with
- You dont open socket connections when using AppServers. Let the webserver
do that for you. You take care of the service u want to provide
- You dont have to necessarily worry about LoadBalancing Appserver also
takes care of that (you just have to break your head how). read the J2EE
specs

Now for some aracane reason if you must do such a thing as you explained in
your mail then treat the appserver as a container that is letting you run
daemons(bkgnd ps). Take care how you are going to do session management.
Using any IP based load balancer will be fine. You wont have to write
special code for that.  But if you go via this approach then be prepared to
answer reliability, scalability, availability and maintenance as your top
questions.

-vikrant




From:  KUMARAN MANI <kumaranm@yahoo.com> on 07/08/2002 04:01 PM

To:    ajug-members@ajug.org
cc:

Subject:    Yeah Right.. This is what happens if you have a long weekend of
       vacation!!!

Let us say, I have built a socket based Java
Client/Server Application. Here is the brief
description of it.

The client (Socket, could be a Java app or something
else.!!! does not matter to me) is running in a remote
place trying to open socket connection to the server.

The server (ServerSocket) is launched on a port (eg;
9001)and is listening for new client connections on
that port. So far this is a simple application (jar
file) deployed in a JVM.

Once the client initiates a connection request, the
server accepts the connection and a new session are
established.

Further on this active connection, the client can send
data ((text/ xml/ ascii /etc) requests and receive
responses until the connection is closed or dropped.

So far we are cool, no problems and things work.

Here are my questions?

For some unexplainable reasons (let us not get into
those), I have to deploy this application in an
Application server. ?

Basically, I have two instances of Application servers
(they could be WAS / Weblogic) clustered and load
balanced (eg; network dispatcher as a load balancer).

What I am trying to understand is;

How are things going to change? Can the client still
open a socket connection? Do they have to talk thru
the load balancer or do they need to know each IP
address of my app server boxes.?

Assuming the client talks thru the load balancer (like
a proxy IP for both those app servers), I guess, the
socket connection on each of these boxes need to be
maintained synchronously, meaning, once a client makes
a connection request to the load balancer, it needs to
/ will open two connections, one for each App. Server
and have to do the same thing for closing connections.
Am I right?

Basically I am getting confused, because of several
reasons; to begin with I clearly don't understand the
logic behind the load balancer and clustered
environment. And how they have an effect on Socket
programming? So any explanations on those items are
welcome.

So if you can make out the question  and have some
suggestions / answers / solutions, please help. Email
me. Thanks.

Kumaran

I need a vacation..


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com