2 Replies Latest reply on Feb 10, 2011 9:09 PM by njiang

    How to consume/provide messages to OpenMQ

    dongmeic

      I'm pretty new to FUSE/ServiceMix. I try to prototype how to consume/provide messages from/to OpenMQ. Here is what I have in the xbean.xml and I'm getting the following exceptions when startup the ServiceMix. Why can't it convert om.sun.messaging.QueueConnectionFactory to javax.jms.ConnectionFactory? What am I missing? Thanks for any help in advance!

       

      .........

       

      ............

       

      -


       

      Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type to required type for property 'connectionFactory'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type to required type for property 'connectionFactory': no matching editors or conversion strategy found

           at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)

           ... 27 more

      Caused by: java.lang.IllegalArgumentException: Cannot convert value of type to required type for property 'connectionFactory': no matching editors or conversion strategy found

           at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)

           at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)

           at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)