2 Replies Latest reply on Nov 28, 2005 11:25 AM by olivier vanduynsleger

    Standalone Client application

    olivier vanduynsleger Newbie

      I deployed an EAR package on Jboss 3.2.6/Jdk 1.4.2/Windows. This EAR contain

      - a jar file for EJB
      - a war file for webapp
      - a jar file for Client application (to access EJB)

      My client application have a application-client.xml file on META-INF:

      <?xml version="1.0"?>
      <!DOCTYPE application-client PUBLIC
      "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.3//EN"
      "http://java.sun.com/dtd/application-client_1_3.dtd">

      <application-client>
      <display-name>ExampleClient</display-name>
      <ejb-ref>
      <ejb-ref-name>ejb/GestionClient</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      com.leroymerlin.refclient.back.service.GestionClientHome
      com.leroymerlin.refclient.back.service.GestionClientRemote
      <ejb-link>GestionClient</ejb-link>
      </ejb-ref>
      </application-client>

      a jboss-client.xml file (META-INF)

      <!DOCTYPE jboss-client PUBLIC
      "-//JBoss//DTD Application Client 3.2//EN"
      "http://www.jboss.org/j2ee/dtd/jboss-client_3_2.dtd">

      <jboss-client>
      <jndi-name>ExampleClient</jndi-name>
      <ejb-ref>
      <ejb-ref-name>ejb/GestionClient</ejb-ref-name>
      <jndi-name>ejb/GestionClient</jndi-name> <!-- ejb (implements SessionBean) -->
      </ejb-ref>
      </jboss-client>

      a manifest file specifying the Main-Class to run.

      Does the Main-Class must be specifying on application client manifest file or ear manifest file ?

      Do you have a sample command launch ?