Skip to content

Instantly share code, notes, and snippets.

@bbrowning
Created July 27, 2012 17:48
Show Gist options
  • Save bbrowning/3189338 to your computer and use it in GitHub Desktop.
Save bbrowning/3189338 to your computer and use it in GitHub Desktop.
Diffs of the minimum changes required to convert a TB 2.0.3 config to work with TB 2.1.0

Below are the minimum changes required to get the underlying AS7 config file in TorqueBox 2.0.3 to work with TorqueBox 2.1.0. There's one diff for non-clustered environments (standalone.xml) and another for clustered environments (standalone-ha.xml).

If you are clustering without multicast, then you'll also need to add the attribute advertise='false' to the <mod-cluster-config> element in standalone-ha.xml in addition to the changes below.

--- torquebox-2.0.3/jboss/standalone/configuration/standalone-ha.xml 2012-05-04 11:38:54.000000000 -0400
+++ torquebox-2.1.0/jboss/standalone/configuration/standalone-ha.xml 2012-07-27 14:01:23.000000000 -0400
@@ -34,13 +34,13 @@
<extension module='org.torquebox.bootstrap'/>
<extension module='org.torquebox.core'/>
<extension module='org.torquebox.jobs'/>
- <extension module='org.torquebox.cache'/>
<extension module='org.torquebox.cdi'/>
<extension module='org.torquebox.services'/>
<extension module='org.torquebox.messaging'/>
<extension module='org.torquebox.security'/>
<extension module='org.torquebox.web'/>
<extension module='org.torquebox.stomp'/>
+ <extension module='org.projectodd.polyglot.cache'/>
<extension module='org.projectodd.polyglot.hasingleton'/>
</extensions>
<system-properties>
@@ -191,7 +191,7 @@
<locking isolation='REPEATABLE_READ'/>
</replicated-cache>
</cache-container>
- <cache-container name='web' aliases='torquebox standard-session-cache' default-cache='repl'>
+ <cache-container name='web' aliases='polyglot torquebox standard-session-cache' default-cache='repl'>
<transport lock-timeout='60000'/>
<replicated-cache name='repl' mode='ASYNC' batching='true'>
<file-store/>
@@ -204,7 +204,7 @@
<cache-container name='ejb' aliases='sfsb sfsb-cache' default-cache='repl'>
<transport lock-timeout='60000'/>
<replicated-cache name='repl' mode='ASYNC' batching='true'>
- <eviction strategy='LRU'/>
+ <eviction strategy='LRU' max-entries='10000'/>
<file-store/>
</replicated-cache>
<!--
@@ -213,7 +213,7 @@
-->
<replicated-cache name='remote-connector-client-mappings' mode='SYNC' batching='true'/>
<distributed-cache name='dist' mode='ASYNC' batching='true'>
- <eviction strategy='LRU'/>
+ <eviction strategy='LRU' max-entries='10000'/>
<file-store/>
</distributed-cache>
</cache-container>
@@ -553,13 +553,13 @@
<subsystem xmlns='urn:jboss:domain:torquebox-bootstrap:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-core:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-jobs:1.0'/>
- <subsystem xmlns='urn:jboss:domain:torquebox-cache:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-cdi:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-services:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-messaging:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-security:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-web:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-stomp:1.0' socket-binding='stomp'/>
+ <subsystem xmlns='urn:jboss:domain:polyglot-cache:1.0'/>
<subsystem xmlns='urn:jboss:domain:polyglot-hasingleton:1.0'/>
</profile>
<interfaces>
--- torquebox-2.0.3/jboss/standalone/configuration/standalone.xml 2012-05-04 11:38:54.000000000 -0400
+++ torquebox-2.1.0/jboss/standalone/configuration/standalone.xml 2012-07-27 13:46:46.000000000 -0400
@@ -32,13 +32,13 @@
<extension module='org.torquebox.bootstrap'/>
<extension module='org.torquebox.core'/>
<extension module='org.torquebox.jobs'/>
- <extension module='org.torquebox.cache'/>
<extension module='org.torquebox.cdi'/>
<extension module='org.torquebox.services'/>
<extension module='org.torquebox.messaging'/>
<extension module='org.torquebox.security'/>
<extension module='org.torquebox.web'/>
<extension module='org.torquebox.stomp'/>
+ <extension module='org.projectodd.polyglot.cache'/>
<extension module='org.projectodd.polyglot.hasingleton'/>
</extensions>
<system-properties>
@@ -197,7 +197,7 @@
<eviction strategy='NONE'/>
</local-cache>
</cache-container>
- <cache-container name='torquebox' default-cache='sessions'>
+ <cache-container name='polyglot' default-cache='sessions'>
<local-cache name='sessions'>
<eviction strategy='LRU' max-entries='10000'/>
<expiration max-idle='100000'/>
@@ -434,13 +434,13 @@
<subsystem xmlns='urn:jboss:domain:torquebox-bootstrap:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-core:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-jobs:1.0'/>
- <subsystem xmlns='urn:jboss:domain:torquebox-cache:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-cdi:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-services:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-messaging:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-security:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-web:1.0'/>
<subsystem xmlns='urn:jboss:domain:torquebox-stomp:1.0' socket-binding='stomp'/>
+ <subsystem xmlns='urn:jboss:domain:polyglot-cache:1.0'/>
<subsystem xmlns='urn:jboss:domain:polyglot-hasingleton:1.0'/>
</profile>
<interfaces>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment