Re: JSVC Daemon: Pass arguments to application

2012-03-15 Thread H. Ferdinand Nölscher
On 15.03.2012 17:08, Konstantin Kolinko wrote:
> 2012/3/15 "H. Ferdinand Nölscher" :
>> Hello!
>>
>> I need to pass some arguments to my application, which is using the jsvc
>> daemon loader. How could I possibly do that?
>>
> From the docs:
>> http://commons.apache.org/daemon/jsvc.html
>> ./jsvc -help
>> Usage: jsvc [-options] class [args...]
>
> Those "args..." is what you are asking for.
>
> There is also
>>-D=
>>set a Java system property
> Best regards,
> Konstantin Kolinko
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>

Let's say I run

jsvc [-options] class myargs anotherArgument

I check for arguments with something like:

String[] args = dc.getArguments(); (dc is the DaemonContext)

But that just gives me an empty list.


kind regards,
F. Nölscher

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: JSVC Daemon: Pass arguments to application

2012-03-15 Thread Konstantin Kolinko
2012/3/15 "H. Ferdinand Nölscher" :
> Hello!
>
> I need to pass some arguments to my application, which is using the jsvc
> daemon loader. How could I possibly do that?
>

>From the docs:
> http://commons.apache.org/daemon/jsvc.html

> ./jsvc -help
> Usage: jsvc [-options] class [args...]


Those "args..." is what you are asking for.

There is also
>-D=
>set a Java system property

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [pool] Problem with Previous Idle Eviction Threads

2012-03-15 Thread Gary Gregory
Can you be more specific? What version of [pool], what OS, what JMV.

Can you reproduce this in a unit test and create a JIRA and attach the test?

Gary

On Wed, Mar 14, 2012 at 8:36 AM, Tejedor López, Roberto wrote:

>Hi,
>
>
> I have a problem with GenericObjectPool's eviction Threads.
>
>
>
> I use it in a web application and the first time I configure
> GenericObjectPool with eviction mode it Works fine.
>
>
>
> The problem is when I re-install webapplication and Server not destroy
> previous Threads and they continue working creating and destroying objects.
>
>
>
> Thank you very much!
>
>
> 
> Este correo electrónico y, en su caso, cualquier fichero anexo al mismo,
> contiene información de carácter confidencial exclusivamente dirigida a su
> destinatario o destinatarios. Si no es vd. el destinatario indicado, queda
> notificado que la lectura, utilización, divulgación y/o copia sin
> autorización está prohibida en virtud de la legislación vigente. En el caso
> de haber recibido este correo electrónico por error, se ruega notificar
> inmediatamente esta circunstancia mediante reenvío a la dirección
> electrónica del remitente.
> Evite imprimir este mensaje si no es estrictamente necesario.
>
> This email and any file attached to it (when applicable) contain(s)
> confidential information that is exclusively addressed to its recipient(s).
> If you are not the indicated recipient, you are informed that reading,
> using, disseminating and/or copying it without authorisation is forbidden
> in accordance with the legislation in effect. If you have received this
> email by mistake, please immediately notify the sender of the situation by
> resending it to their email address.
> Avoid printing this message if it is not absolutely necessary.
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
JUnit in Action, 2nd Ed: http://bit.ly/ECvg0
Spring Batch in Action: http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


JSVC Daemon: Pass arguments to application

2012-03-15 Thread H. Ferdinand Nölscher
Hello!

I need to pass some arguments to my application, which is using the jsvc
daemon loader. How could I possibly do that?

kind regards,
F. Nölscher

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [vfs] changing file permissions / chmod

2012-03-15 Thread Gary Gregory
IOn Mar 15, 2012, at 6:27, Damian Waszak  wrote:

> Hi Gary,
>
> Thanks for the reply. I have created a JIRA issue here:
> https://issues.apache.org/jira/browse/VFS-405 .
>
> Would appreciate if you could take a look and update it (or let me know)
> if something is missing and/or could be made more precise.

If you want this any time soon, you should submit a patch that includes tests.

Gary

>
> Thanks,
> Damian
>
> On 03/07/2012 07:49 PM, Gary Gregory wrote:
>> Hi Damian,
>>
>> This feature has not been implemented in VFS. Feel free to create a JIRA
>> and provide a patch :)
>>
>> Gary
>>
>> On Wed, Mar 7, 2012 at 11:58 AM, Damian Waszakwrote:
>>
>>> Hi all,
>>>
>>> Is it possible to change permissions on the file (before or after an
>>> upload to SFTP server)? I would like to execute something similar to chmod
>>> 0664 on the file.
>>>
>>> I have found it 
>>> http://commons.apache.org/vfs/**todo.htmlas
>>>  a todo element ("Get/set the file permissions."), and last post on user
>>> group that looks similar to what I need to do is from year 2005 ( link<
>>> http://markmail.org/search/?**q=vfs+file+chmod+list%3Aorg.**
>>> apache.commons.users%2F#query:**vfs%20file%20chmod%20list%**
>>> 3Aorg.apache.commons.users%2F+**page:1+mid:2srusxt43i77bvhn+**
>>> state:results>
>>> ). So I hope this is just outdated info.
>>>
>>> If this is still not implemented is there a JIRA issue to track it?
>>>
>>> Thanks,
>>> Damian
>>>
>>> --
>>> Damian Waszak
>>> Tel:   +49 (0)69 900 289 745
>>>
>>> 360 Treasury Systems AG
>>> Grüneburgweg 16-18 / Westend Carrée
>>> D-60322 Frankfurt am Main
>>> Fax:  +49 (0)69 900 289 29
>>>
>>>
>>> Visit us at www.360T.com
>>>
>>> Euromoney FX Poll 2011: 1st in Competitive Pricing/Transactional Cost
>>> TMI Awards for Innovation&   Excellence 2007-2011: "Best FX Dealing Portal"
>>>
>>> Registered Office: Frankfurt
>>> Commercial Register Frankfurt, No. HRB 49874
>>>
>>> Executive Board: Carlo Kölzer, Alfred Schorno
>>> Supervisory Board: Dr. Rainer Zimmermann
>>>
>>> This message contains confidential information and is intended only for
>>> the individual named. If you are not the named addressee you should not
>>> disseminate, distribute or copy this e-mail. Please notify the sender
>>> immediately by e-mail if you have received this e-mail by mistake and
>>> delete this e-mail from your system.
>>> E-mail transmission cannot be guaranteed to be secure or error-free as
>>> information could be intercepted, corrupted, lost, destroyed, arrive late
>>> or incomplete, or contain viruses. The sender therefore does not accept
>>> liability for any errors or omissions in the contents of this message which
>>> arise as a result of e-mail transmission.
>>>
>>>
>>> --
>>> This message has been scanned for viruses and
>>> dangerous content by MailScanner, and is
>>> believed to be clean.
>>>
>>>
>>
>
> --
> Damian Waszak
> Tel:   +49 (0)69 900 289 745
>
> 360 Treasury Systems AG
> Grüneburgweg 16-18 / Westend Carrée
> D-60322 Frankfurt am Main
> Fax:  +49 (0)69 900 289 29
>
>
> Visit us at www.360T.com
>
> Euromoney FX Poll 2011: 1st in Competitive Pricing/Transactional Cost
> TMI Awards for Innovation&  Excellence 2007-2011: “Best FX Dealing Portal”
>
> Registered Office: Frankfurt
> Commercial Register Frankfurt, No. HRB 49874
>
> Executive Board: Carlo Kölzer, Alfred Schorno
> Supervisory Board: Dr. Rainer Zimmermann
>
> This message contains confidential information and is intended only for the 
> individual named. If you are not the named addressee you should not 
> disseminate, distribute or copy this e-mail. Please notify the sender 
> immediately by e-mail if you have received this e-mail by mistake and delete 
> this e-mail from your system.
> E-mail transmission cannot be guaranteed to be secure or error-free as 
> information could be intercepted, corrupted, lost, destroyed, arrive late or 
> incomplete, or contain viruses. The sender therefore does not accept 
> liability for any errors or omissions in the contents of this message which 
> arise as a result of e-mail transmission.
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [vfs] changing file permissions / chmod

2012-03-15 Thread Damian Waszak

Hi Gary,

Thanks for the reply. I have created a JIRA issue here: 
https://issues.apache.org/jira/browse/VFS-405 .


Would appreciate if you could take a look and update it (or let me know) 
if something is missing and/or could be made more precise.


Thanks,
Damian

On 03/07/2012 07:49 PM, Gary Gregory wrote:

Hi Damian,

This feature has not been implemented in VFS. Feel free to create a JIRA
and provide a patch :)

Gary

On Wed, Mar 7, 2012 at 11:58 AM, Damian Waszakwrote:


Hi all,

Is it possible to change permissions on the file (before or after an
upload to SFTP server)? I would like to execute something similar to chmod
0664 on the file.

I have found it 
http://commons.apache.org/vfs/**todo.htmlas a 
todo element ("Get/set the file permissions."), and last post on user
group that looks similar to what I need to do is from year 2005 ( link<
http://markmail.org/search/?**q=vfs+file+chmod+list%3Aorg.**
apache.commons.users%2F#query:**vfs%20file%20chmod%20list%**
3Aorg.apache.commons.users%2F+**page:1+mid:2srusxt43i77bvhn+**
state:results>
). So I hope this is just outdated info.

If this is still not implemented is there a JIRA issue to track it?

Thanks,
Damian

--
Damian Waszak
Tel:   +49 (0)69 900 289 745

360 Treasury Systems AG
Grüneburgweg 16-18 / Westend Carrée
D-60322 Frankfurt am Main
Fax:  +49 (0)69 900 289 29


Visit us at www.360T.com

Euromoney FX Poll 2011: 1st in Competitive Pricing/Transactional Cost
TMI Awards for Innovation&   Excellence 2007-2011: "Best FX Dealing Portal"

Registered Office: Frankfurt
Commercial Register Frankfurt, No. HRB 49874

Executive Board: Carlo Kölzer, Alfred Schorno
Supervisory Board: Dr. Rainer Zimmermann

This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.






--
Damian Waszak
Tel:   +49 (0)69 900 289 745

360 Treasury Systems AG
Grüneburgweg 16-18 / Westend Carrée
D-60322 Frankfurt am Main
Fax:  +49 (0)69 900 289 29


Visit us at www.360T.com

Euromoney FX Poll 2011: 1st in Competitive Pricing/Transactional Cost
TMI Awards for Innovation&  Excellence 2007-2011: “Best FX Dealing Portal”

Registered Office: Frankfurt
Commercial Register Frankfurt, No. HRB 49874

Executive Board: Carlo Kölzer, Alfred Schorno
Supervisory Board: Dr. Rainer Zimmermann

This message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses. The sender therefore does not accept liability 
for any errors or omissions in the contents of this message which arise as a 
result of e-mail transmission.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org