users@glassfish.java.net

Re: If a instance is stopped, how to continue the session in the other?

From: <glassfish_at_javadesktop.org>
Date: Fri, 25 Apr 2008 12:42:32 PDT

first of all thanks a lot guys for you replies,

 I have now other simple doubt that I would like to clarify:
- How to copy the DAS to the both machines, I mean when accessing the "localhost:4848" I would like to see the changes on both machines. By copying all the domain folder I achieved that but it looks not a wise solution. Or this is the method to do it?

  So if I understood well I have some ways to do the high availability even when I execute the command "asadmin stop-domain" in the primary machine.

  - a load balancer, but is not probably suitable for my case;
  - I'm was thinking about using one machine that sends all the requests to one IP address. Then my primary and backup would use virtual interfaces and so both of the machines receive from the same IP. However I have to guarantee that just one is up at one time.
I just hope when I change to the other machine I don't have issues with the session since it works for the instances. The session must remain active with the variables up.

  Just to tell why the LB might not work:
   For my case it is probably not a solution since besides the webserver running on the machine I have to replicate the DB. I started to use the great Apache Derby that comes by default in the Netbeans IDE which is so good that does not do replication... Therefore I'm trying to use sequoia "http://blogs.sun.com/JagadishPrasath/entry/using_sequoia_with_glassfish".
  Besides the DB I also have a "low level application" that communicates using sockets with other machines.
  So I have 2 virtual machines and one DB in the Primary machine and backup Machine.
  I had to think about the load balancing since I have to think if the load is distributed, how to do the same on the "low level application".

Thanks in advance!
[Message sent by forum member 'junkeira' (junkeira)]

http://forums.java.net/jive/thread.jspa?messageID=271558