]
Darran Lofthouse resolved REMJMX-91.
------------------------------------
Resolution: Done
AddNotificationListener is serializing the handback object to the
server -- causing ClassNotFoundExceptions.
------------------------------------------------------------------------------------------------------------
Key: REMJMX-91
URL:
https://issues.jboss.org/browse/REMJMX-91
Project: Remoting JMX
Issue Type: Bug
Components: Notifications
Affects Versions: 2.0.1.CR1
Reporter: Bryan Varner
Assignee: Darran Lofthouse
Fix For: 2.0.1.CR2
I have a client using a handback object when events are received from remote JMX
servers.
The handback is a local object instance used in the client, and should be operated on as
part of handling specific types of notifications. Rather than scoping this thing in my
code all over the place, it was much easier to include it as a handback.
This works _perfectly_ with the Oracle RMI client. When I try to use this code against
JBoss remoting servers, I get (burried) ClassNotFound Exceptions referencing the name of
my class.
It appears that ClientConnection is sending serialized copies of the handback object to
the server when a notificationListener is added... but why?
https://github.com/jbossas/remoting-jmx/blob/master/src/main/java/org/jbo...
Shouldn't the handback be local to the client?