HornetQ was introduced in EAP5/AS5. In that version of the server, HornetQ configuration metadata was spread over a set of XML files.
- hornetq-configuration.xml
- connection-factories-service.xml
- destinations-service.xml
- messaging-service.xml
In compliance with EAP6 and AS7's configuration model its metadata was moved into a "messaging" subsystem[1]. In this new design a 1:1 mapping between old XML and the new could not be maintained.
The attached zip file contains Windup rules that will assist migration of your HornetQ configuration data. The rules check for the old style config files and run the contents through an XSLT transformation whose output can be cut and pasted into the server messaging subsystem.
You need a buildable copy of Windup[2]. Unzip the attached zip file in its base directory. Build Windup and run as directed here
Here is the metadata mapping between the old and new systems.
HornetQ config files | Messaging subsystem |
---|---|
<configuration> tag | <hornetq-server> ;replaces that tag |
configuration.clustered | hornetq-server.clustered ;Deprecated. .. is considered clustered if it has at least one cluster-connection. |
dose not exist | hornetq-server.security-domain ; only in subsystem |
configuration.password-codec | does not exist |
configuration.mask-password | does not exist |
configuration.log-delegate-factory-class-name | does not exist |
configuration.paging-directory | hornetq-server.paging-directory relative-to="" path="" ; attrib additons or relative-to and path |
configuration.bindings-directory | hornetq-server.bindings-directory relative-to="" path="" ; attrib additons or relative-to and path |
configuration.journal-directory | hornetq-server.journal-directory relative-to="" path="" ; attrib additons or relative-to and path |
configuration.large-messages-directory | hornetq-server.large-messages-directory relative-to="" path="" ; attrib additons or relative-to and path |
There is a major difference in the connector XML. All connector def use a single template <connector name="##REQUIRED##" > | This XML has 3 different templates depending on the connector type.
<netty-connector name="##REQUIRED##" socket-binding="##REQUIRED##">
server-id="##OPTIONAL##">
socket-binding="##OPTIONAL##"> |
There is a major difference in the acceptor XML. All acceptor def use a single template
<acceptor name="##OPTIONAL##" > | This XML has 3 different templates depending on the acceptor type.
<netty-acceptor name="##OPTIONAL##" socket-binding="##REQUIRED##">
|
broadcast-group.jgroups-file | broadcast-group.jgroups-stack ; does this replace jgroups-file?
broadcast-group.socket-binding
broadcast-group.local-bind-port ; Deprecated. use socket-binding instead broadcast-group.group-address ; Deprecated. use socket-binding instead broadcast-group.group-port ; Deprecated. use socket-binding instead |
discovery-group.jgroups-file | discovery-group.jgroups-stack ; does this replace jgroups-file?
discovery-group.socket-binding
discovery-group.local-bind-port ; Deprecated. use socket-binding instead discovery-group.group-address ; Deprecated. use socket-binding instead discovery-group.group-port ; Deprecated. use socket-binding instead |
bridges.failover-on-server-shutdown ; Deprecated. ignored | |
bridges.reconnect-attempts-same-node | does not exist |
address-settings.address-setting.expiry-delay | not supported |
address-settings.address-setting.redelivery-delay-multiplier | not supported |
address-settings.address-setting.max-redelivery-delay | not supported |
address-settings.address-setting.max-delivery-attempts | not supported |
address-settings.address-setting.address-full-policy ; an ENUM defines legal values | ENUM value 'FAIL' is not offered. |
configuration is the tag | jms-connection-factories ;the tag being used. |
<connection-factory name="" "signature=""> | <connection-factory name="" "signature=""> ; attribute removed
jms-connection-factories.connection-factory.factory-type ; new in subsystem. It is an ENUM. Does it replace attribute signature? |
configuration.jmx-domain | does not exist |
connection-factory.xa | does not exist |
connection-factory.failover-on-server-shutdown | Deprecated. and ignored |
jms-connection-factories.connection-factory.group-id | |
jms-connection-factories.pooled-connection-factory | |
hornetq-server.jms-destinations | |
jms-bridge | |
Resources
[1] $SERVER_HOME/docs/schema/jboss-as-messaging_1_3.xsd.
-
hornetq-rules.zip 8.8 KB
Comments