• Post Reply Bookmark Topic Watch Topic
  • New Topic

ServerContext.getScriptSessionsByPage() returns empty list  RSS feed

 
Ian Cabigon
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I have some problems getting this dwr code to work.
What I would like to have is a Thread that keeps on sending alert messages to all clients connected to the application. But I cant seem to get the sessions with the command Collection oSessions = coServerContext.getScriptSessionsByPage("/app/home.html");. I tried to debug and found out that the getScriptSessionByPage() always returns an empty list. Is there a way to work this out? or am I missing something here?

Here is my code, I patterned this to the gidemo of dwr. For client i set reverse ajax to true with



I hope you can share your thoughts.

Best Regards,
Ian
 
Ian Cabigon
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now i got it. We have to create a dwr listener to launch the clientLogger instance.

Thanks,
Ian
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!