Last active
August 29, 2015 14:03
-
-
Save MichaelDrogalis/2b08dcd1a67786561dc3 to your computer and use it in GitHub Desktop.
node-1-hornetq-configuration.xml
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <deployment xmlns="urn:jboss:bean-deployer:2.0"> | |
| <!-- MBean server --> | |
| <bean name="MBeanServer" class="javax.management.MBeanServer"> | |
| <constructor factoryClass="java.lang.management.ManagementFactory" | |
| factoryMethod="getPlatformMBeanServer"/> | |
| </bean> | |
| <!-- The core configuration --> | |
| <bean name="Configuration" class="org.hornetq.core.config.impl.FileConfiguration"> | |
| </bean> | |
| <!-- The security manager --> | |
| <bean name="HornetQSecurityManager" class="org.hornetq.spi.core.security.HornetQSecurityManagerImpl"> | |
| <start ignored="true"/> | |
| <stop ignored="true"/> | |
| </bean> | |
| <!-- The core server --> | |
| <bean name="HornetQServer" class="org.hornetq.core.server.impl.HornetQServerImpl"> | |
| <constructor> | |
| <parameter> | |
| <inject bean="Configuration"/> | |
| </parameter> | |
| <parameter> | |
| <inject bean="MBeanServer"/> | |
| </parameter> | |
| <parameter> | |
| <inject bean="HornetQSecurityManager"/> | |
| </parameter> | |
| </constructor> | |
| <start ignored="true"/> | |
| <stop ignored="true"/> | |
| </bean> | |
| <!-- The Stand alone server that controls the jndi server--> | |
| <bean name="StandaloneServer" class="org.hornetq.jms.server.impl.StandaloneNamingServer"> | |
| <constructor> | |
| <parameter> | |
| <inject bean="HornetQServer"/> | |
| </parameter> | |
| </constructor> | |
| <property name="port">${jnp.port:11123}</property> | |
| <property name="bindAddress">${jnp.host:localhost}</property> | |
| <property name="rmiPort">${jnp.rmiPort:12123}</property> | |
| <property name="rmiBindAddress">${jnp.host:localhost}</property> | |
| </bean> | |
| <!-- The JMS server --> | |
| <bean name="JMSServerManager" class="org.hornetq.jms.server.impl.JMSServerManagerImpl"> | |
| <constructor> | |
| <parameter> | |
| <inject bean="HornetQServer"/> | |
| </parameter> | |
| </constructor> | |
| </bean> | |
| </deployment> |
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"> | |
| <paging-directory>${data.dir:../data}/paging</paging-directory> | |
| <bindings-directory>${data.dir:../data}/bindings</bindings-directory> | |
| <journal-directory>${data.dir:../data}/journal</journal-directory> | |
| <journal-min-files>10</journal-min-files> | |
| <large-messages-directory>${data.dir:../data}/large-messages</large-messages-directory> | |
| <connectors> | |
| <connector name="netty"> | |
| <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class> | |
| <param key="host" value="${hornetq.remoting.netty.host:localhost}"/> | |
| <param key="port" value="${hornetq.remoting.netty.port:5445}"/> | |
| </connector> | |
| <connector name="netty-throughput"> | |
| <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class> | |
| <param key="host" value="${hornetq.remoting.netty.host:localhost}"/> | |
| <param key="port" value="${hornetq.remoting.netty.batch.port:5455}"/> | |
| <param key="batch-delay" value="50"/> | |
| </connector> | |
| </connectors> | |
| <acceptors> | |
| <acceptor name="netty"> | |
| <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class> | |
| <param key="host" value="${hornetq.remoting.netty.host:localhost}"/> | |
| <param key="port" value="${hornetq.remoting.netty.port:5445}"/> | |
| </acceptor> | |
| <acceptor name="netty-throughput"> | |
| <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class> | |
| <param key="host" value="${hornetq.remoting.netty.host:localhost}"/> | |
| <param key="port" value="${hornetq.remoting.netty.batch.port:5455}"/> | |
| <param key="batch-delay" value="50"/> | |
| <param key="direct-deliver" value="false"/> | |
| </acceptor> | |
| </acceptors> | |
| <broadcast-groups> | |
| <broadcast-group name="bg-group1"> | |
| <group-address>231.7.7.7</group-address> | |
| <group-port>9876</group-port> | |
| <broadcast-period>5000</broadcast-period> | |
| <connector-ref>netty</connector-ref> | |
| </broadcast-group> | |
| </broadcast-groups> | |
| <discovery-groups> | |
| <discovery-group name="dg-group1"> | |
| <group-address>231.7.7.7</group-address> | |
| <group-port>9876</group-port> | |
| <refresh-timeout>10000</refresh-timeout> | |
| </discovery-group> | |
| </discovery-groups> | |
| <cluster-connections> | |
| <cluster-connection name="onyx-cluster"> | |
| <address>jms</address> | |
| <connector-ref>netty</connector-ref> | |
| <forward-when-no-consumers>false</forward-when-no-consumers> | |
| <discovery-group-ref discovery-group-name="dg-group1"/> | |
| </cluster-connection> | |
| </cluster-connections> | |
| <security-settings> | |
| <security-setting match="#"> | |
| <permission type="createNonDurableQueue" roles="guest"/> | |
| <permission type="deleteNonDurableQueue" roles="guest"/> | |
| <permission type="createDurableQueue" roles="guest"/> | |
| <permission type="deleteDurableQueue" roles="guest"/> | |
| <permission type="consume" roles="guest"/> | |
| <permission type="send" roles="guest"/> | |
| </security-setting> | |
| </security-settings> | |
| <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> | |
| <max-size-bytes>10485760</max-size-bytes> | |
| <page-size-bytes>40960</page-size-bytes> | |
| <redistribution-delay>100</redistribution-delay> | |
| <message-counter-history-day-limit>10</message-counter-history-day-limit> | |
| <address-full-policy>PAGE</address-full-policy> | |
| </address-setting> | |
| </address-settings> | |
| </configuration> |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <deployment xmlns="urn:jboss:bean-deployer:2.0"> | |
| <!-- MBean server --> | |
| <bean name="MBeanServer" class="javax.management.MBeanServer"> | |
| <constructor factoryClass="java.lang.management.ManagementFactory" | |
| factoryMethod="getPlatformMBeanServer"/> | |
| </bean> | |
| <!-- The core configuration --> | |
| <bean name="Configuration" class="org.hornetq.core.config.impl.FileConfiguration"> | |
| </bean> | |
| <!-- The security manager --> | |
| <bean name="HornetQSecurityManager" class="org.hornetq.spi.core.security.HornetQSecurityManagerImpl"> | |
| <start ignored="true"/> | |
| <stop ignored="true"/> | |
| </bean> | |
| <!-- The core server --> | |
| <bean name="HornetQServer" class="org.hornetq.core.server.impl.HornetQServerImpl"> | |
| <constructor> | |
| <parameter> | |
| <inject bean="Configuration"/> | |
| </parameter> | |
| <parameter> | |
| <inject bean="MBeanServer"/> | |
| </parameter> | |
| <parameter> | |
| <inject bean="HornetQSecurityManager"/> | |
| </parameter> | |
| </constructor> | |
| <start ignored="true"/> | |
| <stop ignored="true"/> | |
| </bean> | |
| <!-- The Stand alone server that controls the jndi server--> | |
| <bean name="StandaloneServer" class="org.hornetq.jms.server.impl.StandaloneNamingServer"> | |
| <constructor> | |
| <parameter> | |
| <inject bean="HornetQServer"/> | |
| </parameter> | |
| </constructor> | |
| <property name="port">${jnp.port:11124}</property> | |
| <property name="bindAddress">${jnp.host:localhost}</property> | |
| <property name="rmiPort">${jnp.rmiPort:12124}</property> | |
| <property name="rmiBindAddress">${jnp.host:localhost}</property> | |
| </bean> | |
| <!-- The JMS server --> | |
| <bean name="JMSServerManager" class="org.hornetq.jms.server.impl.JMSServerManagerImpl"> | |
| <constructor> | |
| <parameter> | |
| <inject bean="HornetQServer"/> | |
| </parameter> | |
| </constructor> | |
| </bean> | |
| </deployment> |
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"> | |
| <paging-directory>${data.dir:../data}/paging</paging-directory> | |
| <bindings-directory>${data.dir:../data}/bindings</bindings-directory> | |
| <journal-directory>${data.dir:../data}/journal</journal-directory> | |
| <journal-min-files>10</journal-min-files> | |
| <large-messages-directory>${data.dir:../data}/large-messages</large-messages-directory> | |
| <connectors> | |
| <connector name="netty"> | |
| <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class> | |
| <param key="host" value="${hornetq.remoting.netty.host:localhost}"/> | |
| <param key="port" value="${hornetq.remoting.netty.port:5447}"/> | |
| </connector> | |
| <connector name="netty-throughput"> | |
| <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class> | |
| <param key="host" value="${hornetq.remoting.netty.host:localhost}"/> | |
| <param key="port" value="${hornetq.remoting.netty.batch.port:5457}"/> | |
| <param key="batch-delay" value="50"/> | |
| </connector> | |
| </connectors> | |
| <acceptors> | |
| <acceptor name="netty"> | |
| <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class> | |
| <param key="host" value="${hornetq.remoting.netty.host:localhost}"/> | |
| <param key="port" value="${hornetq.remoting.netty.port:5447}"/> | |
| </acceptor> | |
| <acceptor name="netty-throughput"> | |
| <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class> | |
| <param key="host" value="${hornetq.remoting.netty.host:localhost}"/> | |
| <param key="port" value="${hornetq.remoting.netty.batch.port:5457}"/> | |
| <param key="batch-delay" value="50"/> | |
| <param key="direct-deliver" value="false"/> | |
| </acceptor> | |
| </acceptors> | |
| <broadcast-groups> | |
| <broadcast-group name="bg-group1"> | |
| <group-address>231.7.7.7</group-address> | |
| <group-port>9876</group-port> | |
| <broadcast-period>5000</broadcast-period> | |
| <connector-ref>netty</connector-ref> | |
| </broadcast-group> | |
| </broadcast-groups> | |
| <discovery-groups> | |
| <discovery-group name="dg-group1"> | |
| <group-address>231.7.7.7</group-address> | |
| <group-port>9876</group-port> | |
| <refresh-timeout>10000</refresh-timeout> | |
| </discovery-group> | |
| </discovery-groups> | |
| <cluster-connections> | |
| <cluster-connection name="onyx-cluster"> | |
| <address>jms</address> | |
| <connector-ref>netty</connector-ref> | |
| <forward-when-no-consumers>false</forward-when-no-consumers> | |
| <discovery-group-ref discovery-group-name="dg-group1"/> | |
| </cluster-connection> | |
| </cluster-connections> | |
| <security-settings> | |
| <security-setting match="#"> | |
| <permission type="createNonDurableQueue" roles="guest"/> | |
| <permission type="deleteNonDurableQueue" roles="guest"/> | |
| <permission type="createDurableQueue" roles="guest"/> | |
| <permission type="deleteDurableQueue" roles="guest"/> | |
| <permission type="consume" roles="guest"/> | |
| <permission type="send" roles="guest"/> | |
| </security-setting> | |
| </security-settings> | |
| <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> | |
| <max-size-bytes>10485760</max-size-bytes> | |
| <page-size-bytes>40960</page-size-bytes> | |
| <redistribution-delay>100</redistribution-delay> | |
| <message-counter-history-day-limit>10</message-counter-history-day-limit> | |
| <address-full-policy>PAGE</address-full-policy> | |
| </address-setting> | |
| </address-settings> | |
| </configuration> |
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
| //Version: HornetQ 2.4.0-Final | |
| //OS: OS X 10.9.2 | |
| group-adress = "231.7.7.7"; | |
| group-port = 9876; | |
| refresh = 5000; | |
| timeout = 5000; | |
| udp = new (UDPBroadcastGroupConfiguration group-address, group-port, null, -1); | |
| gdc = new (DiscoveryGroupConfiguration cluster-name, refresh, timeout, udp); | |
| locator = HornetQ.createServerLocatorWithHA(gdc); | |
| locator.setConsumerWindowSize(0); | |
| locator.createSessionFactory(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment