If you always want the ejb calls to ignore any colocated beans you would need to replace the org.jboss.invocation.InvokerInterceptor in the proxy-factory-config for the bean to use a variation that bypassed the colocation check. Its invoke method would simply be:
public Object invoke(Invocation invocation)
throws Exception
{
Object returnValue = null;
InvocationContext ctx = invocation.getInvocationContext();
// The payload will go through marshalling at the invoker layer
Invoker invoker = ctx.getInvoker();
returnValue = invoker.invoke(invocation);
return returnValue;
}rather than:
public Object invoke(Invocation invocation)
throws Exception
{
Object returnValue = null;
InvocationContext ctx = invocation.getInvocationContext();
// optimize if calling another bean in same server VM
if ( isLocal() )
{
// The payload as is is good
returnValue = localInvoker.invoke(invocation);
}
else
{
// The payload will go through marshalling at the invoker layer
Invoker invoker = ctx.getInvoker();
returnValue = invoker.invoke(invocation);
}
return returnValue;
}-- xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx
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.
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
