ok.
I have tre machine:
"HostA" : Load balance base on Apache 2.0 with mod_jk 1.2.x with sticky session
"ClusterB" : Jboss AS 4.0.1 sp1 with my ear with war and ejb modules
"ClusterC" : Jboss AS 4.0.1 sp1 with my ear the same than in ClusterB
in my ear i have also a jndi.properties to use HA-JNDI:
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| #java.naming.provider.url=jnp://localhost:1100
| java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
| jnp.partitionName=DefaultPartition
| .
Load balance is configure for sticky session.
My client is a standard browser (Internet Explorer / Firefox).
So a user using browser access to the HostA and so the request is forward for
example to ClusterB.
For now all work fine: the request is captured from a Servlet the lookup on
JNDI using for example:
| try
| {
| ABSEQBAuthHome vHome = (ABSEQBAuthHome) new
InitialContext().lookup("java:comp/env/ejb/ABSEQBAuth");
| }
| catch (Exception vErr)
| {}
|
Setting a jndi.properties in the ear, this force to use port 1100 (HA-JNDI)
Now i shutdown (CTRL-C) ClusterB.
The user in the same browser session do another request and so the load-balance
try to use again ClusterB, but now is died and so correctly forward the request
to the alive clusterA.
The request is always capture from the servlet that done another lookup (always
using HA-JNDI), but now a NameNotFoundException occurs.
I think that when the shutdown occurs all ejb are undeploy from the HA-JNDI....
I hope to have describe better the scenario.
Thank You
Roberto
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874283#3874283
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874283
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user