From aeba834d86f7608425ca630f5848e326ad272097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Galder=20Zamarren=CC=83o?= Date: Mon, 22 Jan 2018 17:43:01 +0100 Subject: [PATCH 1/4] ISPN-8024 Add Hibernate Cache local tutorial --- tutorials.html.haml | 6 ++++++ .../simple/hibernate-cache-local.html.haml | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 tutorials/simple/hibernate-cache-local.html.haml diff --git a/tutorials.html.haml b/tutorials.html.haml index ccc521aadc..933d5e15d7 100644 --- a/tutorials.html.haml +++ b/tutorials.html.haml @@ -163,6 +163,12 @@ title: Tutorials %b Clustered Counter %td Using a clustered counter with Infinispan + %tr + %td + %a{:href=>"/tutorials/simple/hibernate-cache-local/"} + %b Hibernate Cache Standalone + %td + Using Infinispan as Hibernate Cache provider in a single-node standalone application. diff --git a/tutorials/simple/hibernate-cache-local.html.haml b/tutorials/simple/hibernate-cache-local.html.haml new file mode 100644 index 0000000000..3bdb3584ec --- /dev/null +++ b/tutorials/simple/hibernate-cache-local.html.haml @@ -0,0 +1,17 @@ +--- +layout: tutorial +title: Hibernate Cache Standalone +--- +%script(src="/javascripts/infinispan.js") + +%ul.breadcrumb + %li + %a{:href => "/tutorials"} Tutorials + %li.active Hibernate Cache Standalone + +%h2 Hibernate Cache Single-Node Standalone +%p + Demonstrates how to use Infinispan as Hibernate Cache provider for standalone Java SE applications or inside containers that don’t offer Infinispan integration. + += partial( 'embed-github-file.html.haml', {"repo" => "infinispan/infinispan-simple-tutorials", "path" => "hibernate-cache/local/src/main/java/org/infinispan/tutorial/simple/hibernate/cache/local/InfinispanHibernateCacheLocal.java"} ) += partial( 'embed-github-file.html.haml', {"repo" => "infinispan/infinispan-simple-tutorials", "path" => "hibernate-cache/local/src/main/resources/META-INF/persistence.xml"} ) From dfb7a7b3eab1937ceae81c308a260a75683d4233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Galder=20Zamarren=CC=83o?= Date: Mon, 22 Jan 2018 18:00:11 +0100 Subject: [PATCH 2/4] Widen title column of simple tutorials table --- tutorials.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials.html.haml b/tutorials.html.haml index 933d5e15d7..3bdd087201 100644 --- a/tutorials.html.haml +++ b/tutorials.html.haml @@ -33,7 +33,7 @@ title: Tutorials %table.table.table-bordered.table-striped %thead %tr - %th{:width => "15%", :style => "width: 15%;"} Name + %th{:width => "20%", :style => "width: 20%;"} Name %th Description %tbody %tr From 2e4fdf8d5e27804632c0b32f01bb9cbe0901b948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Galder=20Zamarren=CC=83o?= Date: Mon, 22 Jan 2018 18:10:49 +0100 Subject: [PATCH 3/4] ISPN-8024 Add Hibernate Cache Spring tutorial --- tutorials.html.haml | 8 +++++++- .../hibernate-cache-spring-local.html.haml | 17 +++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 tutorials/simple/hibernate-cache-spring-local.html.haml diff --git a/tutorials.html.haml b/tutorials.html.haml index 3bdd087201..b3d78e651e 100644 --- a/tutorials.html.haml +++ b/tutorials.html.haml @@ -169,8 +169,14 @@ title: Tutorials %b Hibernate Cache Standalone %td Using Infinispan as Hibernate Cache provider in a single-node standalone application. + %tr + %td + %a{:href=>"/tutorials/simple/hibernate-cache-spring-local/"} + %b Hibernate Cache Spring + %td + Using Infinispan as Hibernate Cache provider in a single-node Spring application. + - %h3 Quickstarts %p diff --git a/tutorials/simple/hibernate-cache-spring-local.html.haml b/tutorials/simple/hibernate-cache-spring-local.html.haml new file mode 100644 index 0000000000..d101cd1084 --- /dev/null +++ b/tutorials/simple/hibernate-cache-spring-local.html.haml @@ -0,0 +1,17 @@ +--- +layout: tutorial +title: Hibernate Cache Spring +--- +%script(src="/javascripts/infinispan.js") + +%ul.breadcrumb + %li + %a{:href => "/tutorials"} Tutorials + %li.active Hibernate Cache Spring + +%h2 Hibernate Cache Single-Node Spring +%p + Demonstrates how to use Infinispan as Hibernate Cache provider within single-node Spring applications. + += partial( 'embed-github-file.html.haml', {"repo" => "infinispan/infinispan-simple-tutorials", "path" => "hibernate-cache/spring-local/src/main/java/org/infinispan/tutorial/simple/hibernate/cache/spring/local/InfinispanHibernateCacheSpringLocal.java"} ) += partial( 'embed-github-file.html.haml', {"repo" => "infinispan/infinispan-simple-tutorials", "path" => "hibernate-cache/spring-local/src/main/resources/application.properties"} ) From 8ff25df4c6e85f1215e2b3cc1aefeb199029df5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Galder=20Zamarren=CC=83o?= Date: Mon, 22 Jan 2018 18:15:28 +0100 Subject: [PATCH 4/4] ISPN-8024 Add Hibernate Cache Wildfly tutorial --- tutorials.html.haml | 6 +++++ .../hibernate-cache-wildfly-local.html.haml | 27 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 tutorials/simple/hibernate-cache-wildfly-local.html.haml diff --git a/tutorials.html.haml b/tutorials.html.haml index b3d78e651e..b9b0b5508d 100644 --- a/tutorials.html.haml +++ b/tutorials.html.haml @@ -175,6 +175,12 @@ title: Tutorials %b Hibernate Cache Spring %td Using Infinispan as Hibernate Cache provider in a single-node Spring application. + %tr + %td + %a{:href=>"/tutorials/simple/hibernate-cache-wildfly-local/"} + %b Hibernate Cache WildFly + %td + Using Infinispan as Hibernate Cache provider in a single-node WildFly application. diff --git a/tutorials/simple/hibernate-cache-wildfly-local.html.haml b/tutorials/simple/hibernate-cache-wildfly-local.html.haml new file mode 100644 index 0000000000..8df65fd89f --- /dev/null +++ b/tutorials/simple/hibernate-cache-wildfly-local.html.haml @@ -0,0 +1,27 @@ +--- +layout: tutorial +title: Hibernate Cache WildFly +--- +%script(src="/javascripts/infinispan.js") + +%ul.breadcrumb + %li + %a{:href => "/tutorials"} Tutorials + %li.active Hibernate Cache WildFly + +%h2 Hibernate Cache Single-Node WildFly +%p + Demonstrates how to use Infinispan as Hibernate Cache provider within single-node WildFly applications. +.alert.alert-info + %p + To run this tutorial, start Wildfly and then execute: + %br + %code mvn clean package wildfly:deploy + %p + Then, you can go through the tutorial steps executing: + %br + %code for i in {1..15}; do curl http://localhost:8080/wildfly-local/infinispan/hibernate-cache/$i; done + += partial( 'embed-github-file.html.haml', {"repo" => "infinispan/infinispan-simple-tutorials", "path" => "hibernate-cache/wildfly-local/src/main/java/org/infinispan/tutorial/simple/hibernate/cache/wildfly/local/InfinispanHibernateCacheWildflyLocal.java"} ) += partial( 'embed-github-file.html.haml', {"repo" => "infinispan/infinispan-simple-tutorials", "path" => "hibernate-cache/wildfly-local/src/main/java/org/infinispan/tutorial/simple/hibernate/cache/wildfly/local/controller/PersistenceManager.java"} ) += partial( 'embed-github-file.html.haml', {"repo" => "infinispan/infinispan-simple-tutorials", "path" => "hibernate-cache/wildfly-local/src/main/resources/META-INF/persistence.xml"} )