Package com.wordpress.salaboy.model.messages

Examples of com.wordpress.salaboy.model.messages.VehicleDispatchedMessage


    @Override
    public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {
        String emergencyId = ((Emergency) workItem.getParameter("emergency")).getId();
        Vehicle vehicle = (Vehicle) workItem.getParameter("vehicle");
        try {
            MessageFactory.sendMessage(new VehicleDispatchedMessage(emergencyId, vehicle.getId()));
        } catch (HornetQException ex) {
            Logger.getLogger(DispatchVehicleWorkItemHandler.class.getName()).log(Level.SEVERE, null, ex);
        }
        manager.completeWorkItem(workItem.getId(), null);
    }
View Full Code Here

TOP

Related Classes of com.wordpress.salaboy.model.messages.VehicleDispatchedMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.