|
From: Leif M. <le...@ta...> - 2003-10-23 06:01:12
|
Arun,
I have not tried that exact thing before. The notepad process is
considered a child
process of the JVM, and thus of the Wrapper. In order for the Wrapper
or any of its
child processes to be able to display a GUI the service needs to have
its interactive flag
set.
Have you tried setting the wrapper.ntservice.interactive flag? Make
sure you read the
docs for this property as there are some tricks to get it to work with
certain JVM
versions.
http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-interactive.html
Please report back with the results? I am interested to hear if
that works. If not
what happens if you try to launch the Notepad process directly, rather
than via a batch
file?
Cheers,
Leif
Ramachandra, Arun wrote:
> OK this is a tricky one i guess:
> I have an app one of whose functions is to open up a batchfile which
> opens up a notepad editor. I use the wrapper to run this as a service.
> When run as a console app it works fine. HOwever when i invoke this
> functionality with the wrapper i can see the notepad.exe as a process
> but don't see any notepad window open up.
>
> 1:> How can i get around this?
> 2:>Can i get around this at all?
>
> To generalise, if i invoke a console app which requires interaction
> with the user how do i invoke it when my app is a service?
>
> -Thanks
> -Arun
>
|