3 Replies Latest reply on May 15, 2006 6:26 PM by brian.stansberry

    How to bypass EJB InvocationInterceptor isLocal() checking?

    i_n_g

      jboss 4.0.3 SP1

      InvocationInterceptor is looking up the invocation in Registry of current jvm and decides remote or local.

      My servlet and ejb sit in the same jvm, so the InvocationInterceptor always makes a local call. How do I override this behavior? So my servlet can call ejbs on different cluster-node in round-robin policy.

      I can replace the InvocationInterceptor with my own, just wondering if this is a proper solution.