• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Convert standalone java thread application into web application in Tomcat

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
New to J2EE, I am not sure whether i am posting my query in right area. Can we convert or move standalone java thread application into Tomcat server container for accessing its JNDI services? Also is it possible to schedule this thread application in Tomcat server? is it possible to keep this app in tomcat as web application and schedule in window's scheduler. Please guide me on this. Thanks in advance ..
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you can use JNDI resources given you have a proper web-app deployed and the required resources are setup. But this depends on your application logic and how it can be converted in to a web app etc...

...Also is it possible to schedule this thread application in Tomcat server? is it possible to keep this app in tomcat as web application and schedule in window's scheduler ...



You are talking about two different scheduling here. What is your expectation with this "scheduling" here?

And you can setup the Tomcat to start when your OS starts (as a service) and make the application available to be used automatically as a result. Is this what you need?
 
Vic Suyam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Vijitha Kumara, I explain more on my request, Actually the current Thread Job has been scheduled and running in Sybase server. I want to migrate this job from Sybase server to Tomcat. I am not sure whether Tomcat has any default scheduler API for scheduling jobs, so i want to keep this Thread job as standalone one and schedule it in Windows scheduler, My question here is if i keep this Thread Job as standalone means how to use JNDI resources? I believe for referring JNDI resources the application should be in server(Tomcat) container. Please correct me or guide me if i am wrong.
 
Vijitha Kumara
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

... I believe for referring JNDI resources the application should be in server(Tomcat) container...


For resources managed by Tomcat, Yes.

And there are scheduling frameworks like Quartz for Java in case you need to check.
 
reply
    Bookmark Topic Watch Topic
  • New Topic