File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes webservice as awindows service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "webservice as awindows service" Watch "webservice as awindows service" New topic
Author

webservice as awindows service

Shasi Sekar
Greenhorn

Joined: Aug 22, 2008
Posts: 23
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

Joined: Mar 22, 2000
Posts: 12835
    
    5
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

Joined: Aug 22, 2008
Posts: 23
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

Joined: Mar 22, 2000
Posts: 12835
    
    5
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

Joined: Aug 22, 2008
Posts: 23
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: webservice as awindows service