[jboss-as7-dev] Add Notification support to the domain management API

Jeff Mesnil jmesnil at redhat.com
Fri Feb 22 12:32:40 EST 2013


I've updated the doc[1] to focus on the web console use case and the minimal requirements it has.

I wrote a simple plain HTTP API (no WebSockets, working with cURL) that should be enough for the Web console to handle notifications.

Since it's HTTP only, the console would still have to poll but:

1. It will have few well-defined HTTP resources to poll
2. There is an explicit contract for the notifications instead of extracting information from the different responses it get from the server.

This API should be suitable to http-based clients and when undertow is available in AS7, we could provide a WebSocket upgrade on its URL endpoints to push notifications to the browser.

jeff

[1] https://community.jboss.org/wiki/AddNotificationSupportToTheDomainManagementAPI
 
Le 18 févr. 2013 à 11:05, Heiko W.Rupp <hrupp at redhat.com> a écrit :

> 
> Am 18.02.2013 um 10:17 schrieb Heiko Braun:
> 
>> I think you are comparing apples and oranges. Providing the subsystem is not a client responsibility 
> 
> I may be, but the latter is exactly what I am saying.
> 
>> and API level is not protocol level (as in wire format) .
> 
> As a client to AS7 I care less about the internal implementation and more about how to access the information.
> And requiring to set up a websocket "system" in addition to the http endpoint may in some areas just overkill and may reduce
> the number of clients that may want to use the notifications.
> 
>> For instance when looking at the HTTP bridge for notifications, it might be beneficial to leverage a subsystem decoupled from the core management layer, that merely acts as an API client to the server internals. This way we might have websocket notifications as an early preview for example.  
> 
> I am ok with querying another subsystem for notifications instead of piggy backing the information on the
> servers reponses - if I can just do that with a HTTP get request. 
> This may not be as instantaneous as a websocket push, but can be used with existing http-based clients.
> 
> 
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev

-- 
Jeff Mesnil
JBoss, a division of Red Hat
http://jmesnil.net/




More information about the jboss-as7-dev mailing list