Re: Websocket message from Spring bean

2016-04-21 Thread Maxim Solodovnik
Finally was able to test it :) Everything works as expected! Thanks a lot for the hint! On Tue, Oct 7, 2014 at 5:49 PM, Maxim Solodovnik wrote: > Thanks a lot for the tip Martin! > will give it a try and write back :) > > On 7 October 2014 16:39, Martin Grigorov wrote: > >> You use request and

Re: Websocket message from Spring bean

2014-10-07 Thread Maxim Solodovnik
Thanks a lot for the tip Martin! will give it a try and write back :) On 7 October 2014 16:39, Martin Grigorov wrote: > You use request and session scoped Spring beans in WebSocket request > because such requests are not processed by Servlet filters and Spring has > no chance to set its proxy ob

Re: Websocket message from Spring bean

2014-10-07 Thread Martin Grigorov
You use request and session scoped Spring beans in WebSocket request because such requests are not processed by Servlet filters and Spring has no chance to set its proxy objects as request/session attributes. But in Spring bean code you can do: Application app = Application..get("myFilterName"); W

Re: Websocket message from Spring bean

2014-10-07 Thread Maxim Solodovnik
To be fair I haven't tried :( I thought I will have "no session/application bound to current thread" exceptions :( I'll test and let you know On 7 October 2014 15:21, Martin Grigorov wrote: > Hi, > > I think it should work. > What kind of problems do you face ? > > Martin Grigorov > Wicket Train

Re: Websocket message from Spring bean

2014-10-07 Thread Martin Grigorov
Hi, I think it should work. What kind of problems do you face ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Oct 3, 2014 at 4:55 PM, Maxim Solodovnik wrote: > Hello All, > > I wonder is it possible to send IWebSocketPushMessage from Spring bean? (I > ca

Websocket message from Spring bean

2014-10-03 Thread Maxim Solodovnik
Hello All, I wonder is it possible to send IWebSocketPushMessage from Spring bean? (I can access Spring beans from wicket pages, now I need "backward compatibility") Thanks in advance for your help! -- WBR Maxim aka solomax