• Post Reply Bookmark Topic Watch Topic
  • New Topic

Convert standalone java thread application into web application in Tomcat

 
Mic Paul
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • 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 ..
 
Vijitha Kumara
Bartender
Posts: 3952
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • 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?
 
Mic Paul
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • 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: 3952
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!