1 Reply Latest reply on Mar 28, 2003 12:40 AM by belaban

    callAsynchMethodOnCluster not working

    avidrissman

      I've got my cluster up and running, and I'm trying to call a method on the cluster using callAsynchMethodOnCluster. The function is:

      void _rpcRegisterSession(Number sessionID, Session session)

      The problem is that Session has a member variable that is an interface and whose value is an RMI remote stub. If that member variable is null, then the method call works. If that variable is not null, the call silently fails. If I make the interface serializable, it still fails.

      What are the requirements for arguments to the callAsynchMethodOnCluster functions?

        • 1. Re: callAsynchMethodOnCluster not working
          belaban

          sessionId and session need to be serializable.

          I suggest you enable tracing (uncomment the CLUSTER appender and the HA/JavaGroups categories in cluster-service.xml).

          I bet you'll get a serialization error.

          Try writing your session to an ObjectOutputStream (use beanshell) to see whether this works.

          Bela