You can define more than one broker in a broker xml file, but the result is one JVM hosting multiple brokers. Below is a very simple example that I deployed against AMQ 5.0.
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:amq="http://activemq.org/config/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://activemq.org/config/1.0 http://activemq.apache.org/schema/activemq-core.xsd http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd"> <!-- Allows us to use system properties as variables in this configuration file --> <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> <broker brokerName="broker1" xmlns="http://activemq.org/config/1.0"> <!-- The transport connectors ActiveMQ will listen to --> <transportConnectors> <transportConnector name="openwire1" uri="tcp://localhost:61616?wireFormat.maxInactivityDuration=0" discoveryUri="multicast://default"/> </transportConnectors> <!-- The store and forward broker networks ActiveMQ will listen to --> <networkConnectors> <networkConnector name="default-nc1" uri="multicast://default"/> </networkConnectors> <!-- Use the following to configure how ActiveMQ is exposed in JMX --> <managementContext> <managementContext connectorPort="1299" jmxDomainName="org.apache.activemq"/> </managementContext> </broker> <broker brokerName="broker2" xmlns="http://activemq.org/config/1.0"> <!-- The transport connectors ActiveMQ will listen to --> <transportConnectors> <transportConnector name="openwire2" uri="tcp://localhost:61617?wireFormat.maxInactivityDuration=0" discoveryUri="multicast://default"/> </transportConnectors> <!-- The store and forward broker networks ActiveMQ will listen to --> <networkConnectors> <networkConnector name="default-nc2" uri="multicast://default"/> </networkConnectors> <!-- Use the following to configure how ActiveMQ is exposed in JMX --> <managementContext> <managementContext connectorPort="1399" jmxDomainName="org.apache.activemq"/> </managementContext> </broker> </beans> Joe joe.stapleton wrote: > > Hi, > > I have a requirement to enforce the use of SSL over a subset of our > destinations - ones that carry sensitive data. I have been through the SSL > documentation but I can't see a mechanism for specifying that a particular > destination must be accessed over a particular transport. > > I suppose we could solve this by running two seperate broker clusters one > with just an ssl transport, one for open, but I'd like to avoid this if > possible to avoid duplicating shared configuration. If we do need two > brokers is it possible to define them both in the same xml config? > > Thanks in advance, > > Joe > -- View this message in context: http://www.nabble.com/Secure-a-subset-of-destinations-tp14435506s2354p14437536.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.