This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • Deploy and Run a Java EE Application Client

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

1. - client/MainClient.java

Code Block
javajava
borderStylesolid
java
package client;

public class MainClient {

    /**
     * @param args ignored
     */
    public static void main(String[] args){
        System.out.println ("CLIENT RUNNING...");  
    }
}

...

2. - META-INF/application-client.xml

Code Block
xmlxml
borderStylesolid
xml
<?xml version="1.0"?>
<application-client xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee [http://java.sun.com/xml/ns/j2ee/applicationclient_1_4.xsd]" version="1.4">
    <display-name>EXAMPLE Client</display-name>
</application-client>

...

3. - META-INF/geronimo-application-client.xml

Code Block
xmlxml
borderStylesolid
xml
<?xml version="1.0"?>
<application-client xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
    <dep:client-environment>
        <dep:moduleId>
            <dep:groupId>JavaEE5</dep:groupId>
            <dep:artifactId>EXAMPLEClient</dep:artifactId>
            <dep:version>2.1</dep:version>
            <dep:type>car</dep:type>
        </dep:moduleId>
    </dep:client-environment>

    <dep:server-environment>
        <dep:moduleId>
            <dep:groupId>JavaEE5</dep:groupId>
	    <dep:artifactId>EXAMPLEClientServer</dep:artifactId>
	    <dep:version>2.1</dep:version>
	    <dep:type>car</dep:type>
        </dep:moduleId>
    </dep:server-environment>
    
</application-client>

...