Changeset 2706


Ignore:
Timestamp:
02/17/05 11:57:27 (8 years ago)
Author:
hauma
Message:

Proof of concept for a JavaParty RMI server (ticket:224)

  • Allow to specify a custom JP access code when starting the runtime environment.
  • If no main class is specified, just start the environment without the invocation of a main() method.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jp/bin/jpinvite

    r2679 r2706  
    4646     layout. 
    4747 
     48  -code <JP access code> 
     49     Use a custom access code for the started runtime 
     50     environment. When contacting the runtime manager, an access code 
     51     must be given. This prevents virtual machines accidentally 
     52     registering at the wrong runtime manager.  
     53 
     54     By default an arbitrary but unique code is used. This is 
     55     sufficient in almost all cases. Only if the runtime environment 
     56     should be contacted by an external client application, a known 
     57     access code must be arranged. 
     58 
    4859  -D<property-name>=<value> 
    4960     Set a system property consistent on all participating virtual 
     
    219230            shift ; shift ;; 
    220231 
     232        -code) 
     233            code="${2}" 
     234            shift ; shift ;; 
     235 
    221236        -frontend) 
    222237            rmIsFrontend="" 
     
    251266    esac 
    252267done 
     268 
     269 
     270if [ ${#*} -gt 0 ] ; then 
     271    invokeMain=1 
     272fi 
    253273 
    254274 
     
    314334host=${nodenames[0]} 
    315335port=1099 
    316 code="JP-${UID}-${RANDOM}" 
     336code=${code:="JP-${UID}-${RANDOM}"} 
    317337 
    318338nodecnt=${#nodenames[*]} 
     
    382402     -nodename '@NODENAME@' $JPQ_VM_OPTIONS" 
    383403 
    384 execCmd="\ 
     404execCmd="${invokeMain:+\ 
    385405  exec -host '$host' -port '$port' \ 
    386406       -code '$code' $verbose \ 
    387407       -killonexit $JPQ_EXEC_OPTIONS \ 
    388        $quoted_arguments" 
     408       $quoted_arguments}" 
    389409 
    390410rshCmd="\ 
Note: See TracChangeset for help on using the changeset viewer.