On 02/22/2013 05:32 PM, Jeff Mesnil wrote:
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.
A switch to Undertow for domain management is theoretically available soon.
jeff
[1]
https://community.jboss.org/wiki/AddNotificationSupportToTheDomainManagem...
Le 18 févr. 2013 à 11:05, Heiko W.Rupp <hrupp(a)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(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev