Java Reference
In-Depth Information
try {
seatId =
message.getLongProperty("seatId");
price = message.getIntProperty("price");
} catch (JMSException e1) {
throw new EJBException(e1);
}
bookerService.bookSeat(seatId, price);
}
}
Once a message is received, the seatId properties and price value are extracted
from the message header and used to issue a booking request to BookerService .
Congratulations! If you have gone successfully through this example, you have just
mastered a real-world integration scenario!
Search WWH ::




Custom Search