mbabauer
Feb 28th, 2006, 05:11 PM
I am using JSR-160 support in Spring, with the Spring MBean Proxy on the client. When the server is up, everything is gravy. But, if the server is down when my client starts, or the server goes down, all heck breaks loose.
My client is a MBean server, with several MBeans called Gauges running and registered, watching certain attributes on other registered MBeans. When the gauges hit a value thats out of whack, they send a javax.management.Notification to another MBean that serves as the central point for all Notifications. This central point (called the NotificationConcentrator) then has a refernce to this remote MBean proxy, using JSR-160 jmxmp, to send to a remote collector. The idea here being that there are multiple of these clients running, each dumping Notification events into this central location, which all in turn forward to this central server for trending and tracking. I do need to mention that most of this code is a "retrofit" from previous code that was VERY JBoss 3.2.x specific, using JBoss's RMIAdapter, so much of this code is, and will remain, untouched.
I can get around the initial startup issue by setting the proxy as lazy-init=true, but it fails as soon as the NotificationConcentrator tries to get his remote proxy, which he gets through dependency injection.
Also, is there a way I can get it to "reconnect" on failure? Last, is there some prefered method for caching the failed requests and resending them when the connection is reestablished?
Thanks
My client is a MBean server, with several MBeans called Gauges running and registered, watching certain attributes on other registered MBeans. When the gauges hit a value thats out of whack, they send a javax.management.Notification to another MBean that serves as the central point for all Notifications. This central point (called the NotificationConcentrator) then has a refernce to this remote MBean proxy, using JSR-160 jmxmp, to send to a remote collector. The idea here being that there are multiple of these clients running, each dumping Notification events into this central location, which all in turn forward to this central server for trending and tracking. I do need to mention that most of this code is a "retrofit" from previous code that was VERY JBoss 3.2.x specific, using JBoss's RMIAdapter, so much of this code is, and will remain, untouched.
I can get around the initial startup issue by setting the proxy as lazy-init=true, but it fails as soon as the NotificationConcentrator tries to get his remote proxy, which he gets through dependency injection.
Also, is there a way I can get it to "reconnect" on failure? Last, is there some prefered method for caching the failed requests and resending them when the connection is reestablished?
Thanks