No responses yet.........
Is it a bug? should I report it as a bug?
Let me rephrase the question.
A generic clustered bean is deployed in two different applications. Application_1 does a remote lookup of the bean in Application_2 and tries to invoke it. But instead of calling the bean instance in Application_2, the bean deployed in Application_1 is getting called!!. But the call gets executed properly and reaches Application_2 when the bean is not clustered and working fine in both default and all configuration.
The issue comes up only when the bean is
Calls to other beans in Application_2 which are not deployed in Application_1, are going through as expected.
This is the designed behavior. To get the behavior you want, you need to subclass org.jboss.invocation.InvokerInterceptor, override the isLocal(Invocation) method, and update your client-container configuration (e.g. the clustered-stateless-rmi-invoker section in conf/standardjboss.xml) to use your interceptor in place of the standard org.jboss.invocation.InvokerInterceptor.
Thanks for the reply........
This should work fine