In the README, for example, it is written:
There are two components to this example:
A server side component:
The server component is comprised of a stateful EJB and a stateless EJB. It provides you with the JAR file that has been deployed. 2. A remote client application that accesses the server component.
The remote client application depends on the server component. This application looks up to the stateless and stateful beans through a number of methods for them.
Deploy the server part on the server, run the client as a java application, from the java RemoteEJBClient console should work.
Build and Deploy the Quickstart
You can’t use the quickstarts. You must follow this quickstart.
- Make sure you have started the JBoss server. See the instructions in the previous section.
- Ezb-remote quickstart directory
- Build and install the server side component:
Navigate to the server-side subdirectory:
cd server-side * Majors repository.
mvn clean install * Deploy the EJB JAR to your server. This maven goal will deploy
server-side/target/jboss-ejb-remote-server-side.jar
. You can check the deployment.
mvn jboss-as:deploy
Build and run the client application
- Navigate to the server-side subdirectory:
cd ../client * Compile the client code
mvn clean compile * Execute the client application within Maven
mvn exec: exec
Own, what is there to understand?