|
From: Leif M. <le...@ta...> - 2007-05-11 23:56:06
|
Aparna,
Not that I know of. Some applications get around this problem by
running two processes. One is the main service process, and the second
is a small process that gets launched when a user logs in. It runs as
the logged in user and communicates in the background with the main
service using a state file, socket, or some other method.
I know it is a pain, but I am not aware of any way to get around this
due to the way Windows is designed.
If anyone has any other information on this, I would love to hear about
it as well.
Cheers,
Leif
Aparna Khade wrote:
> Leif,
>
> I was trying this out at the time I received this email. Thank you very
> much.
>
> My application uses jdic to install the application in the system tray.
> For this I need to set the wrapper.ntservice.interactive property to
> true.
> If I use the wrapper.ntservice.account property, the wrapper ignores the
> wrapper.ntservice.interactive property.
>
> Is there any way to have both?
>
> Thanks in advance.
> Aparna
>
>
> -----Original Message-----
> From: Leif Mortenson [mailto:le...@ta...]
> Sent: Friday, May 11, 2007 11:16 AM
> To: wra...@li...
> Subject: Re: [Wrapper-user] Problem with printer discovery on a network-
> when application wrapped as a service
>
> Aparna,
> See my notes inline below
>
> Aparna Khade wrote:
>
>> Thanks for your response.
>>
>> My service was initially running under the Local System account.
>>
>> A few minutes ago, I set the wrapper.ntservice.account &
>> wrapper.ntservice.password.prompt configuration parameters.
>> But I got this error:
>> The service did not start due to a logon failure.
>>
>>
> What is the exact message you are getting? Did you read over the
> following page? There are some things you need to do security wise to
> enable an account to run a service:
> http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-account.htm
> l
>
>> I see that it got installed, though, but could not be started. When I
>> tried to start it manually, the system set it to 'disabled'.
>>
>> I see that services are started under Local System or Network Service
>> accounts.
>> Any idea how to start it under the Network Service accounts?
>> We will be distributing this application to several clients. I cannot
>> hard code the user account in the configuration file.
>>
>>
> One option is to set the following in your configuration file:
> wrapper.ntservice.account=%MYAPP_ACCOUNT%
> Then set a system wide environment variable with the correct
> value. You could also set the property in an include file etc.
>
> Cheers,
> Leif
>
>
>> -----Original Message-----
>> From: da...@sm... [mailto:da...@sm...]
>> Sent: Friday, May 11, 2007 10:22 AM
>> To: wra...@li...
>> Subject: Re: [Wrapper-user] Problem with printer discovery on a
>> network- when application wrapped as a service
>>
>> My guess would be:
>> http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-account.h
>> tm
>> l
>>
>> When running as a service, Wrapper runs on default as the SYSTEM
>> account, which has no access to network shares (and in your case
>> printers). By specifying an account that it should run as, it will be
>> able to see all the printers that that account has access to.
>>
>> Many thanks,
>>
>> David Hayes
>>
>>
>> Quoting Aparna Khade <ap...@da...>:
>>
>>
>>
>>> Hi,
>>>
>>> I have developed a Java application using JDK 1.5 and one of the
>>> tasks
>>>
>>>
>>
>>
>>> of the application is to detect all the printers installed on the
>>> user's machine.
>>>
>>> When I test my application before wrapping it as a service, it
>>> detects
>>>
>>>
>>
>>
>>> all the printers (including network printers) But, when the
>>> application is installed as a service, it DOES NOT detect network
>>> printers.
>>>
>>> I looked on the site for any related configuration parameters, but
>>> could not find any.
>>>
>>> Is there something specific that needs to be done to look for network
>>>
>
>
>>> resources.
>>> I would appreciate any help in this matter.
>>>
>>>
>>> Thanks,
>>> Aparna
>>>
>>> ---------------------------------------------------------------------
>>> -
>>> --- This SF.net email is sponsored by DB2 Express Download DB2
>>> Express
>>>
>>>
>>
>>
>>> C - the FREE version of DB2 express and take control of your XML. No
>>> limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> Wrapper-user mailing list
>>> Wra...@li...
>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>>
>>>
>>>
>>
>> ----------------------------------------------------------------------
>> --
>> -
>> This SF.net email is sponsored by DB2 Express Download DB2 Express C -
>>
>
>
>> the FREE version of DB2 express and take control of your XML. No
>>
> limits.
>
>> Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Wrapper-user mailing list
>> Wra...@li...
>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>
>> ----------------------------------------------------------------------
>> --- This SF.net email is sponsored by DB2 Express Download DB2 Express
>>
>
>
>> C - the FREE version of DB2 express and take control of your XML. No
>> limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Wrapper-user mailing list
>> Wra...@li...
>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>
>>
>>
>
>
> ------------------------------------------------------------------------
> -
> This SF.net email is sponsored by DB2 Express Download DB2 Express C -
> the FREE version of DB2 express and take control of your XML. No limits.
> Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
|