Exécution d'une application de client léger Java sur un poste client

Pour exécuter une application de client léger Java™ sur un poste avec Application Client for WebSphere Application Server, utilisez la commande setupClient puis démarrez l'application.

Avant de commencer

Avant d'exécuter cette tâche, vous devez installer le client d'application légerJava depuis l'installation d'Application Client for WebSphere Application Server.

Procédure

  1. Définissez l'environnement de l'application client. Exécutez la commande setupClient.
    [Windows]
    racine_client_application\AppClient\bin\setupClient.bat
    [AIX][Linux][HP-UX][Solaris][z/OS]
    racine_client_application/AppClient/bin/setupClient.sh
    [IBM i]Utilisez le script setupClient.
    1. Démarrez l'environnement Qshell. Au niveau de la ligne de commande CL, entrez la commande STRQSH.
    2. Au niveau de la ligne de commande Qshell, entrez la commande suivante en vous servant de l'opérateur point (.)
      . racine_client_app/bin/setupClient [-profileName profileName]
  2. Pour appeler votre application client, exécutez la commande Java suivante.
    [Windows]
    "%JAVA_HOME%\bin\java" %WAS_LOGGING% -Djava.security.auth.login.config="%WAS_HOME%\properties\wsjaas_client.conf"
    -classpath "%WAS_CLASSPATH%;<liste_des_fichiers_JAR_et_des_classes_de_votre_application>" 
    -Djava.ext.dirs="%JAVA_JRE%\lib\ext;%WAS_EXT_DIRS%;%WAS_HOME%\plugins;%WAS_HOME%\lib\WMQ\java\lib" 
    -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%" "%CLIENTSSL%" <nom_complet_de_la_classe_à_exécuter>
    Pour plus d'informations sur les URL IIOP et corbaloc, voir Développement d'applications utilisant JNDI.
    [AIX][Linux][HP-UX][Solaris][z/OS]
    $JAVA_HOME/bin/java $WAS_LOGGING 
    -classpath "$WAS_CLASSPATH: <liste_des_fichiers_JAR_et_des_classes_de_votre_application>" 
    -Djava.ext.dirs=$JAVA_JRE/lib/ext:$WAS_EXT_DIRS:$WAS_HOME/plugins:$WAS_HOME/lib/WMQ/java/lib"
    -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 $CLIENTSSL <nom_complet_de_la_classe_à_exécuter>
    [IBM i]Exécutez la commande suivante sur la ligne de commande Qshell :
    java ${JAVA_FLAGS_EXT} -classpath "$WAS_CLASSPATH:fichiers jar et classes" -Djava.naming.provider.url=URL nom_classe paramètre_application

Icône indiquant le type de rubrique Rubrique de tâche



Icône d'horodatage Dernière mise à jour: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tcli_developthinclient
Nom du fichier : tcli_developthinclient.html