Java Reference
In-Depth Information
Running the client application
In order to run your client application, the last requirement will be to add the required
Maven plugins, which are needed to run the remote EJB client. This is given in the follow-
ing code snippet:
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<!-- maven-compiler-plugin here -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</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 />
<argument>com.packtpub.wflydevelopment.chapter3.client.TicketAgencyClient</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
Search WWH ::




Custom Search