sorry i made a mistake in my original post.
if i cache the remote interface, i can get load balancing via the RoundRobin bean policy.
if i cache the home and create a remote each time, i can get load balancing via the FirstAvailable bean policy. RoundRobin won't give me load balancing.
my question actually is: is there a policy that would work for both cases? it seems odd to have to change the bean policy to accomodate client caching strategy. (btw, i am using jboss3.2.1)
Which policies are you setting, the home load balance policy or the bean load balance policy?
the bean load balancing policy. the home is always cached in both cases.
In that case I think that it is the home load balance policy that you need to be setting to RoundRobin.
The object that you have cached is only a proxy object, the home load balance policy specifies which server should be used to call create when you request access to a bean.
thanx for the help.
yes, my home load balance policy was also set to to roundrobin.
like i said, if i cache home and create remote every time, having home and bean load balance policy both set to roundrobin, would not give me load balance at all. i need to set bean policy to firstavailable, regardless of what home policy is.
the behaviour is different and more consistent in 3.2.x than in 3.0.x, you may want to try it. Cheers,
forgot to mention that i am using 3.2.1. thanx Sacha.