Execution of JMS message listener failed, and no ErrorHandler has been set

There is a property on AbstractMessageListenerContainer: <bean id=”listener” class=”org.springframework.jms.listener.DefaultMessageListenerContainer”> <property name=”errorHandler” ref=”someHandler”/> <property name=”destinationName” value=”someQueue”/> <property name=”connectionFactory” ref=”connectionFactory”/> </bean> Where someHandler is a bean implementing ErrorHandler: @Service public class SomeHandler implements ErrorHandler { @Override public void handleError(Throwable t) { log.error(“Error in listener”, t); } } However note that according to the documentation: The default behavior … Read more

How to use Java JMS with MQseries

The issue here is the requirement that “My boss asked me to use pure java JMS (not ibm.mq lib) to do that.” JMS is a specification and each implementation must comply with the API and the semantics, but is free to do whatever they want at a low level. It is always necessary to use … Read more

Monitoring UI for Apache kafka – kafka manager vs kafka monitor [closed]

Lenses Lenses (ex Landoop) enhances Kafka with User Interface, streaming SQL engine and cluster monitoring. It enables faster monitoring of Kafka data pipelines. They provide a free all-in-one docker (Lenses Box) which can serve a single broker for up to 25M messages. Note that this is recommended for development environments. Cloudera SMM Streams Messaging Manager … Read more

JMS AUTO_ACKNOWLEDGE when is it acknowledged?

Please check this one (Wayback Machine link used as article went offline since 2020) With AUTO_ACKNOWLEDGE mode the acknowledgment is always the last thing to happen implicitly after the onMessage() handler returns. The client receiving the messages can get finer-grained control over the delivery of guaranteed messages by specifying the CLIENT_ACKNOWLEDGE mode on the consuming … Read more

java.net maven repo – JMS artifact missing

Realizing that the Sun’s JARs are not on Maven central due to licensing issues, I added the following Maven repo to my POM Yeah, but http://download.java.net/maven/2/javax/ doesn’t have the jms artifact… The good news is that the JBoss Nexus repository does have it: <repository> <id>repository.jboss.org-public</id> <name>JBoss repository</name> <url>https://repository.jboss.org/nexus/content/groups/public</url> </repository>

No adapter for endpoint; Is your endpoint annotated with @Endpoint, or does it implement a supported interface like MessageHandler or PayloadEndpoint?

I had a similar error message. My problem was in request and response class that I generated from XSD. It missed @XMLRootElement annotation. This caused that description of operation (in WSDL) and description of implemented method (in Endpoint) did not match. Adding JAXBElement to my endpoint method solved my problem. import javax.xml.bind.JAXBElement; @PayloadRoot(namespace = “http://foo.bar/books”, … Read more

Middleware & SOA by Example

SOA main principles: Build systems as set of services where each service is Coarse-grained Interoperable Loosely coupled A company offers a lot of business services (coarse-grained) developed over many years and exposed to the users (human or other systems) in some form. There are more chances that each of these features have been designed and … Read more

What is Java Message Service (JMS) for?

JMS is an amazingly useful system, but not for every purpose. It’s essentially a high-level framework for sending messages between nodes, with options for discovery, robustness, etc. One useful use case is when you want a client and a server to talk to one another, but without the client actually having the server’s address (E.g., … Read more

Which embedded messaging system -> ActiveMQ or HornetQ

Firstly, I’m biased. I’m the founder of the HornetQ project, although I don’t work on it any more. Why HornetQ over ActiveMQ? Here are a few good reasons: HornetQ is significantly faster than ActiveMQ. http://community.jboss.org/wiki/HornetQPerformance In fact, HornetQ is the #1 fastest enterprise messaging system on the market. Or at least, it was, when we … Read more