|Home > Documentation > Developing > Tutorials > Developing application clients > Deploying and running Java EE application client|
|Deploying and running EJB application clients||Developing application clients||Deploying and running JPA application client|
You can create an application client that runs in the Apache Geronimo application client container rather than running in your local Java environment. The main purpose of the Geronimo client application container is to provide a standard set of services to a client program without forcing the client application to specify a list of dependencies - in other words ease-of-development. The client code can lookup Geronimo components such as resources, EJBs, and connectors via standard JNDI lookup. This example creates the simplest application client that can talk to a Geronimo server and place a message in the Geronimo console.
META-INF/geronimo-application-client.xmlYou need to define two modules, one for client side and one for server side. EXAMPLEClientServer is the component that always its going to be running on the server, and EXAMPLEClient is the component that you are going to run on the client from
MANIFESTmust contain the Main-Class and blank line at the end of the file.
app_client.jar.) and associated files from an application bin folder (in this case
D:\workspace2\GERONIMO_APPLICATION\bin). Run java
client/MainClient.javato create a class file. The jar command -M paramenter indicates the jar file must be created using a
MANIFEST.MFfile. Verify that this is correct after create jar file.
After deploy, you will see the two components into Geronimo Web Console: Applications -> App Clients:
You can run the Application Client with this command:
You should notice the application client message in the Geronimo console.