Then you probably didn't register the EventBus in your application's init
method. Please take a look at the demo-application I've setup:
https://github.com/papegaaij/wicket-atmosphere-quickstart
It contains the minimal configuration needed for wicket-atmosphere.
Best regards,
Emond
On Wednesday 12 September 2012 04:40:41 esajjkh wrote:
> Thanks for your help and support. I am using now wicket-atmosphere 0.4
> snapshot and atmosphere 1.0.0 .
>
> I managed the reference of applicationclass in MyHazelcastBroadcaster class.
> Both classes looks like this now:
>
> class MyApplicationClass extends AuthenticatedWebApplication{
>
> .....
> @Override
> protected void init() {
> super.init();
> bc = (MyHazelCastBroadcaster)
> BroadcasterFactory.getDefault().get(MY_EVENT);
> bc.setUp();
> *bc.setApplication(this);* // setting the application in
> MyHazelCastBroadcaster
>
> eventBus = new EventBus(this, bc);
>
> ............
> }
> }
>
> and in MyHazelBroadcaster class I am publishing the event like this:
>
> EventBus.get(myapplication).post(message)
>
> Now it throws exception in EventBus class
> on*application.getMetaData(EVENT_BUS_KEY)* call, as it doesn't find any
> metadata associated with this event bus :(
> Any help pease? Tack
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/HazelCast-and-Atmosphere-Integra
> tion-with-Wicket-6-tp4651891p4651939.html Sent from the Users forum mailing
> list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]