Permalink
Browse files

Put JDG Quickstart in JDF format

  • Loading branch information...
1 parent 0cc7173 commit bb49ced0ce654e5c2a0db4879c380c6bc771078b @rafabene rafabene committed Aug 28, 2012
Showing with 1,273 additions and 1,970 deletions.
  1. +9 −11 README.md
  2. +0 −85 carmart-transactional/README.md
  3. +0 −552 carmart-transactional/pom.xml
  4. +0 −74 carmart-transactional/src/main/java/com/jboss/datagrid/carmart/jsf/CarValidator.java
  5. +66 −0 carmart-tx/README-tomcat.md
  6. +83 −0 carmart-tx/README.md
  7. +223 −0 carmart-tx/pom.xml
  8. +7 −6 ...s → carmart-tx/src/jbossas/java/org/jboss/as/quickstarts}/datagrid/carmart/jsf/PopulateCache.java
  9. +4 −2 ... → carmart-tx/src/jbossas/java/org/jboss/as/quickstarts}/datagrid/carmart/session/CarManager.java
  10. +2 −2 ...bossas/java/org/jboss/as/quickstarts}/datagrid/carmart/session/JBossASCacheContainerProvider.java
  11. +1 −1 ...va/com/jboss → carmart-tx/src/main/java/org/jboss/as/quickstarts}/datagrid/carmart/model/Car.java
  12. +1 −1 ...t-tx/src/main/java/org/jboss/as/quickstarts}/datagrid/carmart/session/CacheContainerProvider.java
  13. +3 −2 ...→ carmart-tx/src/main/java/org/jboss/as/quickstarts}/datagrid/carmart/session/CarTypeManager.java
  14. +3 −2 ...→ carmart-tx/src/main/java/org/jboss/as/quickstarts}/datagrid/carmart/session/CountryManager.java
  15. +3 −2 ...-tx/src/main/java/org/jboss/as/quickstarts}/datagrid/carmart/session/LocalStatisticsProvider.java
  16. +1 −1 ...rmart-tx/src/main/java/org/jboss/as/quickstarts}/datagrid/carmart/session/StatisticsProvider.java
  17. 0 {carmart-transactional → carmart-tx}/src/main/webapp-tomcat7/META-INF/context.xml
  18. 0 {carmart-transactional → carmart-tx}/src/main/webapp-tomcat7/WEB-INF/web.xml
  19. 0 {carmart-transactional → carmart-tx}/src/main/webapp/WEB-INF/beans.xml
  20. +1 −1 {carmart-transactional → carmart-tx}/src/main/webapp/WEB-INF/faces-config.xml
  21. +1 −1 {carmart-transactional → carmart-tx}/src/main/webapp/WEB-INF/jboss-web.xml
  22. 0 {carmart-transactional → carmart-tx}/src/main/webapp/WEB-INF/web.xml
  23. +1 −3 {carmart-transactional → carmart-tx}/src/main/webapp/addcar.xhtml
  24. +1 −2 {carmart-transactional → carmart-tx}/src/main/webapp/details.xhtml
  25. +1 −2 {carmart-transactional → carmart-tx}/src/main/webapp/home.xhtml
  26. BIN {carmart-transactional → carmart-tx}/src/main/webapp/image/divider.png
  27. 0 {carmart-transactional → carmart-tx}/src/main/webapp/index.html
  28. 0 {carmart-transactional → carmart-tx}/src/main/webapp/style/style.css
  29. +1 −2 {carmart-transactional → carmart-tx}/src/main/webapp/template.xhtml
  30. +11 −9 ...ss → carmart-tx/src/tomcat/java/org/jboss/as/quickstarts}/datagrid/carmart/jsf/PopulateCache.java
  31. +9 −7 ...s → carmart-tx/src/tomcat/java/org/jboss/as/quickstarts}/datagrid/carmart/session/CarManager.java
  32. +2 −2 .../tomcat/java/org/jboss/as/quickstarts}/datagrid/carmart/session/TomcatCacheContainerProvider.java
  33. +67 −0 carmart/README-tomcat.md
  34. +71 −80 carmart/README.md
  35. +17 −302 carmart/pom.xml
  36. +2 −2 .../{com/jboss → org/jboss/as/quickstarts}/datagrid/carmart/session/LocalCacheContainerProvider.java
  37. +3 −2 ...java/{com/jboss → org/jboss/as/quickstarts}/datagrid/carmart/session/LocalStatisticsProvider.java
  38. +0 −74 carmart/src/main/java/com/jboss/datagrid/carmart/jsf/CarValidator.java
  39. +7 −6 carmart/src/main/java/{com/jboss → org/jboss/as/quickstarts}/datagrid/carmart/jsf/PopulateCache.java
  40. +1 −1 .../java/com/jboss → carmart/src/main/java/org/jboss/as/quickstarts}/datagrid/carmart/model/Car.java
  41. +1 −1 .../java/{com/jboss → org/jboss/as/quickstarts}/datagrid/carmart/session/CacheContainerProvider.java
  42. +2 −2 ...art/src/main/java/{com/jboss → org/jboss/as/quickstarts}/datagrid/carmart/session/CarManager.java
  43. +3 −2 ...ss → carmart/src/main/java/org/jboss/as/quickstarts}/datagrid/carmart/session/CarTypeManager.java
  44. +3 −2 ...ss → carmart/src/main/java/org/jboss/as/quickstarts}/datagrid/carmart/session/CountryManager.java
  45. +1 −1 ...main/java/{com/jboss → org/jboss/as/quickstarts}/datagrid/carmart/session/StatisticsProvider.java
  46. +2 −2 carmart/src/main/resources/META-INF/datagrid.properties
  47. +1 −1 carmart/src/main/webapp/WEB-INF/faces-config.xml
  48. +1 −1 carmart/src/main/webapp/WEB-INF/jboss-web.xml
  49. +1 −3 carmart/src/main/webapp/addcar.xhtml
  50. +1 −2 carmart/src/main/webapp/details.xhtml
  51. +1 −3 carmart/src/main/webapp/home.xhtml
  52. +1 −2 carmart/src/main/webapp/template.xhtml
  53. +2 −2 ...{com/jboss → org/jboss/as/quickstarts}/datagrid/carmart/session/RemoteCacheContainerProvider.java
  54. +4 −4 ...ava/{com/jboss → org/jboss/as/quickstarts}/datagrid/carmart/session/RemoteStatisticsProvider.java
  55. +0 −140 endpoints/README.md
  56. +0 −214 endpoints/hotrod-endpoint/pom.xml
  57. +0 −96 endpoints/memcached-endpoint/pom.xml
  58. +152 −0 hotrod-endpoint/README.md
  59. +98 −0 hotrod-endpoint/pom.xml
  60. +1 −1 ...ss → hotrod-endpoint/src/main/java/org/jboss/as/quickstarts}/datagrid/hotrod/FootballManager.java
  61. +1 −1 ...rid/memcached → hotrod-endpoint/src/main/java/org/jboss/as/quickstarts/datagrid/hotrod}/Team.java
  62. 0 {endpoints → }/hotrod-endpoint/src/main/resources/jdg.properties
  63. +153 −0 memcached-endpoint/README.md
  64. +61 −0 memcached-endpoint/pom.xml
  65. +1 −1 .../rest → memcached-endpoint/src/main/java/org/jboss/as/quickstarts/datagrid/memcached}/Base64.java
  66. +1 −1 ...emcached-endpoint/src/main/java/org/jboss/as/quickstarts}/datagrid/memcached/FootballManager.java
  67. +1 −1 ...memcached-endpoint/src/main/java/org/jboss/as/quickstarts}/datagrid/memcached/MemcachedCache.java
  68. +1 −1 ...id/rest → memcached-endpoint/src/main/java/org/jboss/as/quickstarts/datagrid/memcached}/Team.java
  69. 0 {endpoints → }/memcached-endpoint/src/main/resources/jdg.properties
  70. +15 −61 pom.xml
  71. +157 −0 rest-endpoint/README.md
  72. +1 −28 {endpoints → }/rest-endpoint/pom.xml
  73. +1 −1 ...agrid/memcached → rest-endpoint/src/main/java/org/jboss/as/quickstarts/datagrid/rest}/Base64.java
  74. +1 −1 .../jboss → rest-endpoint/src/main/java/org/jboss/as/quickstarts}/datagrid/rest/FootballManager.java
  75. +1 −1 ...va/com/jboss → rest-endpoint/src/main/java/org/jboss/as/quickstarts}/datagrid/rest/RestCache.java
  76. +1 −1 ...s/datagrid/hotrod → rest-endpoint/src/main/java/org/jboss/as/quickstarts/datagrid/rest}/Team.java
  77. 0 {endpoints → }/rest-endpoint/src/main/resources/jdg.properties
  78. +0 −12 src/main/assemblies/README.md
  79. +0 −144 src/main/assemblies/sources.xml
View
@@ -1,14 +1,12 @@
-JDG Quickstarts
-===============
+JBoss Data Grid Quickstarts
+===========================
-Quickstarts (or examples, or samples) for JBoss Data Grid. There are a number of rules for quickstarts:
+These are the quickstarts for JBoss Data Grid.
-* Each quickstart should have a unique name, this enables a user to quickly identify each quickstart
-* A quickstart should have a simple build that the user can quickly understand. If using maven it should:
- 1. Not inherit from another POM
-* The quickstart should be importable into JBoss Tools and deployable there
-* The quickstart should be explained in detail in the associated user guide, including how to deploy
+This distribution contains the following examples:
-If you add a quickstart, don't forget to update `dist/src/main/assembly/README.md`.
-
-The 'dist' folder contains Maven scripts to build a zip of the quickstarts.
+* [Carmart](carmart) - simple web application running either in library mode or using HotRod client in client-server mode
+* [Transactional Carmart](carmart-tx) - simple transactional web application running in library mode
+* [Hotrod Endpoint](hotrod-endpoint) - simple example using HotRod client to connect to JDG server
+* [Memcached Endpoint](memcached-endpoint) - simple example using Memcached client to connect to JDG server
+* [REST Endpoint](rest-endpoint) - simple example using REST to connect to JDG server
@@ -1,85 +0,0 @@
-How to run the example
-======================
-
-Transactional CarMart is a simple web application that uses Infinispan instead of a relational database.
-Users can list cars, add new cars or remove them from the CarMart. Information about each car
-is stored in a cache. The application also shows cache statistics like stores, hits, retrievals, etc.
-
-The Transactional CarMart quickstart works in a library mode. All libraries (jar files) are bundled
-with the application and deployed into the server. Caches are configured programatically and run
-in the same JVM as the web application.
-
-All operations are done in a transactional context. In order to run the application in Tomcat,
-a standalone transaction manager from JBoss Transactions is used.
-
-
-Building and deploying to JBoss AS 7
-------------------------------------
-
-0) Obtain JDG distribution with productized Infinispan libraries (library distribution)
-
-1) Install libraries from the bundle into your local maven repository
-
- `mvn initialize -Pinit-repo -Ddatagrid.dist=/home/anyuser/jboss-datagrid-library-6.0.0.ER4-redhat-1`
-
-2) Start JBoss AS 7 where your application will run
-
- `$JBOSS_HOME/bin/standalone.sh`
-
-3) Build the application
-
- `mvn clean package -Plibrary-jbossas`
-
-4) Deploy the application via jboss-as Maven plugin
-
- `mvn jboss-as:deploy -Plibrary-jbossas`
-
-5) Go to http://localhost:8080/carmart-quickstart
-
-6) Undeploy the application
-
- `mvn jboss-as:undeploy -Plibrary-jbossas`
-
-
-Building and deploying to Tomcat 7
-----------------------------------
-
-0) Obtain JDG distribution with productized Infinispan libraries (library distribution)
-
-1) Install libraries from the bundle into your local maven repository
-
- `mvn initialize -Pinit-repo -Ddatagrid.dist=/home/anyuser/jboss-datagrid-library-6.0.0.ER4-redhat-1`
-
-2) This build assumes you will be running Tomcat 7 in its default
- configuration, with a hostname of localhost and port 8080. Before starting
- Tomcat, add the following lines to `conf/tomcat-users.xml` to allow the Maven
- Tomcat plugin to access the manager application:
-
- <role rolename="manager-script"/>
- <user username="admin" password="" roles="manager-script"/>
-
-3) Start Tomcat 7
-
- `$CATALINA_HOME/bin/catalina.sh start`
-
-4) Build the application
-
- `mvn clean package -Plibrary-tomcat`
-
-5) Add a `<server>` element into your Maven settings.xml with `<id>` equal to `tomcat` and correct credentials:
-
- `<server>
- <id>tomcat</id>
- <username>admin</username>
- <password></password>
- </server>`
-
-6) Deploy the application via tomcat Maven plugin
-
- `mvn tomcat:deploy -Plibrary-tomcat`
-
-7) Go to http://localhost:8080/carmart-quickstart
-
-8) Undeploy the application
-
- `mvn tomcat:undeploy -Plibrary-tomcat`
Oops, something went wrong.

0 comments on commit bb49ced

Please sign in to comment.