Announcement Announcement Module
Collapse
No announcement yet.
Problem activemq 5.5.0 with spring-integration 2.0.3.RELEASE, not receive message Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem activemq 5.5.0 with spring-integration 2.0.3.RELEASE, not receive message

    I have problem with activemq 5.5.0 with spring-integration 2.0.3.RELEASE.
    My pom.xml is:

    Code:
    <properties>
           <spring.integration.version>2.0.3.RELEASE</spring.integration.version>
            <activemq.version>5.5.0</activemq.version>
    </properties>
    
    <dependencies>
    <dependency>
                <groupId>org.apache.activemq</groupId>
                <artifactId>activemq-core</artifactId>
                <version>${activemq.version}</version>
            </dependency>
    
            <dependency>
                <groupId>org.springframework.integration</groupId>
                <artifactId>spring-integration-jms</artifactId>
                <version>${spring.integration.version}</version>
            </dependency>
    
            <dependency>
                <groupId>org.springframework.integration</groupId>
                <artifactId>spring-integration-stream</artifactId>
                <version>${spring.integration.version}</version>
            </dependency>
    
            <dependency>
                <groupId>org.springframework.integration</groupId>
                <artifactId>spring-integration-ip</artifactId>
                <version>${spring.integration.version}</version>
            </dependency>
    </dependencies>

    And my integration.xml is:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:integration="http://www.springframework.org/schema/integration"
           xmlns:ip="http://www.springframework.org/schema/integration/ip"
           xmlns:stream="http://www.springframework.org/schema/integration/stream"
           xmlns:jms="http://www.springframework.org/schema/integration/jms"
           xsi:schemaLocation="
                http://www.springframework.org/schema/beans
                http://www.springframework.org/schema/beans/spring-beans.xsd
                http://www.springframework.org/schema/integration/stream
    			http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd
                http://www.springframework.org/schema/integration
                http://www.springframework.org/schema/integration/spring-integration-2.0.xsd
                http://www.springframework.org/schema/integration/ip
                http://www.springframework.org/schema/integration/ip/spring-integration-ip-2.0.xsd
                http://www.springframework.org/schema/integration/jms
                http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd">
    
    
        
        
        <!-- Beans -->
    
        <bean id="transformerUDP" class="cl.rastreosat.lite.homologador.transformer.TramaTransformer"/>
    
    
        <!-- Canales de Spring-Integration -->
        <integration:channel id="EntradaUDP"/>
    
        <integration:channel id="toActiveMQ"/>
    
        <integration:channel id="fromActiveMQ"/>
    
        <!-- Adaptadores -->
    
        <ip:udp-inbound-channel-adapter id="udpReciver"
                                        channel="EntradaUDP"
                                        port="1720"
                                        multicast="false"
                                        check-length="false"/>
    
        <!-- Transformers  -->
    
        <integration:transformer id="transformadorTrama"
                                 input-channel="EntradaUDP"
                                 output-channel="toActiveMQ"
                                 ref="transformerUDP"
                                 method="transform"/>
    
    
        <jms:outbound-channel-adapter id="jmsout"
                                      channel="toActiveMQ"
                                      destination="requestQueue"/>
    
        <bean id="requestQueue" class="org.apache.activemq.command.ActiveMQQueue">
            <constructor-arg value="TRAMAS"/>
        </bean>
    
        <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
            <property name="brokerURL" value="tcp://localhost:61616"/>
        </bean>
    
        <!-- Salida -->
    
        <jms:message-driven-channel-adapter id="jmsin"
                                            destination="requestQueue"
                                            channel="jmsinToStdoutChannel"/>
    
        <integration:channel id="jmsinToStdoutChannel"/>
    
    
        <bean id="reciveBean" class="cl.rastreosat.lite.homologador.outbound.ReciveObject"/>
    
        <integration:outbound-channel-adapter id="salidaBean"
                                              channel="jmsinToStdoutChannel"
                                              ref="reciveBean"
                                              method="recive"/>
    
    
    </beans>


    With this configuration my aplication not receive data from broker.

    But, if i change to version 5.2.0 , all working.

    activemq version 5.5.0 isn't support by spring-integration 2.0.3.RELEASE?


    Thanks

  • #2
    I do encounter the same problem, but even at the setup time. I cannot configure my pom.xml to use activemq-5.5.0 because all my artifact appear "missing". I don't have this problem with activemq-5.2.0

    28/06/11 14:29:40 CEST: Refreshing [/com.company.integration.project/pom.xml]
    28/06/11 14:29:41 CEST: Missing artifact com.sun.xml.bind:jaxb-xjc:jar:2.2.2:compile
    28/06/11 14:29:41 CEST: Missing artifact com.sun.xml.bind:jaxb-impl:jar:2.2.2:compile
    28/06/11 14:29:41 CEST: Missing artifact javax.xml.bind:jaxb-api:jar:2.2.2:compile
    28/06/11 14:29:41 CEST: Missing artifact javax.xml.stream:stax-api:jar:1.0-2:compile
    28/06/11 14:29:41 CEST: Missing artifact javax.activation:activation:jar:1.1:compile
    28/06/11 14:29:41 CEST: Missing artifact commons-dbcp:commons-dbcp:jar:1.4:compile
    28/06/11 14:29:41 CEST: Missing artifact commons-pool:commons-pool:jar:1.5.4:compile
    28/06/11 14:29:41 CEST: Missing artifact log4j:log4j:jar:1.2.14:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework:spring-context:jar:3.0.5.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework:spring-core:jar:3.0.5.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact commons-logging:commons-logging:jar:1.1.1:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework:spring-jdbc:jar:3.0.5.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework:spring-tx:jar:3.0.5.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework:spring-jms:jar:3.0.5.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact aopalliance:aopalliance:jar:1.0:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework:spring-oxm:jar:3.0.5.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework:spring-test:jar:3.0.5.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework.integration:spring-integration-file:jar:2.0.4.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework.integration:spring-integration-core:jar:2.0.4.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework.integration:spring-integration-jms:jar:2.0.4.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework.integration:spring-integration-xml:jar:2.0.4.RELEASE:compile
    28/06/11 14:29:41 CEST: Missing artifact org.springframework.ws:spring-xml:jar:1.5.9:compile
    28/06/11 14:29:41 CEST: Missing artifact org.apache.activemq:activemq-core:jar:5.5.0:compile
    28/06/11 14:29:41 CEST: Missing artifact org.slf4j:slf4j-api:jar:1.5.11:compile
    28/06/11 14:29:41 CEST: Missing artifact org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1:compile
    28/06/11 14:29:41 CEST: Missing artifact org.apache.activemq:activeio-core:jar:3.1.2:compile
    28/06/11 14:29:41 CEST: Missing artifact org.apache.activemq:kahadb:jar:5.5.0:compile
    28/06/11 14:29:41 CEST: Missing artifact org.osgi:org.osgi.core:jar:4.1.0:compile
    28/06/11 14:29:41 CEST: Missing artifact org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec:jar:1.0.1:compile
    28/06/11 14:29:41 CEST: Missing artifact commons-net:commons-net:jar:2.0:compile
    28/06/11 14:29:41 CEST: Maven Builder: AUTO_BUILD

    Comment


    • #3
      Try remake you local repository.
      This problem is because maven don't found the artifact or this was corruputed...

      Do you found the answer to my question??

      thanks!!

      =)

      Comment


      • #4
        I'll try to make it work with 5.2. When it works, I will try to upgrade to 5.5 and let you know if I find the explanation. I seems anyway there's a problem with 5.5 artifact (can't tell right now what is it).

        Comment


        • #5
          Well, I finally worked it out ! And "unfortunatly" for you, it's working for me with 5.2, 5.4 and 5.5, although 5.5 required some pom.xml changes:

          Code:
              <dependency>
              	<groupId>org.apache.activemq</groupId>
              	<artifactId>activemq-core</artifactId>
              	<version>5.5.0</version>
              </dependency>
              <dependency>
              	<groupId>org.apache.xbean</groupId>
              	<artifactId>xbean-spring</artifactId>
              	<version>3.7</version>
              </dependency>
              <dependency>
              	<groupId>org.slf4j</groupId>
              	<artifactId>slf4j-log4j12</artifactId>
              	<version>1.5.11</version>
              </dependency>
          Note that I'm working with integration-2.0.4, but I don't see related fix in JIRA or this project.

          I would suggest to you:
          * Activate logging on org.apache.activemq=DEBUG
          * Check with queue browser if you can find your message: http://sourceforge.net/projects/activemqbrowser/

          I also encounter problems with jms:inboud-channel-adapter that didn't fetch the message, while jms:message-driven-channel-adapter does it correctly.

          You can try to configure a poller inner "salidaBean"
          <poller fixed-rate="3000"/>

          I also fixed/understood some integration lock by sending the channel content to stdoud in order to understand if messages are transmitted to your channel or not.

          <stream:stdout-channel-adapter id="newlineAdapter" channel="testChannel"/>

          I also activated the logging on spring-jms:
          2011-06-30 16:17:13,295 [org.springframework.jms.listener.DefaultMessageLis tenerContainer]...

          This log a lot.

          Let me know if you find the something.

          Comment


          • #6
            please also note that ActiveMQ 5.5 upgraded to Camel 2.7 which drops support for JDK 1.5 and Spring Framework 2.x http://camel.apache.org/camel-270-release.html. You might be in such a case.

            Comment

            Working...
            X