SOA Governance and API Management : Run-time Governance with CentraSite : Consumer Applications : Deploying or Publishing Consumer Applications to Gateways : Overview : Deploying Consumer Applications from the Command Line : Write a Script File to Invoke Deployment Operation (for UNIX)
Write a Script File to Invoke Deployment Operation (for UNIX)
Create a script file that looks as follows if CentraSite is running under Unix.
set javaexe="fullPathToJava.exe"
set redist="CentraSiteHomeDirectory/redist"
set mainjar="CentraSiteRuntimePEP.jar"
set delim='\:'
cd "$redist"
set cl=""
foreach j ( 'ls *.jar' )
if ($cl != "") set cl=${cl}${delim}
set cl=${cl}${j}
end
setenv CLASSPATH ${mainjar}${delim}${cl}
$javaexe deployerClassName $*
Where deployerClassName is the name of the deployer that you want to run.
Example
The following is an example of a script file that calls the Consumer Applications deployer:
#!/bin/csh
#
# Run Consumer Applications deployer
#
set javaexe="/mydir/softwareag/cjp/v16/bin/java"
set redist="/mydir/softwareag/CentraSite/redist"
set mainjar="CentraSiteRuntimePEP.jar"
set delim='\:'
# build CLASSPATH with all files from jar directory
cd "$redist"
set cl=""
foreach j ( `ls *.jar` )
if ($cl != "") set cl=${cl}${delim}
set cl=${cl}${j}
end
setenv CLASSPATH ${mainjar}${delim}${cl}
$javaexe com.softwareag.centrasite.runtime.pep.util.VirtualServiceDeployer $*
Copyright © 2015- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback