On Fri, 2003-09-19 at 10:47, Rafal Kedziorski wrote:
> hi,
> 
> in the latest (2003-08-03) payed clustering documentation on page 37 
> listing 5-5 and 5-6 shows how poxies works.
> 
> Now my question. We workinf with JBoss 3.2.2RC2 and 3.2.2RC4 and start to 
> develop an application which will run on a JBoss cluster. We want to user 
> Round-Robin. Our Client is the web container, which uses the business logic 
> implemented in app server.
> 
> Browse --call to Web-Container--> Web-Container --call to App-Server--> 
> App-Server
> 
> Our service locator will cache the remote interfaces of our session beans 
> facades. That means, that on each call to a method on facade, we would 
> create a new proxy (Remote myRemote = myHome.create()). That means, that 
> the one call to the method goes every time to the same node in our 
> partition, cause the calls are not load-balanced.
> 
> Waht will be the soulution.
> 

With the latest versions of jboss the list of targets is retained
independently of proxies so you won't see the problem.
With older versions you can use RandomRobin rather than RoundRobin.

Additionally, for Stateless beans if the remote is invalid it is likely
the home is invalid as well.
There is an optimizing interceptor available for stateless homes
that caches the bean proxy rather going back to the server on
every create().

In standardjboss.xml or jboss.xml

<home>
<!-- standard that dispatches create() on every request
<interceptor>org.jboss.proxy.ejb.HomeInterceptor</interceptor>
-->
<!-- Caches the result of the first create() -->
<interceptor>org.jboss.proxy.ejb.StatelessSessionHomeInterceptor</interceptor>
<interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
<interceptor>org.jboss.proxy.TransactionInterceptor</interceptor>
<interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
</home>

The only downside is that create() won't go through the
server side security check if you are passing home objects 
to untrusted code.

Regards,
Adrian

> 
> Regards,
> Rafal
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
xxxxxxxxxxxxxxxxxxxxxxxx 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
xxxxxxxxxxxxxxxxxxxxxxxx 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to