You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by jcgarciam <jc...@gmail.com> on 2010/08/03 16:10:52 UTC
Re: using cometd with threads
If you are starting your Job from a Web Request, initialize your Bayeaux
service (as Rodolfo mentioned) and pass that to your processing Job (Your
Job doesn't have to be WebApi aware) as Rodolfo said, Bauyeaux is meant to
be used a messaging API.
On Tue, Aug 3, 2010 at 11:00 AM, fachhoch [via Apache Wicket] <
ml-node+2311905-1356455233-229420@n4.nabble.com<ml...@n4.nabble.com>
> wrote:
> If I do that I am using web api in service which is not good , so any other
> way ?
>
> ------------------------------
> View message @
> http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2311905.html
> To unsubscribe from Apache Wicket, click here<http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ=>.
>
>
>
--
Sincerely,
JC
Work smarter, not harder!.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2311920.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Re: using cometd with threads
Posted by Rodolfo Hansen <kr...@gmail.com>.
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:
> 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 ?
>
Re: using cometd with threads
Posted by jcgarciam <jc...@gmail.com>.
I haven't tried this myself, but take a look into the Spring interface
ServletContextAware<http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/web/context/ServletContextAware.html>it
may shed some light to achieve what you want.
*
*
*
*
On Tue, Aug 17, 2010 at 12:06 PM, fachhoch [via Apache Wicket] <
ml-node+2328511-1648896416-65838@n4.nabble.com<ml...@n4.nabble.com>
> wrote:
> 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 message @
> http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2328511.html
> To unsubscribe from Apache Wicket, click here<http://apache-wicket.1842946.n4.nabble.com/template/NodeServlet.jtp?tpl=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=>.
>
>
>
--
Sincerely,
JC (http://www.linkedin.com/in/jcgarciam)
Work smarter, not harder!.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-cometd-with-threads-tp2310323p2328532.html
Sent from the Wicket - User mailing list archive at Nabble.com.
Re: using cometd with threads
Posted by fachhoch <fa...@gmail.com>.
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 mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org