-
1. Re: AS 7.1.0.Final Clustering Example
morphy Feb 18, 2012 5:04 AM (in response to foutjo)Hi, try to give a look at https://community.jboss.org/message/641785#641785
the four issues highlighted by Rado seem to be closed so the round robin behaviour should be up and running
bye
-
2. Re: AS 7.1.0.Final Clustering Example
foutjo Feb 19, 2012 8:53 PM (in response to morphy)Hi Ricaardo, Thanks for the info.
I can't even get round robin to work with the EJB invocations from a remote client using JNDI example.
Here is the link to the thread that I started. https://community.jboss.org/message/717679#717679
Could this be a bug or I am expecting something that should not be occurring?
What I really want is an example of how I would access a clustered SLSB from another SLSB from within the container using jboss 7.
It took me a while to finally figure out how to get it to work with 5.1. Now that I want to upgrade to 7.1 I am back in the
same boat in trying to figure out how to get it to work.
In Jboss 5.1 here is who I got the initial context:
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
String partitionName = System.getProperty("jboss.partition.name", "clusterPartition2");
p.put("jnp.partitionName", partitionName);
try
{
ctx = new InitialContext(p);
}
catch (Exception e)
{
processSW = false;
System.out.println("Return from bean process method with exception" + qName);
LIDP_Logger.error(this);
e.printStackTrace();
}
clientPartition2 was setup as the cluster that I had setup with 4 servers from our network and everything worked fine.
With the above code I was able to get the calls to the envocation to my SLSB to
occur with the round robin load balance. Meaning a call to server 1... server 2... server 3 .... server 4 ...
Can someone just tell me how I would accomplish the same using Jboss 7?
Rado pointed out an outstanding bug with SFSB but I'm not sure if this is also a problem with SLSB's.
If this is indeed an outstanding issue can someone please let me know.
And in the case of an outstanding issue what is the general time frame in getting it resolved or supported?
Thanks.