-
1. Re: How to stop optimization of remote call?
starksm64 Mar 30, 2006 11:54 AM (in response to taba_youichi)Replace the org.jboss.invocation.InvokerInterceptor in the invoker
<invoker-proxy-binding> <name>clustered-stateless-rmi-invoker</name> <invoker-mbean>jboss:service=invoker,type=jrmpha</invoker-mbean> <proxy-factory>org.jboss.proxy.ejb.ProxyFactoryHA</proxy-factory> <proxy-factory-config> <client-interceptors> <home> <interceptor>org.jboss.proxy.ejb.HomeInterceptor</interceptor> <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor> <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor> <interceptor>org.jboss.proxy.ejb.SingleRetryInterceptor</interceptor> <interceptor call-by-value="false">com.acme.NoOptimizationInvokerInterceptor</interceptor> </home> <bean> <interceptor>org.jboss.proxy.ejb.StatelessSessionInterceptor</interceptor> <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor> <interceptor>org.jboss.proxy.TransactionInterceptor</interceptor> <interceptor>org.jboss.proxy.ejb.SingleRetryInterceptor</interceptor> <interceptor call-by-value="false">com.acme.NoOptimizationInvokerInterceptor</interceptor> </bean> </client-interceptors> </proxy-factory-config> </invoker-proxy-binding>
-
2. Re: How to stop optimization of remote call?
taba_youichi Mar 30, 2006 12:51 PM (in response to taba_youichi)Thanks!
The InvokerInterceptor is:
http://docs.jboss.org/jbossas/javadoc/4.0.2/org/jboss/invocation/InvokerInterceptor.java.html
The optimization is shown in hasLocalTarget(), isn't it?
But where is the org.acme.NoOptimizationInvokerInterceptor?
I cannot find it. Should I write it? -
3. Re: How to stop optimization of remote call?
starksm64 Mar 30, 2006 1:22 PM (in response to taba_youichi)You write it.
-
4. Re: How to stop optimization of remote call?
slaboure Apr 2, 2006 11:21 AM (in response to taba_youichi)Frankly, I am worried whenever somebody mentions that it is something they want to do (i.e. remove the optimization). Really ask yourself: is this REALLY what I am trying to do? Is this this architecture you want? Is this really necessary? There is already some level of load-balancing taking place in-front of your node, right?
-
5. Why I need non-optimized call
taba_youichi Apr 2, 2006 1:26 PM (in response to taba_youichi)I need a distributed job scheduler for my cluster.
The scheduler should be cluster-singleton. Otherwise every cluster-node polls database intensively.
The scheduler should run on cluster with failover. Otherwise scheduler becomes single-point-of-failure.
Two JBossAS instances on one node? This configuration is fragile because JBossAS instance sometimes dies silently (without any core file... JVM bug?). If scheduler instance dies and worker instance lives, no failover. Another partition for scheduler? That's may be an answer, but I prefer performance loss than complicated configuration. Complicated configuration is hard to maintain. -
6. Re: How to stop optimization of remote call?
bdinnerv Sep 17, 2008 12:18 AM (in response to taba_youichi)"sacha.labourey@jboss.com" wrote:
Frankly, I am worried whenever somebody mentions that it is something they want to do (i.e. remove the optimization). Really ask yourself: is this REALLY what I am trying to do? Is this this architecture you want? Is this really necessary? There is already some level of load-balancing taking place in-front of your node, right?
This makes the assumption that the client is outside the node and does not cater for scenarios where clients are inside the node. Not all clients to applications are http clients and you need to understand that there are a multitude of examples whereby the client is inside the container and there is no other load balancing mechanism available.
Cheers,
Ben