JBoss Community

Can I get CallbackHandleObject on server side

created by Dmitry Egorov in JBoss Remoting - View the full discussion

Hi, everybody!

  I am newbie in JBoss remoting.

I found nice article about Callbacks http://www.mastertheboss.com/jboss-application-server/155-jboss-remoting-callbacks.html

Everything works fine, but i need one more.

  Some code from sample.

Client side:

  1. String callbackHandleObject = "myCallbackHandleObject"
  2. remotingClient.addListener(callbackHandler, callbackLocator, callbackHandleObject); 

Server side:

  

  1. public void addListener(InvokerCallbackHandler callbackHandler) 
  2.         { 
  3.             System.out.println("Adding callback listener."); 

Can i get myCallbackHandleObject in addListener() context and how?

I know, i can get this object in context of client method handleCallback(Callback arg0), but that don't suite.

   Some explanations.

    This info i plan to use for some filtration for data pused by callback to client.

   Thanks in advance!

  Sincerely, Egorov Dmitry.


Reply to this message by going to Community

Start a new discussion in JBoss Remoting at Community