Skip to content

Commit

Permalink
Bz1178870 - Turn shopping-cart server into an Maven EJB; Signed-off-b…
Browse files Browse the repository at this point in the history
…y: Fred Bricon <[email protected]>
  • Loading branch information
fbricon authored and sgilda committed Jan 9, 2015
1 parent dd08a36 commit becac37
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions shopping-cart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ Run the Quickstart in JBoss Developer Studio or Eclipse
-------------------------------------
You can also start the server and deploy the quickstarts or run the Arquillian tests from Eclipse using JBoss tools. For more information, see [Use JBoss Developer Studio or Eclipse to Run the Quickstarts](https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md#use-jboss-developer-studio-or-eclipse-to-run-the-quickstarts)

This quickstart consists of multiple projects, so it deploys and runs a differently in JBoss Developer Studio than the other quickstarts.

* To deploy the server project, right-click on the `jboss-shopping-cart-server` project and choose `Run As` --> `Run on Server`.
* To run the client, right-click on the `jboss-shopping-cart-client` project and choose `Run As` --> `Java Application`. In the `Select Java Application` window, choose `Client - org.jboss.as.quickstarts.client` and click `OK`. The client output displays in the `Console` window.

Debug the Application
---------------------
Expand Down
1 change: 1 addition & 0 deletions shopping-cart/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<dependency>
<groupId>org.jboss.quickstarts.eap</groupId>
<artifactId>jboss-shopping-cart-server</artifactId>
<type>ejb</type>
</dependency>

<!-- JBoss EJB client stack. We use runtime scope because the EJB
Expand Down
2 changes: 2 additions & 0 deletions shopping-cart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<!-- other plugin versions -->
<version.exec.plugin>1.2.1</version.exec.plugin>
<version.war.plugin>2.1.1</version.war.plugin>
<version.ejb.plugin>2.3</version.ejb.plugin>

<!-- maven-compiler-plugin -->
<maven.compiler.target>1.6</maven.compiler.target>
Expand All @@ -86,6 +87,7 @@
<groupId>org.jboss.quickstarts.eap</groupId>
<artifactId>jboss-shopping-cart-server</artifactId>
<version>${project.version}</version>
<type>ejb</type>
</dependency>

<!-- We need the EJB Client -->
Expand Down
11 changes: 10 additions & 1 deletion shopping-cart/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</parent>

<artifactId>jboss-shopping-cart-server</artifactId>
<packaging>jar</packaging>
<packaging>ejb</packaging>
<name>JBoss EAP Quickstart: shopping-cart - server</name>

<licenses>
Expand Down Expand Up @@ -67,6 +67,15 @@
<artifactId>jboss-as-maven-plugin</artifactId>
<configuration>
<skip>false</skip>
<filename>${project.build.finalName}.jar</filename>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<version>${version.ejb.plugin}</version>
<configuration>
<ejbVersion>3.1</ejbVersion>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit becac37

Please sign in to comment.