This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: install package openJDK 7 | |
| apt: pkg=openjdk-7-jdk update_cache=yes | |
| sudo: yes | |
| - name: create archives folder | |
| file: path=/home/vagrant/archives state=directory | |
| - name: Download Tomcat 8 | |
| get_url: url="http://apache.crihan.fr/dist/tomcat/tomcat-8/v8.0.0-RC1/bin/apache-tomcat-8.0.0-RC1.tar.gz" dest=/home/vagrant/archives/ | |
| - name: Create tomcat directory | |
| file: name=/opt/apache-tomcat owner=vagrant group=vagrant state=directory | |
| sudo: yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ThreadLocalCache | |
| { | |
| private static volatile boolean keepRunning = true; | |
| public static void main( String[] args ) throws InterruptedException | |
| { | |
| (new Thread(){ | |
| public void run() { | |
| while (keepRunning){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ThreadLocalCache | |
| { | |
| private static boolean keepRunning = true; | |
| public static void main( String[] args ) throws InterruptedException | |
| { | |
| (new Thread(){ | |
| public void run() { | |
| while (keepRunning){ |