With regards to the publishing of the socket events for the live transport status and last known location, I have some doubts/questions.
The CargoHandledConsumer currently listens for messages on the "CargoHandledQueue" Destination. I was thinking of firing a CDI event once the message has been inspected by the Default Cargo Tracker Service similar to Bruno's technique described here ->
https://blogs.oracle.com/brunoborges/entry/integrating_websockets_and_jms_with
Can I change the return type of "inspectCargo" to return the Cargo instance so that I can fire the CDI event with the Cargo itself as the payload ? Is this the right approach? Am I missing something fundamental ?
Thanks..Vijay