Note When spring integrates Redis and JMS

Source: Internet
Author: User
Tags redis

Exception Information:
Exception is Java.lang.IllegalStateException:Cannot convert value of type [ Org.springframework.data.redis.connection.jedis.JedisConnectionFactory] to required type [ Javax.jms.ConnectionFactory] for property ' connectionfactory ': no matching editors or conversion strategy found

Because the project needs to integrate Redis and JMS, when the start times are wrong. It is suggested that the interface to implement the class implementation is wrong. But it's strange why Redis is related to JMS interfaces. Later, the following configuration files have been found, to find the problem.

cause of error : When spring integrates Redis and JMS, it has its associated configuration file. Xml. My problem is that the connection factory ID for both profiles is the default connectionfactory, which will cause an error when it starts

Workaround:

The configuration on the connection factory ID is combined with the respective characters, Redisconnectionfactory,jmsconnectionfactory. So there's no conflict.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.