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
class ThreadSafeCounter { | |
private int c = 0; | |
public synchronized void increment() { | |
c++; | |
} | |
public synchronized void decrement() { | |
c--; | |
} |
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
new Atomic<Void>() { | |
public Void atomically() { | |
ref.set(refs.get() + 1); | |
return null; | |
} | |
}.execute(); |
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
source :rubygems | |
gem "rack", "1.2.1" | |
gem "org.multiverse.multiverse-alpha", "0.6.2", :mvn => { | |
:artifact => "multiverse-alpha", | |
:group => "org.multiverse", | |
:version => "0.6.2"}, :repo => "http://repo1.maven.org/maven2" |
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
mvn 'http://internal.myco.com/artifactory' | |
gem "mvn:org.jboss.logging:jboss-logging", "3.0.0.b.5" | |
gem "mvn:org.multiverse:multiverse-alpha", "0.6.2" | |
gem 'mvn:org.apache.commons:commons-math', '2.2' | |
gem "mvn:org.slf4j:slf4j-simple", "~> 1.6.1" |
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
<configuration xmlns="urn:hornetq" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="urn:hornetq /schema/hornetq-configuration.xsd"> | |
<cluster-user>admin</cluster-user> | |
<cluster-password>********</cluster-password> | |
<log-delegate-factory-class-name>org.hornetq.integration.logging.Log4jLogDelegateFactory</log-delegate-factory-class-name> | |
<bindings-directory>${jboss.server.data.dir}/hornetq/bindings</bindings-directory> |
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
<cluster-user>admin</cluster-user> | |
<cluster-password>mypassword</cluster-password> |
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
gem "mvn:rhino:js", "1.7.r.2" |
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
========================================================================= | |
JBoss Bootstrap Environment | |
JBOSS_HOME: /opt/torquebox/jboss | |
JAVA: java | |
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true |
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
14:09:01,178 INFO [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2) | |
14:09:01,360 INFO [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1) | |
14:09:01,589 INFO [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem. | |
14:09:02,666 INFO [org.jboss.as.naming] (Controller Boot Thread) JBAS011800: Activating Naming Subsystem | |
14:09:02,727 INFO [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service | |
14:09:02,783 INFO [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem | |
14:09:05,916 INFO [org.torquebox.core.as] (Controller Boot Thread) Welcome to TorqueBox AS - http://torquebox.org/ | |
14:09:05,916 INFO [org.torquebox.core.as] (Controller Boot Thread) version........... 2.x.incremental.614 | |
14:09:05,916 INFO [org.torquebox.core.as |
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
$ VAGRANT_LOG=debug vagrant up | |
INFO vagrant: `vagrant` invoked: ["up"] | |
DEBUG vagrant: Creating Vagrant environment | |
INFO environment: Environment initialized (#<Vagrant::Environment:0x75392356>) | |
INFO environment: - cwd: ~/workspace/myapp | |
INFO environment: Home path: ~/.vagrant.d | |
DEBUG vagrant: Loading environment | |
INFO environment: Loading configuration... | |
DEBUG loader: Set :default = "~/.rvm/gems/jruby-1.6.5/gems/vagrant-0.9.1/config/default.rb" | |
DEBUG loader: Populating proc cache for "~/.rvm/gems/jruby-1.6.5/gems/vagrant-0.9.1/config/default.rb" |