concept event in category camel

This is an excerpt from Manning's book Camel in Action.
If you want to reap the benefits of asynchronous messaging, but you aren’t concerned with JMS specification conformance or the built-in reliability that JMS provides, you may want to consider an in-memory solution. By ditching the specification conformance and any communications with a message broker (which can be costly), an in-memory solution can be much faster. Note that there’s no message persistence to disk, as in JMS, so you run the risk of losing messages in the event of a crash; your application should be tolerant of losing messages.
Figure 12.2 A transaction is a series of events between
beginandcommit.![]()
LoggingEventNotifier—A notifier for logging a text representation of the event using the SLF4J logging framework. This means you can use loggers, such as log4j, which has a broad range of appenders that can dispatch log messages to remote servers using UDP, TCP, JMS, SNMP, email, and so on.PublishEventNotifier—A notifier for dispatching the event to any kind of Camel endpoint. This allows you to use Camel transports to broadcast the message any way you want.JmxNotificationEventNotifier—A notifier for broadcasting the events as JMX notifications. For example, management and monitoring tooling can be used to subscribe to the notifications.You’ll learn in the following sections how to set up and use an event notifier and how to build and use a custom notifier.
Listing 20.12 Using Vert.x in the front end to handle events from the event bus
<script> var eb = new EventBus("/eventbus"); #1 eb.onopen = function () { eb.registerHandler("clock", function (err, msg) { #2 document.getElementById("clock").innerHTML = msg.body; }); eb.registerHandler("games", function (err, msg) { #3 var arr = msg.body.split(','); var game = arr[0]; var home = arr[1]; var away = arr[2]; // more code here not shown }); eb.registerHandler("goals", function (err, msg) { #4 if (msg.body === 'empty') { clearScorer(); return; } playsound(); // more code here not shown }) }; #1 Connects to Vert.x event bus #2 Reacts when the game clock changes #3 Reacts when the game list is updated #4 Reacts when a goal is scored

This is an excerpt from Manning's book Camel in Action.
InOnly—A one-way message (also known as an Event message). For example, JMS messaging is often one-way messaging.
LoggingEventNotifier—A notifier for logging a text representation of the event using the Apache Commons Logging framework. This means you can use log4j, which has a broad range of appenders that can dispatch log messages to remote servers using UDP, TCP, JMS, SNMP, email, and so on. PublishEventNotifier—A notifier for dispatching the event to any kind of Camel endpoint. This allows you to leverage Camel transports to broadcast the message any way you want. JmxNotificationEventNotifier—A notifier for broadcasting the events as JMX notifications. For example, management and monitoring tooling can be used to subscribe to the notifications. You’ll learn in the following sections how to set up and use an event notifier and how to build and use a custom notifier.