Cannot convert value of type com solacesystems jms impl SolQueueImpl

Cannot convert value of type com solacesystems jms impl SolQueueImpl

Cannot convert value of type [com.solacesystems.jms.impl.SolQueueImpl] to required type [javax.jms.ConnectionFactory] for property ‘targetConnectionFactory’: no matching editors or conversion strategy found

Solution: You get this exception while trying to integrate Solace with Spring using JMS. This happens if you use JNDI name in place of JMS-Persistent Connection Factory. If you are not sure then visit my this tutorial. But little more details here:

First either you or your company administrator on-board Solace VPN they will send you all information something as below:

  • VPNName
  • MessagingURL
  • JMS-Persistent Connection Factory(Window size 1) – Use this in place of JNDI name for Queue
  • JMS-NonPersistent Connection Factory(Window size 255)
  • JMS-Direct Connection Factory(direct-no Ack back) – Use this in place of JNDI name for Topic

And once VPN creation is done then you could create your own queue. During creation of the queue you provide JNDI name as well so don’t get confuse while using Spring JMS or directly JMS and use JNDI name. Use JMS-Persistent Connection Factory. If you are suing topic then use JMS-Direct Connection Factory.

Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *