dev@glassfish.java.net

Re: passing Java options to v3 thru startserv

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Fri, 18 Apr 2008 19:38:13 -0700

Kedar Mhaswade wrote:
> Byron Nevins wrote:
>> These are brand new scripts for V3
>
> Errrr. For TP-2. We need to decide whether we should carry them
> forward, given
> various opinions on them.
>
> Also, do we need stopserv script if ^C does the job?
Of course we need a stopserv command.
Do you forget scritpability? How do I send a ^C via a script, or a tool
like Eclipse or NetBeans or ANT?...on Windows, on mac, on solaris, etc?

Ludo
>
> -- not modifications of the old scripts.
>> They just happen to have the same name.
>
> And that is enough to cause confusion.
>
>>
>>
>> Scott Fordin wrote:
>>> Vivek Pandey wrote:
>>>> I was looking at easy way to pass system properties or java options
>>>> while using v3 startup script 'startserv'.
>>>
>>> My understanding is that startserv/stopserv are deprecated. FWIW,
>>> based on review comments, I've removed all reference to these
>>> scripts from QSG guide.
>>>
>>> Scott
>>>
>>>>
>>>> Can we not have JAVA_OPTS env variable to pass such values:
>>>>
>>>> 11c11
>>>> < exec java $JAVA_OPTS -jar
>>>> "$AS_INSTALL_LIB/admin-cli-10.0-SNAPSHOT.jar" start-domain
>>>> --verbose "$@"
>>>> ---
>>>> > exec java -jar "$AS_INSTALL_LIB/admin-cli-10.0-SNAPSHOT.jar"
>>>> start-domain --verbose "$@"
>>>>
>>>>
>>>> I tried and it does not seem to work. Although if I start using
>>>> glassfish-10.0-SNAPSHOT.jar instaed of admin-cli-10.0-SNAPSHOT.jar
>>>> then the system properties passed to java works! I could have made
>>>> it work using java -jar from command line but it is hard to
>>>> automate or document as the jar file name will keep changing across
>>>> different v3 milestones and providing options to the startup script
>>>> to pass such otions to java is available in most of the web servers
>>>> such as tomcat (catalina.sh).
>>>>
>>>> -vivek.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>