|
@@ -9,10 +9,10 @@ with Spark filters.
|
|
|
|
|
|
* [Spark application](/src/main/java/hello/web/SparkApplication.java)
|
|
* [Spark application](/src/main/java/hello/web/SparkApplication.java)
|
|
* [Hibernate](http://www.hibernate.org/) configuration for local datasource and container managed JNDI
|
|
* [Hibernate](http://www.hibernate.org/) configuration for local datasource and container managed JNDI
|
|
-** [JNDI configuration](/world/src/main/resources/hibernate-jndi.cfg.xml)
|
|
|
|
-** [Local datasource configuration](/world/src/main/resources/hibernate-local.cfg.xml)
|
|
|
|
-** [Hibernate utilities](/src/main/java/hello/web/HibernateUtil.java)
|
|
|
|
-** [Database entity](/src/main/java/hello/domain/World.java)
|
|
|
|
|
|
+ * [JNDI configuration](/world/src/main/resources/hibernate-jndi.cfg.xml)
|
|
|
|
+ * [Local datasource configuration](/world/src/main/resources/hibernate-local.cfg.xml)
|
|
|
|
+ * [Hibernate utilities](/src/main/java/hello/web/HibernateUtil.java)
|
|
|
|
+ * [Database entity](/src/main/java/hello/domain/World.java)
|
|
|
|
|
|
|
|
|
|
## Infrastructure Software Versions
|
|
## Infrastructure Software Versions
|
|
@@ -25,28 +25,30 @@ with Spark filters.
|
|
## Different test setups
|
|
## Different test setups
|
|
|
|
|
|
* Local environment with Spark's built in embedded jetty (port=4567, context=/)
|
|
* Local environment with Spark's built in embedded jetty (port=4567, context=/)
|
|
-** Start application from [SparkApplication](/world/src/main/java/hello/web/SparkApplication.java)'s main method
|
|
|
|
-** 'standalone' maven profile must be enabled from [pom.xml](/pom.xml)
|
|
|
|
|
|
+ * Start application from [SparkApplication](/world/src/main/java/hello/web/SparkApplication.java)'s main method
|
|
|
|
+ * 'standalone' maven profile must be enabled from [pom.xml](/pom.xml)
|
|
* Local environment with Tomcat maven plugin (port=8080, context=/spark)
|
|
* Local environment with Tomcat maven plugin (port=8080, context=/spark)
|
|
-** Start application with maven command 'mvn clean tomcat7:run'
|
|
|
|
-** No maven profiles must be enabled
|
|
|
|
|
|
+ * Start application with maven command 'mvn clean tomcat7:run'
|
|
|
|
+ * No maven profiles must be enabled
|
|
* Any servlet container with built WAR (port=any, context=/spark)
|
|
* Any servlet container with built WAR (port=any, context=/spark)
|
|
-** Create war with maven command 'mvn clean package'
|
|
|
|
-** No maven profiles must be enabled
|
|
|
|
-** Built war can be copied from /target/spark.war
|
|
|
|
|
|
+ * Create war with maven command 'mvn clean package'
|
|
|
|
+ * No maven profiles must be enabled
|
|
|
|
+ * Built war can be copied from /target/spark.war
|
|
|
|
|
|
* Local datasource or JNDI datasource can be configured with system property 'jndi'
|
|
* Local datasource or JNDI datasource can be configured with system property 'jndi'
|
|
-** -Djndi=true or no property for JNDI datasource
|
|
|
|
-** -Djndi=false for local datasource
|
|
|
|
|
|
+ * -Djndi=true or no property for JNDI datasource
|
|
|
|
+ * -Djndi=false for local datasource
|
|
|
|
|
|
## Test URLs
|
|
## Test URLs
|
|
|
|
|
|
### JSON Encoding Test
|
|
### JSON Encoding Test
|
|
|
|
|
|
http://localhost:4567/json
|
|
http://localhost:4567/json
|
|
|
|
+
|
|
http://localhost:8080/spark/json
|
|
http://localhost:8080/spark/json
|
|
|
|
|
|
### Data-Store/Database Mapping Test
|
|
### Data-Store/Database Mapping Test
|
|
|
|
|
|
http://localhost:4567/db?queries=5
|
|
http://localhost:4567/db?queries=5
|
|
|
|
+
|
|
http://localhost:8080/spring/db?queries=5
|
|
http://localhost:8080/spring/db?queries=5
|