Jira issue -
http://jira.jboss.com/jira/browse/JBREM-622
Following describes behavior due to code changes for this issue:
Behavior - If doing pull callbacks, can have same callback handler registered with two
remoting Client instances (i.e. A and B) and the server will see this as two distinct
callback listeners being registered. So if server generates a callback, both Client
instance will retreive a callback.
If doing push callbacks, meaning have a callback server registered to receive callbacks,
the callbacks will be tied to that callback server and its callback handler. Therefore, if
have callback handler and server registered, only one callback will be delivered per one
generated on target server, regardless of with how many remoting Clients they have been
registered as listeners with. An example would be have remoting Client A and B, and have
callback handler X and callback server Y. If registered callback handler X and callback
server Y with both A and B and the server generates a callback message, it will only be
delivered once to callback handler X.
If have the same callback handler registered with multiple callback server, a callback
message will be delivered for each callback server. For example, if have callback handler
X and callback server Y and Z and then register callback handler X twixe (once with Y and
once with Z), then will be delivered the same callback message twice (once by Y and once
by Z).
When a callback handler is removed and are using push callbacks, the callback handler will
be removed as a listener from all callback servers it has been registered under.
[ Show » ]
Tom Elrod [09/Nov/06 03:48 PM] Behavior - If doing pull callbacks, can have same callback
handler registered with two remoting Client instances (i.e. A and B) and the server will
see this as two distinct callback listeners being registered. So if server generates a
callback, both Client instance will retreive a callback. If doing push callbacks, meaning
have a callback server registered to receive callbacks, the callbacks will be tied to that
callback server and its callback handler. Therefore, if have callback handler and server
registered, only one callback will be delivered per one generated on target server,
regardless of with how many remoting Clients they have been registered as listeners with.
An example would be have remoting Client A and B, and have callback handler X and callback
server Y. If registered callback handler X and callback server Y with both A and B and the
server generates a callback message, it will only be delivered once to callback handler X.
If have the same callback handler registered with multiple callback server, a callback
message will be delivered for each callback server. For example, if have callback handler
X and callback server Y and Z and then register callback handler X twixe (once with Y and
once with Z), then will be delivered the same callback message twice (once by Y and once
by Z). When a callback handler is removed and are using push callbacks, the callback
handler will be removed as a listener from all callback servers it has been registered
under.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984654#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...