0 Replies Latest reply on Oct 11, 2011 8:23 AM by slava_schmidt

    connector configuration with JBossAS 6.1.0 within EAR

    slava_schmidt

      I'm used to deploy my topics and queues as described here. It works just perfect. Now i must use SSL encryption for messages so i need to configure keystores. Moreover, the stories need to be configured on app basis, that is one store for each ear. Seemingly, the HornetQConfigParserDeployer should be able to parse the hornetq-configuration.xml included in the ear and to add defined connectors etc. But the connections defined in the configuration are not visible to the ConnectionFactory defined in the hornetq-jms.xml. Connections defined within other ear are not visible either. I'm suspicios that the deployment order just wrong, but havent tested it. Has anybody figured out how to define both jms objects and hornetq connectors in the same ear? Here is my configuration:

       

      hornetq-configuration.xml:

       

       

      {code:xml}

      <configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-configuration.xsd">

       

          <!-- Connectors -->

          <connectors>

              <connector name="netty-ssl-connector">

                  <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>

                  <param key="host" value="${jboss.bind.address:localhost}"/>

                  <param key="port" value="${hornetq.remoting.netty.port:5500}"/>

                  <param key="ssl-enabled" value="true"/>

                  <param key="key-store-path" value="${profile.store.path}/ss_client_key.jks"/>

                  <param key="key-store-password" value="${profile.store.pass.key}"/>

              </connector>

          </connectors>

      </configuration>

      {code}


      hornetq-jms.xml:

      {code:xml}

      <configuration xmlns="urn:hornetq"

                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                     xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">

       

          <connection-factory name="SslConnectionFactory">

              <connectors>

                  <connector-ref connector-name="netty-ssl-connector"/>

              </connectors>

              <entries>

                  <entry name="SslConnectionFactory"/>

              </entries>

          </connection-factory>

       

          <connection-factory name="CF_${profile.datasource.name}">

              <xa>true</xa>

              <connectors>

                  <connector-ref connector-name="in-vm"/>

              </connectors>

              <entries>

                  <entry name="/jms/topic_connection_factory/${profile.datasource.name}"/>

                  <entry name="/jms/queue_connection_factory/${profile.datasource.name}"/>

              </entries>

          </connection-factory>

       

          <!-- Queues -->

         <queue name="${profile.datasource.name}.COMMANDS">

              <entry name="/jms/queue/commands/${profile.datasource.name}"/>

          </queue>

       

          <queue name="${profile.datasource.name}.STATUS">

              <entry name="/jms/queue/status/${profile.datasource.name}"/>

          </queue>

       

          <!-- Topics -->

          <topic name="${profile.datasource.name}.QUERIES">

              <entry name="/jms/topic/queries/${profile.datasource.name}"/>

          </topic>

       

      </configuration>

      {code}