1 Reply Latest reply on Aug 22, 2013 11:23 AM by csa

    duplicate RPC calls

    michael_jank

      Hi,

       

      when setting an RPC call to the server, it is executed twice for me. This is regardless of using proxy injection or not, using websockets or long polling.

      I also tried to use the batch caller, but same effect here.

      auto-discover-services in set to true in web.xml, using DefaultBlockingServlet.

       

      My code is:

       

      @Remote

      public interface RemoteChatService {

          public String getValue(String value);

      }

       

      @Service

      public class RemoteChatServiceImpl implements RemoteChatService {

          @Override

          public String getValue(String value) {

              return value;

          }

      }

       

      // client code:

      @Inject

      private Caller<RemoteChatService> remoteService;

      ...

      remoteService.call(callbackXY).getValue("123");

       

      I saw an issue in the forum (https://community.jboss.org/thread/172644), which was fixed in 1.3.0, maybe its similar to this?

       

      What further could be interesting: the callstack for the first call is

      SimpleDispatcher -> ServerMessageBusImpl -> DeliveryPlan -> RemoteServiceCallback

      and in the second call

      SimpleDispatcher -> ServerMessageBusImpl -> DeliveryPlan -> CDIExtensionPoints -> RemoteServiceCallback

       

      cheers,

      Michael