16.10.2015 Views

Getting Started with WebSphere Application Server

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

96 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> Community Edition<br />

a) Run as an standalone application client (POJO Client)<br />

Just as a regular Java application, run the application client on a different JVM from that<br />

of the Community Edition server. This client is also known as a POJO Client. To launch<br />

the application client, use this command:<br />

java [<strong>Application</strong>ClientQualifiedName]<br />

For example,<br />

java appclient.HelloEJBAppclient<br />

b) Deployed and run in the application client container<br />

To deploy the application client in the application client container, a deployment plan is<br />

required. The deployment plan is called geronimo-application-client.xml. Similar to EJB’s<br />

deployment plan, a configuration id has to be defined. However, because the application<br />

client can be used in the server environment and client environment, this deployment<br />

plan has to include two configuration ids. Listing 5.9 provides an example.<br />

<br />

<br />

<br />

<br />

default<br />

HelloAppClientClientSide<br />

1.0<br />

car<br />

<br />

<br />

<br />

<br />

default<br />

HelloAppClient<strong>Server</strong>Side<br />

1.0<br />

car<br />

<br />

<br />

<br />

Listing 5.9 - Deployment plan of an application client

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!