Sure William 
here is my entire class

public class MessageDateProcessor implements Processor{
    private Date lastMessageDate;
    private String routeName;

    public String getRouteName() {
        return routeName;
    }

    public void setRouteName(String routeName) {
        this.routeName = routeName;        
    }

    public void process(Exchange exchange) throws Exception {
        this.lastMessageDate = new Date();
    }

    public void processLastMessageDate(Exchange exchange) throws Exception{
        
        List messageList = new ArrayList();
        messageList.add(this.routeName);
        messageList.add(this.lastMessageDate);

       exchange.getOut().setBody(messageList);
    }
}

 
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Problem-with-setting-message-tp3319402p3320048.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to