Sending notifications from .Net bean to Java client

Oct 7, 2010 at 6:22 PM

Hi,

I started using NetMX as a way to pass attributes between .Net class to java, invoke .Net methods from java client and notify my java client when .Net variables have changed.

I successfully implemented the first two things, but I'm having troubles sending notifications to my Java client.

 

I'm using the JSR262Demo in your samples directory as my .Net NetMX bean, and in my java client I've written:

connector.addNotificationListener(objname, new NotificationListener() {
				
				@Override
				public void handleNotification(Notification notification, Object handback) {
					System.out.println("\nnotification message " + notification.getUserData());
					
				}
			} , null, null);

What am I doing wrong ?

Please note that I'm working with the latest SVN version of NetMX.

 

Thanks in advance.