Java Reference
In-Depth Information
Before launching your application, update Maven's exec plugin information, which
should now reference our remote EJB client application, as shown in the highlighted
section of the following code snippet:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${version.exec.plugin}</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<workingDirectory>${project.build.directory}/
exec-working-directory</workingDirectory>
<arguments>
<argument>-classpath</argument>
<classpath>
</classpath>
<argument>com.packtpub.as7development.chapter10.client.RemoteEJBClient</argument>
</arguments>
</configuration>
</plugin>
You can run it using the following command:
mvn exec:exec
The first part of the client will show the evidence that we have successfully com-
pleted the first transaction. On the client console, you will see the return value from
the booking transaction and the Seat list:
Search WWH ::




Custom Search