Skip navigation
2012

With the announcment of EAP6, EAP is now available in the cloud environment provided by OpenShift. This post updates how to test the OpenShift jboss-eap-6.0 based cartridge standalone configuration in your own environment.

 

The configuration of the JBossAS7 server used by the OpenShift Express JBossAS cartridge is a simple modification of the jboss-eap-6.0 release which my be obtained from https://access.redhat.com/home

 

The contents of the jboss-eap-6.0 release need to be updated with the attached standalone.xml, standalone.conf, and the database driver modules. The exact steps would be:

  1. Create a demo directory to contain the files. I use /tmp/eap6conf, so if you use the same, no changes need to be made to the following directions or configuration files.
  2. download jboss-eap-6.0.zip from https://access.redhat.com/home using your subscription.
  3. unzip jboss-eap-6.0.zip
  4. Create a link from jbosseap-6.0 to jboss-eap-6.0, or copy the jboss-eap-6.0 directory to jbosseap-6.0
    1. ln -s jboss-eap-6.0 jbosseap-6.0
  5. Download the attachments on this blog
  6. unzip bin.zip to get the bin/{standalone.conf,standalone.sh} files
  7. cp bin/* to jbosseap-6.0/bin
  8. Edit the jbosseap-6.0/bin/standalone.conf file to change any of the environment variables in the first section to match your environment.
  9. unzip the modules.zip from within the jbosseap-6.0 directory to add the modules for mysql, mongodb, and switchyard to the server modules. (Note, the attached modules.zip does not contain the switchyard modules as this made the attachment too large. To build the full modules.zip, clone the https://github.com/openshift/jboss-as7-modules repo and do a 'gradle createModuleZip' to build it.)

 

OpenShift Environment Variables

There are several environment variables referenced in the standalone.xml from the OpenShift JBossAS7 cartridge standalone.xml and standalone.conf files. They are:

 

# OPENSHIFT_GEAR_NAME is the NAME of the application as passed to the rhc create app -a NAME … command
OPENSHIFT_GEAR_NAME

# OPENSHIFT_REPO_DIR is the git repository of the application deployment. For reproducing the standalone configuration
# it has no meaningful value as it is only used to pickup application specific overrides of the server
# configuration files.
OPENSHIFT_REPO_DIR = 

# OPENSHIFT_GEAR_DIR is the root directory of the application. 
OPENSHIFT_GEAR_DIR = 


# OPENSHIFT_GEAR_TYPE is jbosseap-6.0 for a jbossas cartridge. This is also used as the root of
# the jbosseap-6.0 application server associated with the application. In the OpenShift environment, each
# application is associated with a user that has a copy of the jboss-eap-6.0 server contents installed to ${OPENSHIFT_GEAR_DIR}${OPENSHIFT_GEAR_TYPE}, e.g., /tmp/demo/jbosseap-6.0.
OPENSHIFT_GEAR_TYPE = jbosseap-6.0

# OPENSHIFT_DB_TYPE is the type of the embedded database configured using the rhc-ctl-app command:
# rhc-ctl-app -a demo -e add-mysql-5.1
# This will be empty if no database cartridge has been embedded.
OPENSHIFT_DB_TYPE = 
# OPENSHIFT_DB_HOST gives the IP address the embedded database is listening on
OPENSHIFT_DB_HOST
# OPENSHIFT_DB_PORT gives the port the embedded database is listening on
OPENSHIFT_DB_PORT
# OPENSHIFT_DB_USERNAME gives the configured username to access the embedded database
OPENSHIFT_DB_USERNAME
# OPENSHIFT_DB_PASSWORD gives the configured username to access the embedded database
OPENSHIFT_DB_PASSWORD

# OPENSHIFT_INTERNAL_IP is the local ip address to bind the server's services to. Typically you would use
# localhost/127.0.0.1 for your local environment.
OPENSHIFT_INTERNAL_IP = 

# OPENSHIFT_JBOSS_CLUSTER is the ip address[port] for the TCPPING initial_hosts property used by the jgroups
# subsystem configuration. This is used when scaling of the application is enabled in OpenShift. For local, single server
# testing this will not be used.
OPENSHIFT_JBOSS_CLUSTER = 

# OPENSHIFT_JBOSS_CLUSTER_PROXY_PORT is the port used by the TCP groups protocol bind_port property.
OPENSHIFT_JBOSS_CLUSTER_PROXY_PORT = 7600

# OPENSHIFT_GEAR_DNS is the public dns name of the server hosting the application created by rhc app create -a … .
# For an application named demo, in a domain named jbossdev, the DNS name would be: demo-jbossdev.rhcloud.com.
# This is used by the jgroups subsystem configuration as the ip address/hostname for the external_addr property used to
# communicate with other jboss instances. For a local, single server testing this should be the same as the
# OPENSHIFT_INTERNAL_IP value.
OPENSHIFT_GEAR_DNS = 

# The node_profile value is derived from the type of node the application is running on. The default is small as that is the free
# offering which provide 500Mb of memory to the application. 
node_profile = small

 

The relevant values for these in the attached standalone.conf file that I tested with are:

 

#### Edit this variables for your test environment
export OPENSHIFT_GEAR_NAME= eap6conf
export OPENSHIFT_GEAR_DIR=/tmp/eap6conf/
export OPENSHIFT_GEAR_TYPE=jbosseap-6.0
export OPENSHIFT_INTERNAL_IP=127.0.0.1
export OPENSHIFT_GEAR_DNS=127.0.0.1
export node_profile=small
####

 

Running the OpenShift configuration is realized by executing the standalone.sh from your jbosseap-6.0/bin directory:

 

[800](ironmaiden eap6]) > cd /tmp/eap6conf/jbosseap-6.0/bin
[801](ironmaiden bin]) >./standalone.sh
=========================================================================


  JBoss Bootstrap Environment


  JBOSS_HOME: /tmp/eap6conf/jbosseap-6.0


  JAVA: /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java


  JAVA_OPTS: -d32 -client -Xmx256m -XX:MaxPermSize=128m -XX:+AggressiveOpts -Dorg.apache.tomcat.util.LOW_MEMORY=true -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Djboss.node.name=127.0.0.1 -Djgroups.bind_addr=127.0.0.1


=========================================================================


14:23:01,595 INFO  [org.jboss.modules] JBoss Modules version 1.1.2.GA-redhat-1
14:23:01,784 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA-redhat-1
14:23:01,828 INFO  [org.jboss.as] JBAS015899: JBoss EAP 6.0.0.GA (AS 7.1.2.Final-redhat-1) starting
14:23:02,676 INFO  [org.xnio] XNIO Version 3.0.4.GA-redhat-1
14:23:02,676 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
14:23:02,684 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.4.GA-redhat-1
14:23:02,693 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.8.GA-redhat-1
14:23:02,708 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
14:23:02,711 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
14:23:02,728 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
14:23:02,752 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
14:23:02,788 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
14:23:02,797 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011906: Activating OSGi Subsystem
14:23:02,815 INFO  [org.jboss.as.security] (MSC service thread 1-4) JBAS013100: Current PicketBox version=4.0.9.Final-redhat-1
14:23:02,816 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
14:23:02,822 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.11.Final-redhat-1)
14:23:02,855 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
14:23:02,878 INFO  [org.jboss.as.naming] (MSC service thread 1-5) JBAS011802: Starting Naming Service
14:23:02,891 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]
14:23:03,072 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3) JBoss Web Services - Stack CXF Server 4.0.4.GA-redhat-1
14:23:03,217 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http-/127.0.0.1:8080
14:23:03,307 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
14:23:03,333 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-6) JBAS015012: Started FileSystemDeploymentService for directory /tmp/eap6conf/jbosseap-6.0/standalone/deployments
14:23:03,350 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on 127.0.0.1:9999
14:23:03,350 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on 127.0.0.1:4447
14:23:03,409 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
14:23:03,409 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.0.0.GA (AS 7.1.2.Final-redhat-1) started in 2129ms - Started 134 of 214 services (79 services are passive or on-demand)

 

Diff of Configuration Files

The full difference from the base standalone.xml configuration you would see in a current jbosseap-6.0 cartridge application on OpenShift vs the standalone.xml seen in the jboss-eap-6.0/standalone/configuration/standalone.xml is shown below.

 

[855](ironmaiden eap6]) > diff -w .openshift/config/standalone.xml /home/git/JBossAS/Downloads/jboss-eap-6.0/standalone/configuration/standalone.xml 
4d3
< 
7,8d5
<                     <extension module="org.jboss.as.clustering.jgroups" />
<                     <extension module="org.jboss.as.cmp" />
14,15d10
<                     <extension module="org.jboss.as.jacorb" />
<                     <extension module="org.jboss.as.jaxr" />
20d14
<                     <extension module="org.jboss.as.jsr77" />
23d16
<                     <extension module="org.jboss.as.messaging" />
36d28
< 
37a30,46
>         <security-realms>
>             <security-realm name="ManagementRealm">
>                 <authentication>
>                     <local default-user="$local"/>
>                     <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
>                 </authentication>
>             </security-realm>
>             <security-realm name="ApplicationRealm">
>                 <authentication>
>                     <local default-user="$local" allowed-users="*"/>
>                     <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
>                 </authentication>
>                 <authorization>
>                     <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
>                 </authorization>
>             </security-realm>
>         </security-realms>
39c48
<             <native-interface>
---
>             <native-interface security-realm="ManagementRealm">
42c51
<             <http-interface>
---
>             <http-interface security-realm="ManagementRealm">
47d55
< 
50,51c58,63
<                               <!--console-handler name="CONSOLE"> <level name="INFO"/> <formatter> <pattern-formatter 
<                                         pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/> </formatter> </console-handler -->
---
>             <console-handler name="CONSOLE">
>                 <level name="INFO"/>
>                 <formatter>
>                     <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
>                 </formatter>
>             </console-handler>
54,55c66
<                                                   <pattern-formatter
<                                                             pattern="%d{yyyy/MM/dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n" />
---
>                     <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
79c90
<                                                   <!--handler name="CONSOLE"/ -->
---
>                     <handler name="CONSOLE"/>
84d94
<                     <subsystem xmlns="urn:jboss:domain:cmp:1.0" />
88,91c98,99
<                                         <datasource jndi-name="java:jboss/datasources/ExampleDS"
<                                                   enabled="true" use-java-context="true" pool-name="H2DS">
<                                                   <connection-url>jdbc:h2:${jboss.server.data.dir}/test;DB_CLOSE_DELAY=-1
<                                                   </connection-url>
---
>                 <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
>                     <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
98,118d105
<                                         <datasource jndi-name="java:jboss/datasources/MysqlDS"
<                                                   enabled="${mysql.enabled}" use-java-context="true" pool-name="MysqlDS">
<                                                   <connection-url>jdbc:mysql://${env.OPENSHIFT_DB_HOST}:${env.OPENSHIFT_DB_PORT}/${env.OPENSHIFT_APP_NAME}
<                                                   </connection-url>
<                                                   <driver>mysql</driver>
<                                                   <security>
<                                                             <user-name>${env.OPENSHIFT_DB_USERNAME}</user-name>
<                                                             <password>${env.OPENSHIFT_DB_PASSWORD}</password>
<                                                   </security>
<                                         </datasource>
<                                         <datasource jndi-name="java:jboss/datasources/PostgreSQLDS"
<                                                   enabled="${postgresql.enabled}" use-java-context="true" pool-name="PostgreSQLDS"
<                                                   use-ccm="true">
<                                                   <connection-url>jdbc:postgresql://${env.OPENSHIFT_DB_HOST}:${env.OPENSHIFT_DB_PORT}/${env.OPENSHIFT_APP_NAME}
<                                                   </connection-url>
<                                                   <driver>postgresql</driver>
<                                                   <security>
<                                                             <user-name>${env.OPENSHIFT_DB_USERNAME}</user-name>
<                                                             <password>${env.OPENSHIFT_DB_PASSWORD}</password>
<                                                   </security>
<                                         </datasource>
121,130c108
<                                                             <xa-datasource-class>org.h2.jdbcx.JdbcDataSource
<                                                             </xa-datasource-class>
<                                                   </driver>
<                                                   <driver name="mysql" module="com.mysql.jdbc">
<                                                             <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
<                                                             </xa-datasource-class>
<                                                   </driver>
<                                                   <driver name="postgresql" module="org.postgresql.jdbc">
<                                                             <xa-datasource-class>org.postgresql.xa.PGXADataSource
<                                                             </xa-datasource-class>
---
>                         <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
136,138c114
<                               <deployment-scanner path="deployments"
<                                         relative-to="jboss.server.base.dir" scan-interval="5000"
<                                         deployment-timeout="300" />
---
>             <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>
141,144c117,118
<                               <spec-descriptor-property-replacement>false
<                               </spec-descriptor-property-replacement>
<                               <jboss-descriptor-property-replacement>true
<                               </jboss-descriptor-property-replacement>
---
>             <spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
>             <jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement>
151,152c125
<                                         <stateful default-access-timeout="5000" cache-ref="simple"
<                                                   clustered-cache-ref="clustered" />
---
>                 <stateful default-access-timeout="5000" cache-ref="simple"/>
155,158d127
<                               <mdb>
<                                         <resource-adapter-ref resource-adapter-name="hornetq-ra" />
<                                         <bean-instance-pool-ref pool-name="mdb-strict-max-pool" />
<                               </mdb>
161,166c130,131
<                                                   <strict-max-pool name="slsb-strict-max-pool"
<                                                             max-pool-size="20" instance-acquisition-timeout="5"
<                                                             instance-acquisition-timeout-unit="MINUTES" />
<                                                   <strict-max-pool name="mdb-strict-max-pool"
<                                                             max-pool-size="20" instance-acquisition-timeout="5"
<                                                             instance-acquisition-timeout-unit="MINUTES" />
---
>                     <strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
>                     <strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
171,174c136
<                                         <cache name="passivating" passivation-store-ref="file"
<                                                   aliases="SimpleStatefulCache" />
<                                         <cache name="clustered" passivation-store-ref="infinispan"
<                                                   aliases="StatefulTreeCache" />
---
>                 <cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>
178,179d139
<                                         <cluster-passivation-store name="infinispan"
<                                                   cache-container="ejb" />
192d151
<                               <iiop enable-by-default="false" use-qualified-name="false" />
195,229c154,156
<                               <cache-container name="cluster" aliases="ha-partition"
<                                         default-cache="default">
<                                         <transport lock-timeout="60000" />
<                                         <replicated-cache name="default" mode="SYNC"
<                                                   batching="true">
<                                                   <locking isolation="REPEATABLE_READ" />
<                                         </replicated-cache>
<                               </cache-container>
<                               <cache-container name="web" aliases="standard-session-cache"
<                                         default-cache="repl">
<                                         <transport lock-timeout="60000" />
<                                         <replicated-cache name="repl" mode="ASYNC"
<                                                   batching="true">
<                                                   <file-store />
<                                         </replicated-cache>
<                                         <replicated-cache name="sso" mode="SYNC" batching="true" />
<                                         <distributed-cache name="dist" mode="ASYNC"
<                                                   batching="true" l1-lifespan="0">
<                                                   <file-store />
<                                         </distributed-cache>
<                               </cache-container>
<                               <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" max-entries="10000" />
<                                                   <file-store />
<                                         </replicated-cache>
<                                         <!-- ~ Clustered cache used internally by EJB subsytem for managing the 
<                                                   client-mapping(s) of ~ the socketbinding referenced by the EJB remoting connector -->
<                                         <replicated-cache name="remote-connector-client-mappings"
<                                                   mode="SYNC" batching="true" />
<                                         <distributed-cache name="dist" mode="ASYNC"
<                                                   batching="true" l1-lifespan="0">
---
>             <cache-container name="hibernate" default-cache="local-query" module="org.jboss.as.jpa.hibernate:4">
>                 <local-cache name="entity">
>                     <transaction mode="NON_XA"/>
231,236c158,159
<                                                   <file-store />
<                                         </distributed-cache>
<                               </cache-container>
<                               <cache-container name="hibernate" default-cache="local-query"
<                                         module="org.jboss.as.jpa.hibernate:4">
<                                         <transport lock-timeout="60000" />
---
>                     <expiration max-idle="100000"/>
>                 </local-cache>
242,247c165
<                                         <invalidation-cache name="entity" mode="SYNC">
<                                                   <transaction mode="NON_XA" />
<                                                   <eviction strategy="LRU" max-entries="10000" />
<                                                   <expiration max-idle="100000" />
<                                         </invalidation-cache>
<                                         <replicated-cache name="timestamps" mode="ASYNC">
---
>                 <local-cache name="timestamps">
250c168
<                                         </replicated-cache>
---
>                 </local-cache>
253,260d170
<                     <subsystem xmlns="urn:jboss:domain:jacorb:1.2">
<                               <orb>
<                                         <initializers transactions="spec" security="on" />
<                               </orb>
<                     </subsystem>
<                     <subsystem xmlns="urn:jboss:domain:jaxr:1.1">
<                               <connection-factory jndi-name="java:jboss/jaxr/ConnectionFactory" />
<                     </subsystem>
282,316d191
<                     <subsystem xmlns="urn:jboss:domain:jgroups:1.1"
<                               default-stack="tcp">
<                               <stack name="tcp">
<                                         <transport type="TCP" socket-binding="jgroups-tcp">
<                                                   <property name="external_addr">${env.OPENSHIFT_GEAR_DNS}</property>
<                                                   <property name="external_port">${env.OPENSHIFT_JBOSS_CLUSTER_PROXY_PORT}
<                                                   </property>
<                                                   <property name="bind_port">7600</property>
<                                                   <property name="bind_addr">${env.OPENSHIFT_INTERNAL_IP}</property>
<                                         </transport>
<                                         <protocol type="TCPPING">
<                                                   <property name="timeout">3000</property>
<                                                   <property name="initial_hosts">${env.OPENSHIFT_JBOSS_CLUSTER}</property>
<                                                   <property name="port_range">0</property>
<                                                   <property name="num_initial_members">1</property>
<                                         </protocol>
<                                         <protocol type="MERGE2" />
<                                         <protocol type="FD" />
<                                         <protocol type="VERIFY_SUSPECT" />
<                                         <protocol type="BARRIER" />
<                                         <protocol type="pbcast.NAKACK" />
<                                         <protocol type="UNICAST2" />
<                                         <protocol type="pbcast.STABLE" />
<                                         <protocol type="pbcast.GMS" />
<                                         <protocol type="UFC" />
<                                         <protocol type="MFC" />
<                                         <protocol type="FRAG2" />
<                                         <protocol type="AUTH">
<                                                   <property name="auth_class">org.jgroups.auth.MD5Token</property>
<                                                   <property name="token_hash">SHA</property>
<                                                   <property name="auth_value">${env.OPENSHIFT_JBOSS_CLUSTER}</property>
<                                         </protocol>
<                                         <!--protocol type="pbcast.STATE_TRANSFER"/> <protocol type="pbcast.FLUSH"/ -->
<                               </stack>
<                     </subsystem>
324d198
<                     <subsystem xmlns="urn:jboss:domain:jsr77:1.0" />
330,403d203
<                     <subsystem xmlns="urn:jboss:domain:messaging:1.2">
<                               <hornetq-server>
<                                         <clustered>true</clustered>
<                                         <persistence-enabled>true</persistence-enabled>
<                                         <security-enabled>false</security-enabled>
<                                         <journal-file-size>102400</journal-file-size>
<                                         <journal-min-files>2</journal-min-files>
<                                         <connectors>
<                                                   <netty-connector name="netty" socket-binding="messaging" />
<                                                   <netty-connector name="netty-throughput"
<                                                             socket-binding="messaging-throughput">
<                                                             <param key="batch-delay" value="50" />
<                                                   </netty-connector>
<                                                   <in-vm-connector name="in-vm" server-id="0" />
<                                         </connectors>
<                                         <acceptors>
<                                                   <netty-acceptor name="netty" socket-binding="messaging" />
<                                                   <netty-acceptor name="netty-throughput"
<                                                             socket-binding="messaging-throughput">
<                                                             <param key="batch-delay" value="50" />
<                                                             <param key="direct-deliver" value="false" />
<                                                   </netty-acceptor>
<                                                   <in-vm-acceptor name="in-vm" server-id="0" />
<                                         </acceptors>
<                                         <!--broadcast-groups> <broadcast-group name="bg-group1"> <socket-binding>messaging-group</socket-binding> 
<                                                   <broadcast-period>5000</broadcast-period> <connector-ref>netty</connector-ref> 
<                                                   </broadcast-group> </broadcast-groups> <discovery-groups> <discovery-group 
<                                                   name="dg-group1"> <socket-binding>messaging-group</socket-binding> <refresh-timeout>10000</refresh-timeout> 
<                                                   </discovery-group> </discovery-groups> <cluster-connections> <cluster-connection 
<                                                   name="my-cluster"> <address>jms</address> <connector-ref>netty</connector-ref> 
<                                                   <discovery-group-ref discovery-group-name="dg-group1"/> </cluster-connection> 
<                                                   </cluster-connections -->
<                                         <address-settings>
<                                                   <!--default for catch all -->
<                                                   <address-setting match="#">
<                                                             <dead-letter-address>jms.queue.DLQ</dead-letter-address>
<                                                             <expiry-address>jms.queue.ExpiryQueue</expiry-address>
<                                                             <redelivery-delay>0</redelivery-delay>
<                                                             <redistribution-delay>1000</redistribution-delay>
<                                                             <max-size-bytes>10485760</max-size-bytes>
<                                                             <address-full-policy>BLOCK</address-full-policy>
<                                                             <message-counter-history-day-limit>10
<                                                             </message-counter-history-day-limit>
<                                                   </address-setting>
<                                         </address-settings>
<                                         <jms-connection-factories>
<                                                   <connection-factory name="InVmConnectionFactory">
<                                                             <connectors>
<                                                                       <connector-ref connector-name="in-vm" />
<                                                             </connectors>
<                                                             <entries>
<                                                                       <entry name="java:/ConnectionFactory" />
<                                                             </entries>
<                                                   </connection-factory>
<                                                   <connection-factory name="RemoteConnectionFactory">
<                                                             <connectors>
<                                                                       <connector-ref connector-name="netty" />
<                                                             </connectors>
<                                                             <entries>
<                                                                       <entry name="java:jboss/exported/jms/RemoteConnectionFactory" />
<                                                             </entries>
<                                                   </connection-factory>
<                                                   <pooled-connection-factory name="hornetq-ra">
<                                                             <transaction mode="xa" />
<                                                             <connectors>
<                                                                       <connector-ref connector-name="in-vm" />
<                                                             </connectors>
<                                                             <entries>
<                                                                       <entry name="java:/JmsXA" />
<                                                             </entries>
<                                                   </pooled-connection-factory>
<                                         </jms-connection-factories>
<                               </hornetq-server>
<                     </subsystem>
419,422c219,220
<                                         <capability name="org.apache.felix.configadmin"
<                                                   startlevel="1" />
<                                         <capability name="org.jboss.as.osgi.configadmin"
<                                                   startlevel="1" />
---
>                 <capability name="org.apache.felix.configadmin" startlevel="1"/>
>                 <capability name="org.jboss.as.osgi.configadmin" startlevel="1"/>
427c225
<                               <connector name="remoting-connector" socket-binding="remoting" />
---
>             <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
462,463c260
<                               <recovery-environment socket-binding="txn-recovery-environment"
<                                         status-socket-binding="txn-status-manager" />
---
>             <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
466,471c263,265
<                     <subsystem xmlns="urn:jboss:domain:web:1.1"
<                               default-virtual-server="default-host" native="false">
<                               <connector name="http" protocol="HTTP/1.1" scheme="http"
<                                         socket-binding="http" />
<                               <virtual-server name="default-host"
<                                         enable-welcome-root="false">
---
>         <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
>             <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
>             <virtual-server name="default-host" enable-welcome-root="true">
472a267
>                 <alias name="example.com"/>
477c272
<                               <wsdl-host>${env.OPENSHIFT_INTERNAL_IP}</wsdl-host>
---
>             <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
480,483c275,276
<                                         <pre-handler-chain name="recording-handlers"
<                                                   protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
<                                                   <handler name="RecordingHandler"
<                                                             class="org.jboss.ws.common.invocation.RecordingServerHandler" />
---
>                 <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
>                     <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
489d281
< 
492c284
<                               <loopback-address value="${env.OPENSHIFT_INTERNAL_IP}" />
---
>             <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
495c287
<                               <loopback-address value="${env.OPENSHIFT_INTERNAL_IP}" />
---
>             <inet-address value="${jboss.bind.address:127.0.0.1}"/>
496a289
>         <!-- TODO - only show this if the jacorb subsystem is added  -->
498,500c291,295
<                               <!-- Used for IIOP sockets in the standarad configuration. To secure JacORB 
<                                         you need to setup SSL -->
<                               <loopback-address value="${env.OPENSHIFT_INTERNAL_IP}" />
---
>             <!--
>               ~  Used for IIOP sockets in the standard configuration.
>               ~                  To secure JacORB you need to setup SSL 
>               -->
>             <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
503,510c298,302
< 
<           <socket-binding-group name="standard-sockets"
<                     default-interface="public" port-offset="0">
<                     <socket-binding name="management-native" interface="management"
<                               port="9999" />
<                     <socket-binding name="management-http" interface="management"
<                               port="9990" />
< 
---
>     <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
>         <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
>         <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
>         <socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
>         <socket-binding name="ajp" port="8009"/>
513,523c305
<                     <socket-binding name="jacorb" interface="unsecure"
<                               port="3528" />
<                     <socket-binding name="jacorb-ssl" interface="unsecure"
<                               port="3529" />
<                     <socket-binding name="jgroups-tcp" port="7600" />
<                     <socket-binding name="messaging" port="5445" />
<                     <!--socket-binding name="messaging-group" multicast-address="${jboss.messaging.group.address:231.7.7.7}" 
<                               multicast-port="${jboss.messaging.group.port:9876}"/ -->
<                     <socket-binding name="messaging-throughput" port="5455" />
<                     <socket-binding name="osgi-http" interface="management"
<                               port="8090" />
---
>         <socket-binding name="osgi-http" interface="management" port="8090"/>

Filter Blog

By date: By tag: