Re: using cometd with threads

2010-08-17 Thread fachhoch
I wan to inject Bayeaux service in a pojo initialized by spring , please sugest me how can I get servlet context in a spring bean ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2328511.html Sent from the Wicket - User

Re: using cometd with threads

2010-08-17 Thread Rodolfo Hansen
You may use a servlet context listener... Get the spring applicationContext and add the Bayuex Service been to it when it context is initialized http://www.java-tips.org/java-ee-tips/java-servlet/how-to-work-with-servletcontextlistener.html On Tue, 2010-08-17 at 08:06 -0700, fachhoch wrote:

Re: using cometd with threads

2010-08-17 Thread jcgarciam
? -- View message @ http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2328511.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/NodeServlet.jtp?tpl=unsubscribe_by_codenode=1842946code

Re: using cometd with threads

2010-08-03 Thread fachhoch
If I do that I am using web api in service which is not good , so any other way ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2311905.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: using cometd with threads

2010-08-03 Thread jcgarciam
/using-cometd-with-threads-tp2310323p2311905.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ=. -- Sincerely, JC Work smarter, not harder!. -- View

Re: using cometd with threads

2010-08-02 Thread Rodolfo Hansen
Yes, the code is designed to be thread safe. On Mon, 2010-08-02 at 07:15 -0700, fachhoch wrote: I was looking into cometd , I tried the example it worked for me.I havea new requirement , I have to update a panel in my page if a job running seperately in a thread has finished processing.

Re: using cometd with threads

2010-08-02 Thread fachhoch
.nabble.com/using-cometd-with-threads-tp2310323p2310404.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: using cometd with threads

2010-08-02 Thread Rodolfo Hansen
How are you getting the Bayeux service? It is alright to think of the Bayeux service as a messaging api, that jumps across your various layers (from the service to the javascript client). As long as you remember you can't trust the javascript clients (malicious users), you are fine. On Mon,

Re: using cometd with threads

2010-08-02 Thread fachhoch
Please suggest me how to get Bayeux service in service layer , right now I have in subclass of org.apache.wicket.protocol.http.Application -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2310715.html Sent from the Wicket

Re: using cometd with threads

2010-08-02 Thread Rodolfo Hansen
You can get it from the ServletContext: getServletContext().getAttribute(BayeuxServer.ATTRIBUTE); On Mon, 2010-08-02 at 11:18 -0700, fachhoch wrote: Please suggest me how to get Bayeux service in service layer , right now I have in subclass of org.apache.wicket.protocol.http.Application