简体   繁体   中英

Correct way to handle resources in Spring Jetty and Camel

I've a webapp (Jetty, Spring and Camel). Now I want to connect to a Redis (using Jedis) in my a Camel route. My question where (and when) should I create the Jedis pool and how can I get access to this pool in my Camel routes ? I was thinking about creating the pool in my Camel context XML. But I'm not sure how can I get access to this pool in my route (Java DSL).

您现在可以(从2.11版本开始)使用camel-redis从Redis发送和接收消息

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM