Exécution d'une application de client léger Java sur un poste serveur
Pour exécuter une application de client léger Java™ sur un poste avec WebSphere Application Server, utilisez la commande setupClient puis démarrez l'application.
Avant de commencer
Procédure
- Définissez l'environnement du client d'application partiel.
Utilisez le shell setupCmdLine.
racine_serveur_app\bin\setupCmdLine.bat
Utilisez le shell setupCmdLine.
racine_serveur_app/bin/setupCmdLine.sh
Utilisez le shell setupCmdLine.
racine_profil/bin/setupCmdLine.sh
Utilisez le script setupClient.
- Démarrez l'environnement Qshell. Au niveau de la ligne de commande CL, entrez la commande STRQSH.
- Au niveau de la ligne de commande Qshell, entrez la commande suivante en vous servant de l'opérateur point (.)
. racine_serveur_app/bin/setupClient [-profileName profileName]
- Exécutez le client d'application.
Utilisez l'une des méthodes suivantes :
- Exécutez une commande Java pour appeler directement votre classe principale.
"%JAVA_HOME%\bin\java" %WAS_LOGGING%" -Djava.security.auth.login.config="%USER_INSTALL_ROOT%\properties\wsjaas_client.conf" -Djava.ext.dirs="%JAVA_HOME%\jre\lib\ext;%WAS_EXT_DIRS%;%WAS_HOME%\plugins;%WAS_HOME%\lib\WMQ\java\lib" -Djava.naming.provider.url=<URL_IIOP_ou_URL_corbaloc_URL_du nom_de votre_machine_de_serveur_applications> -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory -Dserver.root="%WAS_HOME%" "%CLIENTSAS%" "$CLIENTSSL" %USER_INSTALL_PROP% -classpath "%WAS_CLASSPATH%;<liste_des_fichiers_JAR_et_des_classes_de_votre_application>" <nom_complet_de_la_classe_à_exécuter> <paramètres_votre_application>
- Entrez la commande permettant d'utiliser le programme de lancement WebSphere Application Server.
"%JAVA_HOME%\bin\java" %WAS_LOGGING% -Djava.security.auth.login.config="%USER_INSTALL_ROOT%\properties\wsjaas_client.conf" -classpath "%WAS_CLASSPATH%;<liste_des_fichiers_JAR_et_des_classes_de_votre_application> -Djava.ext.dirs="%WAS_EXT_DIRS%;%WAS_HOME%\plugins" -Djava.endorsed.dirs="%WAS_ENDORSED_DIRS% -Djava.naming.provider.url=iiop://<nom_de_machine_de_votre_serveur_d'applications> -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory %SERVER_ROOT% %CLIENTSAS% %CLISENTSSL% <nom_complet_de_la_classe_à_exécuter>
Utilisez l'une des méthodes suivantes :
- Exécutez une commande Java pour appeler directement votre classe principale.
Pour plus d'informations sur les URL IIOP et corbaloc, voir la rubrique Développement d'applications utilisant JNDI."$JAVA_HOME/bin/java" $WAS_LOGGING -Djava.security.auth.login.config="$USER_INSTALL_ROOT/properties/wsjaas_client.conf" -Djava.ext.dirs="$JAVA_HOME/jre/lib/ext:$WAS_EXT_DIRS:$WAS_HOME/plugins: $WAS_HOME/lib/WMQ/java/lib" -Djava.naming.provider.url=<URL_IIOP_ou_URL_corbaloc_URL_du nom_de votre_machine_de_serveur_applications> -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory -Dserver.root="$WAS_HOME" $USER_INSTALL_PROP "$CLIENTSAS" "$CLIENTSSL" -classpath "$WAS_CLASSPATH: <liste_des_fichiers_JAR_et_des_classes_de_votre_application>" <nom_complet_de_la_classe_à_exécuter> <paramètres_votre_application>
- Entrez la commande permettant d'utiliser le programme de lancement WebSphere Application Server.
"$JAVA_HOME/bin/java" $WAS_LOGGING -Djava.security.auth.login.config="$USER_INSTALL_ROOT/properties/wsjaas_client.conf" "-Dws.ext.dirs=<liste_des_fichiers_jar_et_des_classes_de_votre_application> $WAS_EXT_DIRS:$WAS_USER_DIRS" -Djava.naming.provider.url=<URL_IIOP_ou_URL_corbaloc_URL_du nom_de votre_machine_de_serveur_applications> -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory "-Dserver.root=$WAS_HOME" "$CLIENTSAS" "$CLIENTSSL" $USER_INSTALL_PROP -classpath "$WAS_CLASSPATH" com.ibm.ws.bootstrap.WSLauncher <nom_complet_de_la_classe_à_exécuter> <paramètres_votre_application>
Exécutez la commande suivante sur la ligne de commande Qshell.
Lorsque vous utilisez le programme de lancement de WebSphere Application Server, exécutez la commande suivante sur une ligne de commande Qshell :java ${JAVA_FLAGS_EXT} -classpath "$WAS_CLASSPATH:jars_and_classes" -Djava.naming.provider.url=URL class_name app_parm
java ${JAVA_FLAGS_EXT} -classpath "$WAS_CLASSPATH:jars_and_classes" -Djava.naming.provider.url=URL com.ibm.ws.bootstrap.WSLauncher class_name app_parm
- Exécutez une commande Java pour appeler directement votre classe principale.
Concepts associés:


http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tcli_developthinserver
Nom du fichier : tcli_developthinserver.html