0 Replies Latest reply on Aug 7, 2014 9:15 AM by thunderstorm

    Jboss eap 6.1alpha1hornetq with rest interface for push message from topic

    thunderstorm

      Hi,

      i configured one jboss eap 6.1 with a jms topic

      and by reading the hornetq documentation at : http://docs.jboss.org/hornetq/2.3.0.CR2/docs/user-manual/html/rest.html

      i made a web application for interact with hornetq module in jboss eap and it work.

       

      But the message are pushed only if i first register the subscription by url call eg:  http://localhost:8080/hornetq-rest/topics/jms.topic.topicName

      otherwise, messages remain in topic.

      is there a configuration in standalone or in the web application that do this automatically ?

       

      Recap of configuration:

       

      in web-app i've a file loaded at boot time:

       

      <rest-messaging>

          <server-in-vm-id>0</server-in-vm-id>

          <use-link-headers>false</use-link-headers>

          <default-durable-send>true</default-durable-send>

          <dups-ok>true</dups-ok>

          <topic-push-store-dir>C:\\Develop\\jboss-eap-6.1alpha\\standalone\\configuration\\hq-rs\\push-registration-topic</topic-push-store-dir>

          <queue-push-store-dir>C:\\Develop\\jboss-eap-6.1alpha\\standalone\\configuration\\hq-rs\\push-registration-queue</queue-push-store-dir>

          <producer-time-to-live>0</producer-time-to-live>

          <producer-session-pool-size>10</producer-session-pool-size>

          <session-timeout-task-interval>1</session-timeout-task-interval>

          <consumer-session-timeout-seconds>300</consumer-session-timeout-seconds>

          <consumer-window-size>-1</consumer-window-size>

      </rest-messaging>

       

      in C:\\Develop\\jboss-eap-6.1alpha\\standalone\\configuration\\hq-rs\\push-registration-topic i've a conf.xml :

       

      <push-topic-registration id="messagequeuereceiverID">

         <destination>messagereceiver</destination>

         <durable>true</durable>

         <link rel="template" href="http://127.0.0.1:8080/messagereceiver/message/receive" method="POST"/>

         <topic>jms.topic.topicpipe</topic>

         <maxRetries>5</maxRetries>

         <retryWaitMillis>1000</retryWaitMillis>  

      </push-topic-registration>