Hi,

I am working on a standalone app which consumes messages from Remote EMS Tibco Topic .The standalone app is running on jboss-soe-5.1.1 and jre 1.6.

It uses Spring's MDP (Message Driven Pojo) as Message Listener, initialized by Spring DefaultMessageListenerContainer (DMLC) to listen to Messages on EMS TIBCO Topic configured on TIBCO JNDI Server.

When the Web Container is up, DMLC fails to load with the below error

[DispatcherServlet] Context initialization failed
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'defineSearchContainer' defined: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedEx ception: Failed to convert property value of type 'com.tibco.tibjms.naming.TibjmsFederatedTopic' to required type 'javax.jms.Destination' for property 'destination'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.tibco.tibjms.naming.TibjmsFederatedTopic] to required type [javax.jms.Destination] for property 'destination': no matching editors or conversion strategy found
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
..
..



I am using following snippet in my Spring Configuration file to load DMLC

<bean id="defineSearchContainer" class="org.springframework.jms.listener.DefaultMes sageListenerContainer">
<property name="connectionFactory" ref="ConnectFactory" />
<property name="destination" ref="gsaDefineSearchDestination"/>
<property name="messageListener" ref="Listener" />
</bean>


where gsaDefineSearchDestination is an object of Topic[com.tibco.tibjms.naming.TibjmsFederatedTopic] created using Topic name defined in EMS Tibco JNDI Server.

ConnectFactory is created using Tibco JNDI name configured with Jboss JNDI


I have added all the required Tibco jars (eg. tibjms.jar etc) to application's classpath as well as Jboss classpath. I could not understand why the DMLC fails to convert 'com.tibco.tibjms.naming.TibjmsFederatedTopic' to required type 'javax.jms.Destination' , when TibjmsFederatedTopic is actually a type of "javax.jms.Desination" object.

I would appreciate, if anyone has come across this error and also have a solution?

Regards