|
From: Christian <chr...@ta...> - 2009-10-07 09:20:43
|
Hi Riyaz & Hubert, Hubert is fast and right. When running as a service, the Wrapper and its JVM, will by default be running as the Windows SYSTEM user. This user does not have the ability to access network drives or printers. It is also possible to run as a specific user account to gain access to network drives etc: http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-account.html I think this should work out for you. Cheers, Christian Mueller On Wed, 2009-10-07 at 11:12 +0200, Hubert Felber wrote: > Hi, > Probabely: > Your printers are stored under a user account, that's why it works from > batch file. > As your service runs under the account "system", you don't have access > to the printers configured for that certain user account. > You 'll have to run your service with the same user account as you > configured the printers. > Hubert > > >>> Riyaz Saiyed <riy...@mi...> 07.10.2009 11:07 >>> > > Hi, > > We've a printing application that takes a printer name as argument and > load > that printer.I've configured tanuki wrapper to start and stop this > application. > If I start this application via running a batch file, it work > perfectly. > But if I install this application as windows service an run application > via > starting a service, it does not load printer. > The exception message I get here is : "Can not load specified printer > : > MTW_Printer. Printer not found." > With batch file approach, it locates printer : "Specified Printer found > : > Win32 Printer : \\172.22.192.230\MTW_Printerr" > Here both the messages are application specific and application > generates it > when it tries to load printer. > > Regards, > Riyaz > > ----- > Regards, > Riyaz.. > > |