• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Best way to create a windows service using java  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

I want to create an application that has to be run in background without any user interaction(like windows service) using java, it has to support for any platform.

Thanks in advance..

Regards,
Sanath

 
Sanath sajjan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need open source to create it. I think JRebel is not an Open source.

Thanks for the reply.

Regards,
Sanath
 
Rancher
Posts: 42973
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JRebel does something completely different. Search for "java service wrapper".
 
Sanath sajjan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Service wrapper will support only for windows platform, I need to develop an application that has to support for any platform.

Thanks for the reply
 
Rancher
Posts: 1020
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Java Service wrapper will support only for windows platform

If you write an appropriate Java program (i.e. one without GUI or CUI user interaction), it will be possible to run it as a "service" or a "daemon" on the given platform. The program itself is one thing, the wrapping (a Windows service wrapper or a nohup starting script under Unix etc.) is another thing.

One could ask, what makes a Java program eligible to be a service or a daemon. And one could ask, how to turn it into a Windows service or a Unix daemon.
 
Sanath sajjan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi evan,

what makes a Java program eligible to be a service or a daemon?

>As you said, the application should not interact with the user, the input data it has to pickup from the properties file maintained for that particular application.

how to turn it into a Windows service or a Unix daemon?

>Currently I know it for windows
>We can configure the service should automatic or manual. If it automatic means, when we start the system the service will starts, when the shut down the system the service will turned off.
>If it is manual means, the user has to manually start the service and stop the service manually in services.msc

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!