Example of wicket atmosphere with channel
Asked Answered
L

2

12

I just saw new features released at wicket 6.40. And I am interested to see example code of the atmosphere channel. Where can i find the example of this feature?

Thanks.

Longer answered 21/12, 2012 at 5:21 Comment(0)
T
8

Here's a quickstart application of integrating Wicket and Atmosphere.

https://github.com/papegaaij/wicket-atmosphere-quickstart

  • atmosphere.xml can be found under src/main/webapp/META-INF/
  • web.xml under src/main/webapp/WEB-INF/
Testicle answered 15/2, 2013 at 6:6 Comment(0)
S
6

Here is a minimal example: http://examples7x.wicket.apache.org/atmosphere/?0

It is similar to RJo's link. In addition:

  • There is an online demo.
  • Custom objects are pushed to the EventBus, so You'll see that everything might be transfered as long as it is Serializable.

Summary:

  • An EventBus instance is initialized in AtmosphereApplication.java.
  • This EventBus is used in HomePage.java to push messages.
  • @Subscribe annotations in HomePage.java are used to receive messages.
Shanklin answered 20/2, 2013 at 12:2 Comment(2)
+1 for the summary. I originally posted the same link, but apparently, the online demo is not working and there is no atmosphere.xml to be found. Furthermore, the sources are not working but can be found at github.com/apache/wicket/tree/master/wicket-examples/src/main/…Testicle
Yes, you're right. I found a link to the example source by an internet search, I was able to browse all the sources, but with the link I've posted I get an internal error. So your example is better.Shanklin

© 2022 - 2024 — McMap. All rights reserved.