Forum Discussion
Lalit_Kumar_533
Nimbostratus
Jul 22, 2005Event Notification Samples in Java
I want to create a listener in Java which should listen to node enable/disable events in F5.
I looked at the article http://devcentral.f5.com/Default.aspx?tabid=29&newsType=ArticleView&artic...
Jul 25, 2005
I'll answer your questions a bit out of order so that they all make sense.
There are 2 interfaces you need to make use ofManagement::EventSubscription
Management::EventNotification
The EventSubscription interface is used to create subscriptions to events. You will need to build a client application (or use the .NET sample included in the SDK) to be able to manage (create, check status, etc) subscriptions to your endpoint implementation. There is currently no GUI in the product to manage this at this time.
The EventNotification interface is the endpoint you must implement to allow the BIG-IP to send messages to. It needs to be a web service listening on HTTP or HTTPS with our without authentication. Again, a .NET asmx sample is included in the SDK. There is only one method in the EventNotification event that you must support:
void Management::EventNotification::events_occurred
(
Management::EventNotification::EventSource event_source,
string subscription_id,
Management::EventNotification::EventData[] event_data_list,
Common::TimeStamp time_stamp
);
Aside from the subscription client, in the SDK we've included a test client that you can use to test your EventNotification::events_occurred implementation directly. This makes it much easier than having to test it through the BIG-IP. Once the test client reports conformance, there should be no issue with plugging it into the BIG-IP to send events to.
Hopefully this got everything. For a reference look in the following directories in the 9.0 SDK:sdk_root/sdk/samples/soap/c/Microsoft/Management/EventManagement
sdk_root/sdk/samples/soap/c/Microsoft/Management/EventNotification
sdk_root/sdk/samples/soap/c/Microsoft/Management/EventNotificationClient
Hope this helps!
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects