Long Polling with Java and JBoss

前端 未结 2 1608
渐次进展
渐次进展 2021-01-14 15:51

I\'m looking for an example, how to implement a longpoling mechanism in java. I would love to use a stateless EJB.

I know that something like that would work:

<
2条回答
  •  萌比男神i
    2021-01-14 16:36

    JAX-WS provides support for invoking Web services using an asynchronous client invocation and supports both a callback and polling model. Have a look at:

    • Asynchronous Web Service Invocation with JAX-WS 2.0
    • Using the JAX-WS asynchronous programming model
      • In particular, the Polling Example

提交回复
热议问题