Changeset 2983
- Timestamp:
- 08/20/10 11:01:03
- Files:
-
- trunk/build/quickstart/linux/startjboss (modified) (8 diffs)
- trunk/build/quickstart/windows/startjboss.bat (modified) (8 diffs)
- trunk/config/bwbuild/jboss-h2/activemq-broker-config.xml (modified) (2 diffs)
- trunk/config/bwbuild/jboss-h2/activemq-jms-ds.xml (modified) (3 diffs)
- trunk/config/bwbuild/jboss-h2/activemq-ra.xml (modified) (1 diff)
- trunk/config/bwbuild/jboss-mysql/activemq-broker-config.xml (modified) (2 diffs)
- trunk/config/bwbuild/jboss-mysql/activemq-jms-ds.xml (modified) (3 diffs)
- trunk/config/bwbuild/jboss-mysql/activemq-ra.xml (modified) (1 diff)
- trunk/config/bwbuild/jboss-postgresql/activemq-broker-config.xml (modified) (2 diffs)
- trunk/config/bwbuild/jboss-postgresql/activemq-jms-ds.xml (modified) (3 diffs)
- trunk/config/bwbuild/jboss-postgresql/activemq-ra.xml (modified) (1 diff)
- trunk/config/bwbuild/jboss/activemq-broker-config.xml (modified) (2 diffs)
- trunk/config/bwbuild/jboss/activemq-jms-ds.xml (modified) (3 diffs)
- trunk/config/bwbuild/jboss/activemq-ra.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/quickstart/linux/startjboss
r2849 r2983 11 11 usage() { 12 12 echo " $PRG [-heap size] [-newsize size] [-permgen size] [-debug]" 13 echo " [-debugmodule name] "13 echo " [-debugmodule name] [-activemquri uri]" 14 14 echo "" 15 15 echo " Where:" … … 19 19 echo " nM for mega-bytes (e.g. 2560M)" 20 20 echo " nG for giga-bytes (e.g. 1G)" 21 echo " Default: $heap" 21 22 echo "" 22 23 echo " -newsize sets the new generation size and has the same form as -heap" 23 24 echo " the value should be around one third of the heap" 25 echo " Default: $newsize" 24 26 echo "" 25 27 echo " -permsize sets the permgen size and has the same form as -heap" 26 28 echo " The value should probably not be less than 256M" 29 echo " Default: $permsize" 27 30 echo "" 28 31 echo " -debug sets the logging level to DEBUG" … … 32 35 echo " may be referenced by the log4j configuration" 33 36 echo "" 34 echo "Default settings:" 35 echo "heap = $heap" 36 echo "newsize = $newsize" 37 echo "permsize = $permsize" 37 echo " -activemquri sets the uri used by the activemq broker for bedework" 38 echo " Some possibilities: vm://localhost tcp://localhost:61616" 39 echo " Default: $activemquri" 40 echo "" 41 echo " -portoffset sets the offset for the standard jboss ports allowing" 42 echo " multiple instances to be run on the same machine. The activemquri" 43 echo " value may need to be set explicitly if it uses a port." 44 echo " Default: $portoffset" 38 45 echo "" 39 46 } 40 47 48 # ===================== Defaults ================================= 41 49 heap="600M" 42 50 newsize="200M" 43 51 permsize="256M" 52 53 portoffset=0 54 55 activemquri="vm://localhost" 56 57 # =================== End defaults =============================== 44 58 45 59 LOG_THRESHOLD="-Djboss.server.log.threshold=INFO" … … 54 68 usage 55 69 exit 56 shift57 70 ;; 58 71 -heap) # Heap size bytes or nK, nM, nG … … 80 93 shift 81 94 ;; 95 -portoffset) 96 shift 97 portoffset="$1" 98 shift 99 ;; 100 -activemquri) 101 shift 102 activemquri="$1" 103 shift 104 ;; 82 105 *) 83 106 usage … … 101 124 102 125 # standard ports 103 JBOSS_PORTS=-Dorg.bedework.system.ports.offset= 0126 JBOSS_PORTS=-Dorg.bedework.system.ports.offset=$portoffset 104 127 105 128 # standard ports + defined value … … 107 130 108 131 ACTIVEMQ_DIRPREFIX="-Dorg.apache.activemq.default.directory.prefix=$JBOSS_DATA_DIR/" 132 ACTIVEMQ_URI="-Dorg.bedework.activemq.uri=$activemquri" 109 133 110 134 BW_DATA_DIR=$JBOSS_DATA_DIR/bedework … … 115 139 export JAVA_OPTS="$JAVA_OPTS -XX:PermSize=$permsize -XX:MaxPermSize=$permsize" 116 140 117 RUN_CMD="./$JBOSS_VERSION/bin/run.sh -c $JBOSS_CONFIG $JBOSS_BIND $JBOSS_PORTS $LOG_THRESHOLD $LOG_LEVELS $ACTIVEMQ_DIRPREFIX $ BW_DATA_DIR_DEF"141 RUN_CMD="./$JBOSS_VERSION/bin/run.sh -c $JBOSS_CONFIG $JBOSS_BIND $JBOSS_PORTS $LOG_THRESHOLD $LOG_LEVELS $ACTIVEMQ_DIRPREFIX $ACTIVEMQ_URI $BW_DATA_DIR_DEF" 118 142 119 143 echo $RUN_CMD trunk/build/quickstart/windows/startjboss.bat
r2849 r2983 13 13 SET newsize=200M 14 14 SET permsize=256M 15 16 SET activemquri=vm://localhost 17 18 SET portoffset=0 15 19 16 20 GOTO branch … … 34 38 GOTO branch 35 39 40 :portoffset 41 SHIFT 42 SET portoffset=%1 43 SHIFT 44 GOTO branch 45 46 :activemquri 47 SHIFT 48 SET activemquri=%1 49 SHIFT 50 GOTO branch 51 36 52 :doneWithArgs 37 53 … … 50 66 51 67 :: standard ports 52 SET JBOSS_PORTS=-Dorg.bedework.system.ports.offset= 068 SET JBOSS_PORTS=-Dorg.bedework.system.ports.offset=%portoffset% 53 69 54 70 :: standard ports + defined value … … 56 72 57 73 SET ACTIVEMQ_DIRPREFIX=-Dorg.apache.activemq.default.directory.prefix=%JBOSS_DATA_DIR%\ 74 SET ACTIVEMQ_URI=-Dorg.bedework.activemq.uri=%activemquri% 58 75 59 76 SET LOG_THRESHOLD=-Djboss.server.log.threshold=DEBUG … … 66 83 SET JAVA_OPTS=%JAVA_OPTS% -XX:PermSize=%permsize% -XX:MaxPermSize=%permsize% 67 84 68 SET RUN_CMD=.\%JBOSS_VERSION%\bin\run.bat -c %JBOSS_CONFIG% %JBOSS_BIND% %JBOSS_PORTS% %LOG_THRESHOLD% %ACTIVEMQ_DIRPREFIX% % BW_DATA_DIR_DEF%85 SET RUN_CMD=.\%JBOSS_VERSION%\bin\run.bat -c %JBOSS_CONFIG% %JBOSS_BIND% %JBOSS_PORTS% %LOG_THRESHOLD% %ACTIVEMQ_DIRPREFIX% %ACTIVEMQ_URI% %BW_DATA_DIR_DEF% 69 86 70 87 ECHO. … … 86 103 IF "%1" == "-newsize" GOTO newsize 87 104 IF "%1" == "-permsize" GOTO permsize 105 IF "%1" == "-portoffset" GOTO portoffset 106 IF "%1" == "-activemquri" GOTO activemquri 88 107 GOTO doneWithArgs 89 108 … … 93 112 ECHO. 94 113 ECHO startjboss.bat [-heap size] [-newsize size] [-permsize size] 114 ECHO [-portoffset n] [-activemquri uri] 95 115 ECHO. 96 116 ECHO Where: … … 100 120 ECHO nM for mega-bytes (e.g. 256oM) 101 121 ECHO nG for giga-bytes (e.g. 1G) 122 ECHO. Default: %heap% 102 123 ECHO. 103 124 ECHO -newsize sets the new generation size and has the same form as -heap 104 125 ECHO the value should be around one third of the heap 126 ECHO. Default: %newsize% 105 127 ECHO. 106 128 ECHO -permsize sets the permgen size and has the same form as -heap 107 129 ECHO The value should probably not be less than 256M 130 ECHO. Default: %permsize% 108 131 ECHO. 132 ECHO. -activemquri sets the uri used by the activemq broker for bedework 133 ECHO. Some possibilities: vm://localhost tcp://localhost:61616 134 ECHO. Default: %activemquriDefault% 109 135 ECHO. 110 ECHO. Default settings: 111 ECHO. heap = %heap% 112 ECHO. newsize = %newsize% 113 ECHO. permgen = %permsize% 136 ECHO. -portoffset sets the offset for the standard jboss ports allowing 137 ECHO. multiple instances to be run on the same machine. The activemquri 138 ECHO. value may need to be set explicitly if it uses a port. 139 ECHO. Default: %portoffset% 140 ECHO. trunk/config/bwbuild/jboss-h2/activemq-broker-config.xml
r2976 r2983 196 196 <!-- The transport connectors ActiveMQ will listen to --> 197 197 <transportConnectors> 198 <transportConnector name="bedework" 199 uri="${org.bedework.activemq.uri}" /> 200 <!-- 198 201 <transportConnector name="bedework" uri="tcp://localhost:61616" /> 199 <!--200 202 According to the book we shouldn't specify a discoveryUri - can lead to 201 203 multiple activemq brokers eating each others messages, At the very least … … 209 211 210 212 <!-- 211 ** Lets d eploy some Enterprise Integration Patterns inside the ActiveMQ Message Broker213 ** Lets dseploy some Enterprise Integration Patterns inside the ActiveMQ Message Broker 212 214 ** For more details see 213 215 ** trunk/config/bwbuild/jboss-h2/activemq-jms-ds.xml
r2832 r2983 13 13 <rar-name>activemq-rar-5.3.0.rar</rar-name> 14 14 <connection-definition>javax.jms.QueueConnectionFactory</connection-definition> 15 <ServerUrl>tcp://localhost:61616</ServerUrl> 15 16 <ServerUrl>failover:(${org.bedework.activemq.uri})?timeout=3000</ServerUrl> 17 <!-- 18 <ServerUrl>failover:(tcp://localhost:61616)?timeout=3000</ServerUrl> 19 --> 16 20 <!-- 17 21 <UserName>sa</UserName> … … 30 34 <rar-name>activemq-rar-5.3.0.rar</rar-name> 31 35 <connection-definition>javax.jms.QueueConnectionFactory</connection-definition> 32 <ServerUrl>tcp://localhost:61616</ServerUrl> 36 37 <ServerUrl>failover:(${org.bedework.activemq.uri})?timeout=3000</ServerUrl> 33 38 <!-- 34 39 <UserName>sa</UserName> … … 47 52 <rar-name>activemq-rar-5.3.0.rar</rar-name> 48 53 <connection-definition>javax.jms.TopicConnectionFactory</connection-definition> 49 <ServerUrl>tcp://localhost:61616</ServerUrl> 54 55 <ServerUrl>failover:(${org.bedework.activemq.uri})?timeout=3000</ServerUrl> 50 56 <!-- 51 57 <UserName>sa</UserName> trunk/config/bwbuild/jboss-h2/activemq-ra.xml
r2832 r2983 243 243 <config-property-name>ServerUrl</config-property-name> 244 244 <config-property-type>java.lang.String</config-property-type> 245 <config-property-value> tcp://localhost:61616</config-property-value>245 <config-property-value>${org.bedework.activemq.uri}</config-property-value> 246 246 </config-property> 247 247 <config-property> trunk/config/bwbuild/jboss-mysql/activemq-broker-config.xml
r2976 r2983 196 196 <!-- The transport connectors ActiveMQ will listen to --> 197 197 <transportConnectors> 198 <transportConnector name="bedework" 199 uri="${org.bedework.activemq.uri}" /> 200 <!-- 198 201 <transportConnector name="bedework" uri="tcp://localhost:61616" /> 199 <!--200 202 According to the book we shouldn't specify a discoveryUri - can lead to 201 203 multiple activemq brokers eating each others messages, At the very least … … 209 211 210 212 <!-- 211 ** Lets d eploy some Enterprise Integration Patterns inside the ActiveMQ Message Broker213 ** Lets dseploy some Enterprise Integration Patterns inside the ActiveMQ Message Broker 212 214 ** For more details see 213 215 ** trunk/config/bwbuild/jboss-mysql/activemq-jms-ds.xml
r2777 r2983 13 13 <rar-name>activemq-rar-5.3.0.rar</rar-name> 14 14 <connection-definition>javax.jms.QueueConnectionFactory</connection-definition> 15 <ServerUrl>tcp://localhost:61616</ServerUrl> 15 16 <ServerUrl>failover:(${org.bedework.activemq.uri})?timeout=3000</ServerUrl> 17 <!-- 18 <ServerUrl>failover:(tcp://localhost:61616)?timeout=3000</ServerUrl> 19 --> 16 20 <!-- 17 21 <UserName>sa</UserName> … … 30 34 <rar-name>activemq-rar-5.3.0.rar</rar-name> 31 35 <connection-definition>javax.jms.QueueConnectionFactory</connection-definition> 32 <ServerUrl>tcp://localhost:61616</ServerUrl> 36 37 <ServerUrl>failover:(${org.bedework.activemq.uri})?timeout=3000</ServerUrl> 33 38 <!-- 34 39 <UserName>sa</UserName> … … 47 52 <rar-name>activemq-rar-5.3.0.rar</rar-name> 48 53 <connection-definition>javax.jms.TopicConnectionFactory</connection-definition> 49 <ServerUrl>tcp://localhost:61616</ServerUrl> 54 55 <ServerUrl>failover:(${org.bedework.activemq.uri})?timeout=3000</ServerUrl> 50 56 <!-- 51 57 <UserName>sa</UserName> trunk/config/bwbuild/jboss-mysql/activemq-ra.xml
r2777 r2983 243 243 <config-property-name>ServerUrl</config-property-name> 244 244 <config-property-type>java.lang.String</config-property-type> 245 <config-property-value> tcp://localhost:61616</config-property-value>245 <config-property-value>${org.bedework.activemq.uri}</config-property-value> 246 246 </config-property> 247 247 <config-property> trunk/config/bwbuild/jboss-postgresql/activemq-broker-config.xml
r2978 r2983 196 196 <!-- The transport connectors ActiveMQ will listen to --> 197 197 <transportConnectors> 198 <transportConnector name="bedework" uri="tcp://localhost:61616" /> 198 <transportConnector name="bedework" 199 uri="${org.bedework.activemq.uri}" /> 199 200 <!-- 200 201 <transportConnector name="bedework" uri="tcp://localhost:61616" /> … … 210 211 211 212 <!-- 212 ** Lets d eploy some Enterprise Integration Patterns inside the ActiveMQ Message Broker213 ** Lets dseploy some Enterprise Integration Patterns inside the ActiveMQ Message Broker 213 214 ** For more details see 214 215 ** trunk/config/bwbuild/jboss-postgresql/activemq-jms-ds.xml
r2978 r2983 14 14 <connection-definition>javax.jms.QueueConnectionFactory</connection-definition> 15 15 16 <ServerUrl>failover:( tcp://localhost:61616)?timeout=3000</ServerUrl>16 <ServerUrl>failover:(${org.bedework.activemq.uri})?timeout=3000</ServerUrl> 17 17 <!-- 18 18 <ServerUrl>failover:(tcp://localhost:61616)?timeout=3000</ServerUrl> … … 35 35 <connection-definition>javax.jms.QueueConnectionFactory</connection-definition> 36 36 37 <ServerUrl>failover:( tcp://localhost:61616)?timeout=3000</ServerUrl>37 <ServerUrl>failover:(${org.bedework.activemq.uri})?timeout=3000</ServerUrl> 38 38 <!-- 39 39 <UserName>sa</UserName> … … 53 53 <connection-definition>javax.jms.TopicConnectionFactory</connection-definition> 54 54 55 <ServerUrl>failover:( tcp://localhost:61616)?timeout=3000</ServerUrl>55 <ServerUrl>failover:(${org.bedework.activemq.uri})?timeout=3000</ServerUrl> 56 56 <!-- 57 57 <UserName>sa</UserName> trunk/config/bwbuild/jboss-postgresql/activemq-ra.xml
r2877 r2983 243 243 <config-property-name>ServerUrl</config-property-name> 244 244 <config-property-type>java.lang.String</config-property-type> 245 <config-property-value> tcp://localhost:61616</config-property-value>245 <config-property-value>${org.bedework.activemq.uri}</config-property-value> 246 246 </config-property> 247 247 <config-property> trunk/config/bwbuild/jboss/activemq-broker-config.xml
r2976 r2983 196 196 <!-- The transport connectors ActiveMQ will listen to --> 197 197 <transportConnectors> 198 <transportConnector name="bedework" 199 uri="${org.bedework.activemq.uri}" /> 200 <!-- 198 201 <transportConnector name="bedework" uri="tcp://localhost:61616" /> 199 <!--200 202 According to the book we shouldn't specify a discoveryUri - can lead to 201 203 multiple activemq brokers eating each others messages, At the very least … … 209 211 210 212 <!-- 211 ** Lets d eploy some Enterprise Integration Patterns inside the ActiveMQ Message Broker213 ** Lets dseploy some Enterprise Integration Patterns inside the ActiveMQ Message Broker 212 214 ** For more details see 213 215 ** trunk/config/bwbuild/jboss/activemq-jms-ds.xml
r2755 r2983 13 13 <rar-name>activemq-rar-5.3.0.rar</rar-name> 14 14 <connection-definition>javax.jms.QueueConnectionFactory</connection-definition> 15 <ServerUrl>tcp://localhost:61616</ServerUrl> 15 16 <ServerUrl>failover:(${org.bedework.activemq.uri})?timeout=3000</ServerUrl> 17 <!-- 18 <ServerUrl>failover:(tcp://localhost:61616)?timeout=3000</ServerUrl> 19 --> 16 20 <!-- 17 21 <UserName>sa</UserName> … … 30 34 <rar-name>activemq-rar-5.3.0.rar</rar-name> 31 35 <connection-definition>javax.jms.QueueConnectionFactory</connection-definition> 32 <ServerUrl>tcp://localhost:61616</ServerUrl> 36 37 <ServerUrl>failover:(${org.bedework.activemq.uri})?timeout=3000</ServerUrl> 33 38 <!-- 34 39 <UserName>sa</UserName> … … 47 52 <rar-name>activemq-rar-5.3.0.rar</rar-name> 48 53 <connection-definition>javax.jms.TopicConnectionFactory</connection-definition> 49 <ServerUrl>tcp://localhost:61616</ServerUrl> 54 55 <ServerUrl>failover:(${org.bedework.activemq.uri})?timeout=3000</ServerUrl> 50 56 <!-- 51 57 <UserName>sa</UserName> trunk/config/bwbuild/jboss/activemq-ra.xml
r2719 r2983 243 243 <config-property-name>ServerUrl</config-property-name> 244 244 <config-property-type>java.lang.String</config-property-type> 245 <config-property-value> tcp://localhost:61616</config-property-value>245 <config-property-value>${org.bedework.activemq.uri}</config-property-value> 246 246 </config-property> 247 247 <config-property>
