Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Running a Java App as a Service

Thread view: 
Raga - 26 Jul 2006 11:21 GMT
Hi,

I have a pure java application which I want to run as a service. Any
suggestions on how to do it ? I saw some articles saying how to use JNI
to do it along with C code. But I am looking for  a pure Java solution.
Also, some said that -Xrs option of the 'java' command would help. But
when I ran the application with 'Xrs' option, I didn't notice any
difference from the run without the option.

Thanks.
Vincent van Beveren - 26 Jul 2006 11:32 GMT
> I have a pure java application which I want to run as a service. Any
> suggestions on how to do it ? I saw some articles saying how to use JNI
> to do it along with C code. But I am looking for  a pure Java solution.
> Also, some said that -Xrs option of the 'java' command would help. But
> when I ran the application with 'Xrs' option, I didn't notice any
> difference from the run without the option.

try:

http://www.google.com/search?hl=en&q=java+service+wrapper&btnG=Google+Search

We've just wrapper from tanuki. Its good

http://wrapper.tanukisoftware.org/doc/english/introduction.html

Vincent
Raga - 26 Jul 2006 11:45 GMT
OK. Thanks!

> > I have a pure java application which I want to run as a service. Any
> > suggestions on how to do it ? I saw some articles saying how to use JNI
[quoted text clipped - 12 lines]
>
> Vincent
Raga - 27 Jul 2006 14:24 GMT
I have doubts on the licensing of Apache Commons Daemon & Java Service
Wrapper.

Is it ok to bundle Java Service Wrapper with a company's proprietary
product & sell the product? Meaning say if a company product named
product-1 uses Java Service Wrapper to run as a Windows Service. Is it
ok to sell product-1 (naturally Java Service Wrapper has to be bundled
with it to enable it to be run as a Windows Service) as a proprietary
product?

Thanks.

> OK. Thanks!
>
[quoted text clipped - 14 lines]
> >
> > Vincent
Vincent van Beveren - 27 Jul 2006 16:31 GMT
> I have doubts on the licensing of Apache Commons Daemon & Java Service
> Wrapper.
[quoted text clipped - 5 lines]
> with it to enable it to be run as a Windows Service) as a proprietary
> product?

> Thanks.

I dont'know about Commons Daemon, but JSW has this license:

"Permission is hereby granted, free of charge, to any person
obtaining a copy of the Java Service Wrapper and associated
documentation files (the "Software"), to deal in the Software
without  restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sub-license,
and/or sell copies of the Software, and to permit persons to
whom the Software is furnished to do so, subject to the
following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software."

See the full licence on the site. As far as I can see, you are allowed
to do almost anything with it as long as you bundle the license and
copyright notice.

Vincent
Raga - 28 Jul 2006 09:18 GMT
OK. Thanks!

> > I have doubts on the licensing of Apache Commons Daemon & Java Service
> > Wrapper.
[quoted text clipped - 27 lines]
>
> Vincent
dhayanithi@gmail.com - 26 Jul 2006 12:23 GMT
Hi,

This is

> Hi,
>
[quoted text clipped - 6 lines]
>
> Thanks.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.