Announcement Announcement Module
Collapse
No announcement yet.
Spring JMS configure problems(PooledConnectionFactory) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring JMS configure problems(PooledConnectionFactory)

    use PooledConnectFactory to configure ActiveMQConnectionFactory
    Code:
      <bean id="jmsFactory"  class="org.apache.activemq.pool.PooledConnectionFactory" destroy-method="stop">
        <property name="connectionFactory">
          <bean class="org.apache.activemq.ActiveMQConnectionFactory">
            <property name="brokerURL">
              <value>tcp://localhost:61616</value>
            </property>
          </bean>
        </property>
      </bean>
    Here is error message:
    Code:
    Neither XML 'id' nor 'name' specified - using generated bean name [org.apache.activemq.ActiveMQConnectionFactory#12a55aa]
    Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unnamed bean definition specifies neither 'class' nor 'parent' nor 'factory-bean' - can't generate bean name
    Offending resource: class path resource [applicationContext-sender.xml]
    when I use without PooledConnectionFactory. Configuration here:
    Code:
          <bean id="jmsFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
            <property name="brokerURL">
              <value>tcp://localhost:61616</value>
            </property>
          </bean>
    it works.
    Do I lost something to configuration? Sorry for my poor English!
Working...
X