EJB clustering using CallRouter not working
Hi,
I'm working with weblogic 7 sp2, in cluster, using round-robin as default,
EJB 2.0 spec. and Iplanet as web server.
We have defined a class implementing CallRouter interface, and we have included
in weblogic-ejb-jar.xml:
<stateless-session-descriptor>
<stateless-clustering>
<stateless-bean-load-algorithm>RoundRobin</stateless-bean-load-algorithm>
<stateless-bean-call-router-class-name>package.ClsClusterRouter</stateless-bean-call-router-class-name>
<stateless-bean-methods-are-idempotent>True</stateless-bean-methods-are-idempotent>
</stateless-clustering>
</stateless-session-descriptor>
That class is in the classpath, and the EJB is deployed ok. The class contains
a constructor, which is launched where
the EJB is deployed. But every call to EJB methods never fire the getServerList
in the class.
WHY??????? Is it a problem solved in sp3? We have tested everything and nothing
worked!!!!!!!
No exception is thrown, either.
Please help
BYe
Re: EJB clustering using CallRouter not working
There is Collocation Optimization
[url]http://e-docs.bea.com/wls/docs70/cluster/api.html#391403[/url]
Server will always gives first preference to collocated objects than using
CallRouter. It finds the object locally if there is any
and execute it there itself rather than sending it to another server.
hth
/
sree
"Perico Delgado" <boxy73@hotmail.com> wrote in message
news:3f152fed@newsgroups.bea.com...[color=blue]
>
> Hi,
>
> I'm working with weblogic 7 sp2, in cluster, using round-robin as[/color]
default,[color=blue]
> EJB 2.0 spec. and Iplanet as web server.
>
> We have defined a class implementing CallRouter interface, and we have[/color]
included[color=blue]
> in weblogic-ejb-jar.xml:
>
> <stateless-session-descriptor>
> <stateless-clustering>
>[/color]
<stateless-bean-load-algorithm>RoundRobin</stateless-bean-load-algorithm>[color=blue]
>[/color]
<stateless-bean-call-router-class-name>package.ClsClusterRouter</stateless-b
ean-call-router-class-name>[color=blue]
>[/color]
<stateless-bean-methods-are-idempotent>True</stateless-bean-methods-are-idem
potent>[color=blue]
> </stateless-clustering>
> </stateless-session-descriptor>
>
> That class is in the classpath, and the EJB is deployed ok. The class[/color]
contains[color=blue]
> a constructor, which is launched where
> the EJB is deployed. But every call to EJB methods never fire the[/color]
getServerList[color=blue]
> in the class.
>
> WHY??????? Is it a problem solved in sp3? We have tested everything[/color]
and nothing[color=blue]
> worked!!!!!!!
> No exception is thrown, either.
>
> Please help
> BYe[/color]
Re: EJB clustering using CallRouter not working
So,
If I must use Iplanet as web server, and I cannot use a Multi-Tier Architecture,
as I call EJBs almost in most cases, CallRouter cannot be used. Great. Is there
any additional way to launch a class/servlet/EJB in every cluster? I wanna use
it to keep up-to-date every servletcontext object all around my clusters.
How can I do it without using third-party tools?
BYe
"Sree Bodapati" <post@bea.newsgroup.iwillreply> wrote:[color=blue]
>There is Collocation Optimization
>
>[url]http://e-docs.bea.com/wls/docs70/cluster/api.html#391403[/url]
>
>Server will always gives first preference to collocated objects than
>using
>CallRouter. It finds the object locally if there is any
>and execute it there itself rather than sending it to another server.
>
>hth
>/
>sree
>
>
>"Perico Delgado" <boxy73@hotmail.com> wrote in message
>news:3f152fed@newsgroups.bea.com...[color=green]
>>
>> Hi,
>>
>> I'm working with weblogic 7 sp2, in cluster, using round-robin[/color]
>as
>default,[color=green]
>> EJB 2.0 spec. and Iplanet as web server.
>>
>> We have defined a class implementing CallRouter interface, and[/color]
>we have
>included[color=green]
>> in weblogic-ejb-jar.xml:
>>
>> <stateless-session-descriptor>
>> <stateless-clustering>
>>[/color]
><stateless-bean-load-algorithm>RoundRobin</stateless-bean-load-algorithm>[color=green]
>>[/color]
><stateless-bean-call-router-class-name>package.ClsClusterRouter</stateless-b
>ean-call-router-class-name>[color=green]
>>[/color]
><stateless-bean-methods-are-idempotent>True</stateless-bean-methods-are-idem
>potent>[color=green]
>> </stateless-clustering>
>> </stateless-session-descriptor>
>>
>> That class is in the classpath, and the EJB is deployed ok. The[/color]
>class
>contains[color=green]
>> a constructor, which is launched where
>> the EJB is deployed. But every call to EJB methods never fire the[/color]
>getServerList[color=green]
>> in the class.
>>
>> WHY??????? Is it a problem solved in sp3? We have tested everything[/color]
>and nothing[color=green]
>> worked!!!!!!!
>> No exception is thrown, either.
>>
>> Please help
>> BYe[/color]
>
>[/color]