0 Replies Latest reply on Jun 1, 2005 12:01 PM by Tom Elrod

    Callback API changed for > 1.0.2 of JBossRemoting

    Tom Elrod Master

      In JBossRemoting versions 1.0.2 and before, the method signature within org.jboss.remoting.InvokerCallbackHandler? for handling callbacks was:

      public void handleCallback(InvocationRequest invocation) throws HandleCallbackException
      


      In version 1.0.1 final the Callback class, which extends the InvocationRequest class, was introduced to be used as the object passed to the handleCallback() method to make it simpler to create the callback payload to be passed. However, the API for InvokerCallbackHandler was not changed in order to maintain backwards compatibility with all 1.0.x versions.

      Post 1.0.x versions, the method signature has been changed to:

      public void handleCallback(Callback callback) throws HandleCallbackException
      


      to make is easier to process the callback payload. The Callback object still extends InvocationRequest, so all the API previously available is still there.

      Can find more callback info at http://wiki.jboss.org/wiki/Wiki.jsp?page=Remoting_callbacks