dev@glassfish.java.net

Re: passing Java options to v3 thru startserv

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Thu, 17 Apr 2008 16:57:03 -0700

These are brand new scripts for V3 -- not modifications of the old scripts.
They just happen to have the same name.


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
>

-- 
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 - Sun Microsystems, Inc.