camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre HARDY <pha...@sopragroup.com>
Subject Problem using JmsCompoment with Tibco implementation
Date Thu, 08 Dec 2011 15:15:25 GMT
Hello,

I'm currently trying to get a JmsComponent
(org.apache.camel.component.jms.JmsComponent) to work with Tibco
implementation.

Starting from the documentation of JmsCompopent, i set up my context as
follow :

<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
        <property name="connectionFactory">
            <bean class="com.tibco.tibjms.TibjmsConnectionFactory">
                <property name="serverUrl" value="tcp://IP:PORT"/>
            </bean>
        </property>
    </bean>

and use it as follow :
<route>
            <!-- D├ępart de la file JMS du SE -->
            <from uri="jms:queue:MY_QUEUE" />
            <to
uri="log:routes?level=INFO&amp;showExchangeId=true&amp;showExchangePattern=false&amp;showBodyType=false"/>

</route>

But i got the following error :
Exception in thread "SpringOsgiExtenderThread-8"
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'jms' defined in URL
[bundleentry://329.fwk28036099/META-INF/spring/camel-context.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.ConversionNotSupportedException: Failed to
convert property value of type
'com.tibco.tibjms.TibjmsConnectionFactory' to required type
'javax.jms.ConnectionFactory' for property 'connectionFactory'; nested
exception is java.lang.IllegalStateException: Cannot convert value of
type [com.tibco.tibjms.TibjmsConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property 'connectionFactory': 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:291)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
    at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
    at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
    at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
    at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
    at java.lang.Thread.run(Thread.java:662)
Caused by: org.springframework.beans.ConversionNotSupportedException:
Failed to convert property value of type
'com.tibco.tibjms.TibjmsConnectionFactory' to required type
'javax.jms.ConnectionFactory' for property 'connectionFactory'; nested
exception is java.lang.IllegalStateException: Cannot convert value of
type [com.tibco.tibjms.TibjmsConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property 'connectionFactory': no
matching editors or conversion strategy found
    at
org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:462)
    at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:499)
    at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:493)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1371)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1330)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    ... 13 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type
[com.tibco.tibjms.TibjmsConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property 'connectionFactory': no
matching editors or conversion strategy found
    at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
    at
org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:447)
    ... 19 more

The com.tibco.tibjms.TibjmsConnectionFactory does implement the
I don't see what i'm doing the wrong way. Could you give me some help or
pointers ?

Thank you.

Mime
View raw message