• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

webservice as awindows service

 
Shasi Sekar
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I developed a web service and hosted it successfully in a web server.Now i need to host this service as a windows service.

Any ideas into convert a web service in to windows service.Any suggestions or reference would do good

Thank you
Shasi
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming this is a HTTP web service we are talking about, you need a HTTP (web) server - there are plenty of options, Tomcat would be my choice.

Tomcat can be installed as a windows service.

Bill
 
Shasi Sekar
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks bill for your comment.

Yes it is a http service and i had deployed into tomcat6.0 and its working fine.

The requirement is, i need to convert this service into a windows service i.e this service is to be seen in the screen which appears when i type "services.msc" in windows.

Hope this is clear enough about the requirement

Thanks in advance
Shasi
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as Windows is concerned, I think Tomcat is always going to be the "service" that shows up in the services dialog.

I believe there are HTTP server packages you can incorporate into a Java program you can name whatever you want but I have never done that.

Bill
 
Shasi Sekar
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes there is a tomcat service running and shown in services dialog

But i want the web service service to be shown in the services dialog as the way tomcat is shown
 
Tim Moores
Bartender
Posts: 2752
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean an individual web service? Out of potentially several that could be running? That's not going to happen, unless you run them all individually, each with their own Java process (and why would you want to do that?).

Google for "windows service wrapper" or some such phrase to find a solution for running Java code as a Windows service.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic