Camel JGroups channel closed unexpectedly, leading to an exception
Issue
An application based on Apache Camel 2.13.0 or earlier uses a JGroups consumer and a JGroups producer, attached to the same JGroups channel. If the route containing the JGroups consumer is shut down progamatically, then the route containing the JGroups producer will fail, with the following exception:
java.lang.IllegalStateException: channel is disconnected
at org.jgroups.JChannel.checkClosedOrNotConnected(JChannel.java:919)
at org.jgroups.JChannel.send(JChannel.java:424)
This exception is raised despite the fact that a JGroups channel with only one node is perfectly viable.
Environment
- Apache Camel
- 2.13.0 or earlier
- Red Hat JBoss Fuse
- 6.1.0 or earlier
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.