Discussion:
CXF Webservice pushing or streaming messages(notifications) to client
vlad.balan
2018-10-29 16:34:25 UTC
Permalink
Hello everybody



and thanks for reading this.

What is the best way to develop a CXF Webservice that, once a client calls
it, it can send to it several "notifications" (responses) in time:

- the client calls the service

- the server holds the connection, of course (like @Suspended with Rest)

- in 5 minutes sends a "notification"

- then another

- then another and so on.



I'd be also happy with just a simple version of this: suspension until one
notification appears and ONE reponse sent to the client and then the client
could recall the webservice again.

(i'm not loosing "events" with this because i can see on server all the
notifications that happened since the last one sent to the client)


REST has Server Sent Event and StreamingOutput. What is the equivalent for
JAXWS?




Thanks a lot.




--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html
Andrei Shakirin
2018-11-11 22:28:01 UTC
Permalink
Hi,

I see following options for JAX-WS:
- Decoupling responses using WS-Addressing
- Independent Oneway Operations
- JMS transport for SOAP messages

More details in http://ashakirin-cxf-async.blogspot.com/

Regards,
Andrei.
-----Original Message-----
Sent: Montag, 29. Oktober 2018 17:34
Subject: CXF Webservice pushing or streaming messages(notifications) to client
Hello everybody
and thanks for reading this.
What is the best way to develop a CXF Webservice that, once a client calls it, it
- the client calls the service
- in 5 minutes sends a "notification"
- then another
- then another and so on.
I'd be also happy with just a simple version of this: suspension until one
notification appears and ONE reponse sent to the client and then the client
could recall the webservice again.
(i'm not loosing "events" with this because i can see on server all the
notifications that happened since the last one sent to the client)
REST has Server Sent Event and StreamingOutput. What is the equivalent for
JAXWS?
Thanks a lot.
--
Sent from: https://urldefense.proofpoint.com/v2/url?u=http-
3A__cxf.547215.n5.nabble.com_cxf-2Duser-
2Df547216.html&d=DwICAg&c=2w5q_42kFG40MI2alLPgJw&r=bWOqkHjIZE0sZt
dpFMIhm-
lcbhtB3cv08OlIr0lkKR4&m=QSPHZOahYnz93fOANA5HxDG9Sm4LdidRjiLNg6gT5
w4&s=Ci1edCbgcdggcki0FcF9e7Awf4BXzIJujqsuzHMyqpk&e=
As a recipient of an email from Talend, your contact personal data will be on our systems. Please see our contacts privacy notice at Talend, Inc. <https://www.talend.com/contacts-privacy-policy/>
vlad.balan
2018-11-12 10:17:15 UTC
Permalink
Lots of thanks.

Also i read about websockets comet (atmosphere).

Is it doable in CXF?



--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html
Andrei Shakirin
2018-11-13 21:06:00 UTC
Permalink
Hi,

Yes, sure - WebSocket transport is option as well.

Details in http://cxf.apache.org/docs/websocket.html

Regards,
Andrei.
-----Original Message-----
Sent: Montag, 12. November 2018 11:17
Subject: RE: CXF Webservice pushing or streaming messages(notifications) to
client
Lots of thanks.
Also i read about websockets comet (atmosphere).
Is it doable in CXF?
--
Sent from: https://urldefense.proofpoint.com/v2/url?u=http-
3A__cxf.547215.n5.nabble.com_cxf-2Duser-
2Df547216.html&d=DwICAg&c=2w5q_42kFG40MI2alLPgJw&r=bWOqkHjIZE0sZt
dpFMIhm-
lcbhtB3cv08OlIr0lkKR4&m=iCKClTPPyEYksc1paGLMCIAD34FVLaC5p5qnN87l45g
&s=nAKaihxyFH-cbYxXWNeEb8Y5GT-Pro2hFxSmjJvVxrM&e=
As a recipient of an email from Talend, your contact personal data will be on our systems. Please see our contacts privacy notice at Talend, Inc. <https://www.talend.com/contacts-privacy-policy/>
vlad.balan
2018-11-13 22:24:28 UTC
Permalink
Thanks a lot.

Seems it is work in progress :)





--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html

Loading...