Atomikos Forum

Connection factory for tibco EMS 5.1

I am trying to configure atomikos in my spring application. i am using

atomikos 3.7.1 TransactionsEssentials
Spring 3.0.2
Tibco ems 5.1

Can some one give me the configuration details for the connection factory using Jndi for JMS?

I had tried the following
<bean id="jmsTemplate2" class="org.springframework.jms.core.JmsTemplate" >
        <property name="connectionFactory" ref="amqConnectionFactory" />
        <property name="defaultDestination" ref="queue" />
        <property name="sessionTransacted" value="true"/>
        <property name="messageConverter" ref="messageConverter"></property>
    </bean>
    <bean id="amqConnectionFactory" class="com.atomikos.jms.AtomikosConnectionFactoryBean"    init-method="init">
        <property name="uniqueResourceName" value="XAEMS" />
        <property name="xaConnectionFactory" ref="connectionFactory" />
        <property name="poolSize" value="10" />
    </bean>
    <!-- <bean id="cachingcf" class="org.springframework.jms.connection.CachingConnectionFactory">
        <constructor-arg ref="connectionFactory"></constructor-arg>
    </bean> -->


    
    <jee:jndi-lookup id="connectionFactory" jndi-name="emsConnectionFactory">
        <jee:environment>
            java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory
            java.naming.provider.url=tibjmsnaming://localhost:7222
        </jee:environment>
    </jee:jndi-lookup>

    <jee:jndi-lookup id="queue" jndi-name="emsQueue">
        <jee:environment>
            java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory
            java.naming.provider.url=tibjmsnaming://localhost:7222
        </jee:environment>
    </jee:jndi-lookup>

but got error

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'amqConnectionFactory' defined in file [C:\springsource\vfabric-tc-server-developer-2.6.4.RELEASE\spring-insight-instance\wtpwebapps\iRebal-Backend-Poc-Web-Integration-Final-xa\WEB-INF\classes\META-INF\spring\batch\jobs\priority-queue.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.tibco.tibjms.naming.TibjmsFederatedQueueConnectionFactory' to required type 'javax.jms.XAConnectionFactory' for property 'xaConnectionFactory'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.tibco.tibjms.naming.TibjmsFederatedQueueConnectionFactory] to required type [javax.jms.XAConnectionFactory] for property 'xaConnectionFactory': no matching editors or conversion strategy found
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    ... 39 more
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.tibco.tibjms.naming.TibjmsFederatedQueueConnectionFactory' to required type 'javax.jms.XAConnectionFactory' for property 'xaConnectionFactory'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.tibco.tibjms.naming.TibjmsFederatedQueueConnectionFactory] to required type [javax.jms.XAConnectionFactory] for property 'xaConnectionFactory': no matching editors or conversion strategy found
    at org.springframework.beans.BeanWrapperImpl


Any pointers would be of great help.
shashikanth bhandary Send private email
Monday, April 23, 2012
 
 
Missed a part of stack trace. here it is.
Caused by: java.lang.IllegalStateException: Cannot convert value of type [com.tibco.tibjms.naming.TibjmsFederatedQueueConnectionFactory] to required type [javax.jms.XAConnectionFactory] for property 'xaConnectionFactory': no matching editors or conversion strategy found
    at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:233)
    at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:466)
    ... 51 more
xaConnectionFactory': no matching editors or conversion strategy found
    at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:481)
    at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:518)
shashikanth bhandary Send private email
Monday, April 23, 2012
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics