Add a customer
21 || Id: | 27 |28 | |
| Name: | 31 |32 | |
| Address: | 35 |36 | |
| 39 | | 40 | |
├── src └── main │ ├── webapp │ ├── META-INF │ │ └── MANIFEST.MF │ ├── WEB-INF │ │ ├── jsp │ │ │ ├── failed.jsp │ │ │ ├── success.jsp │ │ │ ├── add.jsp │ │ │ └── index.jsp │ │ ├── ehcache.xml │ │ ├── crash │ │ │ └── commands │ │ │ │ └── spring_cache.groovy │ │ ├── web.xml │ │ └── sandbox.xml │ └── resources │ │ ├── js │ │ └── script.js │ │ └── css │ │ └── design.css │ ├── java │ └── fr │ │ └── dr │ │ └── sandbox │ │ ├── controller │ │ ├── Customer.java │ │ ├── CustomerComponent.java │ │ └── MainController.java │ │ └── listener │ │ └── CacheListener.java │ └── resources │ ├── spring.xml │ └── log4j.xml ├── README ├── .project ├── .classpath └── pom.xml /src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | 3 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crashub/spring-ehcache-demo/HEAD/README -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/failed.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 || Id: | 27 |28 | |
| Name: | 31 |32 | |
| Address: | 35 |36 | |
| 39 | | 40 | |
Hello ${name} This is the main page of this demo application. 22 | You can show datas available in cache ,add Customer and 23 | remove all datas. The goal of this demo application is to 24 | test Crash.
25 || Add a customer | 35 |Clear 36 | customer cache | 37 |
| Id | 45 |Name | 46 |Address | 47 | 48 |
|---|---|---|
| "); 57 | out.println(c.getId()); 58 | out.println(" | "); 59 | out.println(""); 60 | out.println(c.getName()); 61 | out.println(" | "); 62 | out.println(""); 63 | out.println(c.getAddress()); 64 | out.println(" | "); 65 | 66 | out.println("
Here is the step you have to do for connecting Crash to this demo application.
79 |
82 | %telnet 5000 localhost
83 | %ssh -p 2000 -l admin localhost (mdp admin)
84 |
85 | $JDK_HOME/bin/jps and get the id.
86 | %cd $CRASH_HOME/bin
87 | %./crash.sh ID
% spring_cache showcache
spring_cache showcache