0 Replies Latest reply on Feb 6, 2012 4:38 PM by amathewjboss1

    JBoss 5.1.0 - issues against UnifiedHa

    amathewjboss1

      We have an application running on JBoss 5.1.0 and we are using UnifiedHa invoker against Clustered Stateless SessionBean.

       

      But for some of the EJB calls we need to explicitly make a 'remote' EJB call even if we are in the JVM (and when JBoss tries to do a 'local' EJB call).
      Before JBoss 5.1 we were using JBoss 4.x and in that we were using jrmpha (for Clustered Stateless SessionBean) and we solved this
      issue by having a below class (and other related classes in a jar which we put under server/all/lib directory):

       

      public class MyJRMPInvokerProxyHA extends JRMPInvokerProxyHA implements Externalizable {

          private static final long serialVersionUID = -4972096723200682118L;
         
          public MyJRMPInvokerProxyHA() {
              super();
          }

          public MyJRMPInvokerProxyHA(
              ArrayList replicants,
              LoadBalancePolicy policy,
              String familyName,
              long currentViewId
          ) {
              super(replicants, policy, familyName, currentViewId);
          }
         
          public boolean isLocal(Invocation invocation) {
              return false;
          }
      }

      Mainly we were returning 'false' for the isLocal method call.

      But with the org.jboss.invocation.unified.interfaces.UnifiedInvokerHAProxy.java, I don't see a isLocal method. Without this method,
      I really don't know how I am going to tackle this.

       

      Any thoughts will be highly appreciated.

       

       

      Thanks
      Anil Mathew