RCP as Windows Service [message #260799] |
Fri, 11 July 2008 12:45  |
Eclipse User |
|
|
|
I am attempting to figure out how to start my RCP application as a
Windows Service.. there doesnt seem to be much in the way of content on
the web describing how this may be achieved.. but surely it must be
possible..
I've been attempting to use Java Service Wrapper.. unsuccessfully as of
yet..
Does anyone have any tips/recommendations/resources ??
Gary
|
|
|
|
|
|
|
Re: RCP as Windows Service [message #261062 is a reply to message #260824] |
Mon, 14 July 2008 12:24  |
Eclipse User |
|
|
|
At the moment, our service is a separate backend that has no user
interface, so I am not quite sure how to go about adding a tray icon.
After looking through the documentation a little bit, it looks like you
might be able to get it to work by adding
wrapper.ntservice.interactive=true to the wrapper.conf file. Take a look
at the following url:
http://wrapper.tanukisoftware.org/doc/english/prop-ntservice -interactive.html
Hope this helps.
TF
Gary Louttit wrote:
> Thanks very much for your reply. I was able to use your advice and
> start my RCP as a service. Only a couple differences.. note i am using
> eclipse 3.4..
>
> 1) wrapper.conf
> # Java Classpath (include wrapper.jar) Add class path elements as
> # needed starting from 1
> wrapper.java.classpath.1=../lib/wrapper.jar
> wrapper.java.classpath.2=../plugins/org.eclipse.equinox.laun cher_1.0.100.v20080509-1800.jar
>
>
> 2) wrapper.conf
> # Application parameters. Add parameters as needed starting from 1
> wrapper.app.parameter.1=org.eclipse.equinox.launcher.Main
>
> 3) I used the config.ini that was generated from my product export.
>
> Another question however, part of my experiment was to see how my
> eclipse RCP with UI + Tray icon would be handled if started as a
> service. When i launch from MyApp.bat the UI/tray icon are launched but
> if i start/stop from the Windows Service Manager, no user interface
> appears.
>
> Do you or your application have any experience with services w/UIs or is
> a backend without UI required?
>
> Gary
>
> Topher Fangio wrote:
>> Hello,
>>
>> I just successfully set this up about a week ago. We are using
>> Wrapper.app with a specialized configuration file. After exporting the
>> product through eclipse, I have a batch file that moves the plugins
>> around a bit to get them in the correct directories. It also deletes
>> the .eclipseproduct and eclipse.exe files since I launch the necessary
>> plugins manually in the config.ini.
>>
>> My directory structure looks like the following:
>>
>> - OurService
>> - bin
>> OurService.bat
>> InstallOurService-NT.bat
>> UninstallOurService-NT.bat
>> wrapper.exe
>> - conf
>> wrapper.conf
>> - configuration
>> config.ini
>> - lib
>> wrapper.jar
>> wrapper.dll
>> - logs
>> - plugins
>> *all of our plugins*
>> net.fractech.ops.daq.core_1.0.0.jar
>> net.fractech.ops.daq_1.0.0.jar
>> org.eclipse.equinox.common_3.4.0.v20070910
>> org.eclipse.osgi_3.3.0.v20070530
>> org.eclipse.update.configurator_3.2.100.v20070615
>> org.springframework.osgi.spring-osgi-extender_1.0.0.m2
>>
>> Attached are the config.ini and wrapper.conf configuration files. All
>> of the other files I believe are standard except for a few changes of
>> names. Note that we are using 3.3 at the moment, so things may be
>> slightly different for 3.4.
>>
>> Let me know if you have any questions!
>>
>> TF
>>
>> Gary Louttit wrote:
>>> I am attempting to figure out how to start my RCP application as a
>>> Windows Service.. there doesnt seem to be much in the way of content
>>> on the web describing how this may be achieved.. but surely it must
>>> be possible..
>>>
>>> I've been attempting to use Java Service Wrapper.. unsuccessfully as
>>> of yet..
>>>
>>> Does anyone have any tips/recommendations/resources ??
>>>
>>> Gary
>>
|
|
|
Powered by
FUDForum. Page generated in 0.31601 seconds