Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-4189

PooledConnectionFactory with JmsTemplate results in MalformedParameterizedTypeException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.7.0
    • None
    • Pool
    • None
    • Tomcat 7.0.27
      Spring 3.1.2

    Description

      <!-- JMS ConnectionFactory to use, configuring the embedded broker using XML -->
      <amq:connectionFactory id="jmsFactory" brokerURL="vm://localhost"/>

      <!-- Spring JMS Template -->
      <bean id="myJmsTemplate" class="org.springframework.jms.core.JmsTemplate">
      <property name="connectionFactory">
      <!-- lets wrap in a pool to avoid creating a connection per send -->
      <bean class="org.springframework.jms.connection.SingleConnectionFactory">
      <property name="targetConnectionFactory">
      <ref local="jmsFactory" />
      </property>
      </bean>
      </property>
      </bean>

      here if we use org.apache.activemq.pool.PooledConnectionFactory instead of org.springframework.jms.connection.SingleConnectionFactory,

      we are receiving org.springframework.beans.factory.BeanCreationException: Initialization of bean failed; nested exception is java.lang.reflect.MalformedParameterizedTypeException

      We got this when we upgraded from ActiveMQ 5.4 to 5.7

      Attachments

        1. ConnectionPoolTest.java
          0.6 kB
          Pragadeesh Prakasam
        2. jms-local-test.xml
          2 kB
          Pragadeesh Prakasam

        Activity

          People

            Unassigned Unassigned
            pragadeesh Pragadeesh Prakasam
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: