Skip to end of metadata
Go to start of metadata
  • No labels

2 Comments

  1. This is my first time putting BTM into development with Spring and got some trouble.

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

        <bean id="jmsConnectionFactory" class="bitronix.tm.resource.jms.PoolingConnectionFactory"
            init-method="init" destroy-method="close" lazy-init="false">
            <property name="className"
                value="org.apache.activemq.ActiveMQXAConnectionFactory" />
            <property name="uniqueName" value="activemq999" />
            <property name="maxPoolSize" value="3" />
            <property name="driverProperties">
                <props>
                    <prop key="brokerURL">tcp://nlhkapp01:61616</prop>
                    <prop key="userName">user</prop>
                    <prop key="password">password</prop>
                </props>
            </property>
        </bean>

        <bean lazy-init="false"
            class="org.springframework.jms.listener.DefaultMessageListenerContainer">
            <property name="connectionFactory">
                <ref local="jmsConnectionFactory" />
            </property>
            <property name="destinationName" value="TTTTTT" />
        </bean>

    </beans>

    I keep getting JMS failure message & here is the log

    2009-05-08 02:40:16,988 INFO  [main] support.ClassPathXmlApplicationContext (AbstractApplicationContext:411) - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1546e25: display name [org.springframework.context.support.ClassPathXmlApplicationContext@1546e25]; startup date [Fri May 08 02:40:16 GMT 2009]; root of context hierarchy
    2009-05-08 02:40:17,066 INFO  [main] xml.XmlBeanDefinitionReader (XmlBeanDefinitionReader:323) - Loading XML bean definitions from class path resource [applicationContext.xml]
    2009-05-08 02:40:17,191 INFO  [main] support.ClassPathXmlApplicationContext (AbstractApplicationContext:426) - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@1546e25]: org.springframework.beans.factory.support.DefaultListableBeanFactory@641e9a
    2009-05-08 02:40:17,222 INFO  [main] support.DefaultListableBeanFactory (DefaultListableBeanFactory:414) - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@641e9a: defining beans [griffin-jmsConnectionFactory,org.springframework.jms.listener.DefaultMessageListenerContainer#0]; root of factory hierarchy
    2009-05-08 02:40:22,738 INFO  [org.springframework.jms.listener.DefaultMessageListenerContainer#0-1] listener.DefaultMessageListenerContainer (DefaultMessageListenerContainer:750) - Setup of JMS message listener invoker failed for destination 'TTTTTT' - trying to recover. Cause: error enlisting a MessageConsumerWrapper of a DualSessionWrapper in state ACCESSIBLE of a JmsPooledConnection of pool activemq999 in state ACCESSIBLE with underlying connection ActiveMQConnection

    Unknown macro: {id=ID}

    with 1 opened session(s)
    2009-05-08 02:40:22,738 INFO  [org.springframework.jms.listener.DefaultMessageListenerContainer#0-1] listener.DefaultMessageListenerContainer (DefaultMessageListenerContainer:791) - Successfully refreshed JMS Connection
    2009-05-08 02:40:27,753 INFO  [org.springframework.jms.listener.DefaultMessageListenerContainer#0-2] listener.DefaultMessageListenerContainer (DefaultMessageListenerContainer:750) - Setup of JMS message listener invoker failed for destination 'TTTTTT' - trying to recover. Cause: error enlisting a MessageConsumerWrapper of a DualSessionWrapper in state ACCESSIBLE of a JmsPooledConnection of pool activemq999 in state ACCESSIBLE with underlying connection ActiveMQConnection

    Unknown macro: {id=ID}

    with 1 opened session(s)
    2009-05-08 02:40:27,753 INFO  [org.springframework.jms.listener.DefaultMessageListenerContainer#0-2] listener.DefaultMessageListenerContainer (DefaultMessageListenerContainer:791) - Successfully refreshed JMS Connection
    2009-05-08 02:40:32,753 INFO  [org.springframework.jms.listener.DefaultMessageListenerContainer#0-3] listener.DefaultMessageListenerContainer (DefaultMessageListenerContainer:750) - Setup of JMS message listener invoker failed for destination 'TTTTTT' - trying to recover. Cause: error enlisting a MessageConsumerWrapper of a DualSessionWrapper in state ACCESSIBLE of a JmsPooledConnection of pool activemq999 in state ACCESSIBLE with underlying connection ActiveMQConnection

    Unknown macro: {id=ID}

    with 1 opened session(s)

    I am not sure it is the right place the post question & please forget it if not so.

  2. The support mailing list (http://www.nabble.com/Bitronix-Transaction-Manager-f25701.html) actually is the right place for such question.