users@jersey.java.net

[Jersey] Re: running a parallel polling thread when the webapp gets deployed

From: tmp <le_tmp_at_gmx.de>
Date: Tue, 14 Feb 2012 05:48:35 -0800 (PST)

Thanks for your help again!

I tried it 10 times to subscribe for users_at_jersey.dev.java.net but i'm
getting no subscription response.. so i have to use the old adress ;)

I am using the tomcat-maven-plugin to deploy my webapp.
Do I have to register the class that uses the @Schedule annotation in my
web.xml explicitely?

Here is my actual web.xml: http://pastebin.com/EamiEeF7
And here is the pom.xml: http://pastebin.com/52KQzM9A

It took me a long time to get the tomcat-maven-plugin running with https and
the database connection. So I dont know if it is easy to switch to glassfish
instead of tomcat. Do you have experiences with that?

All I need is to start a polling thread as soon as the webapp gets deployed.
Perhaps I dont need EJB for that? Isn't there a possibility to achieve this
with jersey?

Thanks again for your help!





--
View this message in context: http://jersey.576304.n2.nabble.com/running-a-parallel-polling-thread-when-the-webapp-gets-deployed-tp7269447p7283903.html
Sent from the Jersey mailing list archive at Nabble.com.