|
From: Aparna K. <ap...@da...> - 2007-05-14 15:57:58
|
Thanks Leif,
I think we'll split the application and run them as two processes.
Thanks,
Aparna
-----Original Message-----
From: Leif Mortenson [mailto:le...@ta...]=20
Sent: Friday, May 11, 2007 7:56 PM
To: wra...@li...
Subject: Re: [Wrapper-user] Problem with printer discovery on a network-
when application wrapped as a service
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=20
> 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=20
> true.
> If I use the wrapper.ntservice.account property, the wrapper ignores=20
> 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=20
> network- when application wrapped as a service
>
> Aparna,
> See my notes inline below
>
> Aparna Khade wrote:
> =20
>> Thanks for your response.
>>
>> My service was initially running under the Local System account.=20
>>
>> A few minutes ago, I set the wrapper.ntservice.account &=20
>> wrapper.ntservice.password.prompt configuration parameters.
>> But I got this error:
>> The service did not start due to a logon failure.
>> =20
>> =20
> What is the exact message you are getting? Did you read over the=20
> 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.h
> tm
> l
> =20
>> 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?=20
>> We will be distributing this application to several clients. I cannot
>> hard code the user account in the configuration file.
>> =20
>> =20
> One option is to set the following in your configuration file:
> wrapper.ntservice.account=3D%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
>
> =20
>> -----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=20
>> account, which has no access to network shares (and in your case=20
>> 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...>:
>>
>> =20
>> =20
>>> Hi,
>>>
>>> I have developed a Java application using JDK 1.5 and one of the=20
>>> tasks
>>> =20
>>> =20
>> =20
>> =20
>>> of the application is to detect all the printers installed on the=20
>>> user's machine.
>>>
>>> When I test my application before wrapping it as a service, it=20
>>> detects
>>> =20
>>> =20
>> =20
>> =20
>>> all the printers (including network printers) But, when the=20
>>> application is installed as a service, it DOES NOT detect network=20
>>> printers.
>>>
>>> I looked on the site for any related configuration parameters, but=20
>>> could not find any.
>>>
>>> Is there something specific that needs to be done to look for=20
>>> network
>>> =20
>
> =20
>>> resources.
>>> I would appreciate any help in this matter.
>>>
>>>
>>> Thanks,
>>> Aparna
>>>
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> --- This SF.net email is sponsored by DB2 Express Download DB2=20
>>> Express
>>> =20
>>> =20
>> =20
>> =20
>>> 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
>>>
>>> =20
>>> =20
>>
>> ---------------------------------------------------------------------
>> -
>> --
>> -
>> This SF.net email is sponsored by DB2 Express Download DB2 Express C=20
>> -
>> =20
>
> =20
>> the FREE version of DB2 express and take control of your XML. No
>> =20
> limits.
> =20
>> 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=20
>> Express
>> =20
>
> =20
>> C - the FREE version of DB2 express and take control of your XML. No=20
>> 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
>>
>> =20
>> =20
>
>
> ----------------------------------------------------------------------
> --
> -
> 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=20
> 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
>
> =20
------------------------------------------------------------------------
-
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
|