Java as a Service

3 views
Skip to first unread message

Ewald Horn

unread,
Apr 15, 2010, 9:35:12 AM4/15/10
to CTJUG-Tech
Hi folks.

I'm running a Java program as a service on WinXP and beyond.

In Linux, no worries, I run a background thread and everything is great, but I'm wondering how best to do it in Windows?

Right now, I'm looking at a wrapper like the Java Service Wrapper from Tanuki Software and want to know if anyone has experience using this?

My home-rolled Object-Pascal wrapper works, sort-of, but it doesn't have all the features of this application and I'm considering going "professional" for this.

My application has a "server" component that gets started in the background in situations where the client and server is on a single machine, this also makes it a lot easier when working in a network environment where Windows Server is used. 

Any ideas are appreciated.

Regards
Ewald

Michael Wiles

unread,
Apr 15, 2010, 10:01:49 AM4/15/10
to ctjug...@googlegroups.com
I used to run hudson as a service, probably with that same service wrapper and it worked fine. No complaints. Could start,restart and stop from the services list, it would start on startup. The logging when something went wrong wasn't great but I was able to fix the problems I had.

--
You received this message because you are subscribed to the Google Groups "CTJUG Tech" group.
To post to this group, send email to CTJUG...@googlegroups.com
To unsubscribe from this group, send email to CTJUG-Tech+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/CTJUG-Tech?hl=en
For Cape Town Java User Group home page see http://www.ctjug.org.za/
For jobs see http://jobs.gamatam.com/



--
see my blog:
http://analysis102.blogspot.com
http://audiblethoughts.blogspot.com
http://outsideofficehours.blogspot.com

Ewald Horn

unread,
Apr 15, 2010, 10:07:14 AM4/15/10
to ctjug...@googlegroups.com
On 15 April 2010 16:01, Michael Wiles <michae...@gmail.com> wrote:
I used to run hudson as a service, probably with that same service wrapper and it worked fine. No complaints. Could start,restart and stop from the services list, it would start on startup. The logging when something went wrong wasn't great but I was able to fix the problems I had.


Excellent.

I see quite a few posts using Python to write a custom service - that's something I'm going to investigate - I have access to a SMS server, so I'd like the machine to send me an SMS if the service runs into anything weird except for normal shutdown or restarts. Thinking about it, I would also like to know from the service, via email, when it was last started etc. to determine uptime on my application.

Thank you for the feedback.

Regards
Ewald
Reply all
Reply to author
Forward
0 new messages