|
From: Mark L. <mid...@ve...> - 2007-06-26 04:34:20
|
Leif, Yes, the drag and drop works when my app is run in the Wrapper in a console. It also works when the app is run directly in the JVM, without the Wrapper. It does not work when it is run in the Wrapper as a Service. I have no way to test whether it works properly in a service implemented without the Wrapper, but I assume the problem is inherent to running a GUI app as a service. There seems to be something about the Windows service environment that is disabling drag and drop. I was hoping that some setting in the Wrapper might solve the problem, though a search of the documentation and the mail archives did not reveal any such thing. It would also be nice to know if anyone else is able to implement Java drag and drop in a Wrapper-implemented service. Also, shouldn't the setting for enabling a service to interact with the desktop (wrapper.ntservice.interactive=true) cover this problem? If so, is there some other consideration I should be aware of regarding that setting? I did verify in the Windows service manager window that the interactive setting was enabled. I wonder if it could be related to me running the service as the local system account, while trying to do the drag and drop while logged in as my personal account. I changed the setting in the Windows Service Manager to run the app as my personal account. I restarted the service, and it looked normal in the service manager, but the GUI never showed up. Then I tried the same thing by changing the wrapper.conf file to run the service as my personal account wrapper.ntservice.interactive=false wrapper.ntservice.account=.\Mark wrapper.ntservice.password=myPassword And it behaved the same way. Looked as expected in the Service Manager window, but the GUI never showed up. -Mark Leif Mortenson wrote: > Mark, > That is not something I have tried personally. To be clear, > Drag and drop is not working when running as a service. Does > it work when running under the Wrapper in a console? > > Cheers, > Leif > > Mark Leone wrote: >> I have a Java Swing app that supports drag and drop. It works >> properly in stand-alone mode, but when I run it as a service via >> Wrapper, the drag and drop is disabled. When I drag a file that I >> should be able to drop, I get the circle with a slash icon. I have >> "wrapper.ntservice.interactive=true" in the Wrapper configuration >> file. Is there any other setting in Wrapper that might remedy this? >> I posted on the Sun java forums, but didn't get any responses. I'm >> hoping someone here might know how to make this work. >> >> -Mark >> > > > |