Announcement Announcement Module
Collapse
No announcement yet.
JMS listener Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JMS listener

    Hello

    I was trying to make a jms listener on a queue using this article as a template

    http://stsmedia.net/introducing-spri...email-support/

    But it seems a lot has change and I can't get it to work.
    it seems that
    roo> install jms -provider ACTIVEMQ_IN_MEMORY -destinationType TOPIC -destinationName securityAlerts
    has change to jms setup provider ...
    and
    add field jms template -class ~.security.BackendAccessListener
    change to
    field jms template -class ~.security.BackendAccessListener

    and then I am having trouble figuring it out.

    Any help appreciated.

    Regards
    Carsten

  • #2
    Looks like it can't find
    org.springframework.jms.core.JmsTemplate

    /Carsten

    Comment


    • #3
      When you setup JMS it adds a few new dependencies to your pom.xml:

      Code:
      		<dependency org="org.springframework" name="org.springframework.beans" rev="${spring.version}" />
      		<dependency org="org.springframework" name="org.springframework.jms" rev="${spring.version}" />
      		<dependency org="javax.jms" name="com.springsource.javax.jms" rev="1.1.0" />
      It's therefore necessary to run "mvn eclipse:clean eclipse:eclipse" to cause the .classpath file used by Eclipse to be updated. If you're using Roo RC4, you can simply type "perform eclipse" at the roo> prompt and it will do this for you automatically.

      BTW the command names are now "jms setup", "jms listener class" and "field jms template".

      HTH
      Ben

      Comment


      • #4
        thanks that sorted it out for me.

        Comment


        • #5
          Glad Ben's suggestion helped you. I should probably update my blog post to reflect the command changes.

          Comment

          Working...
          X