This content has been marked as final.
Show 1 reply
-
1. Re: Getting an Exception trying deliver a message
edgar.silva Jan 30, 2008 12:28 AM (in response to edgar.silva)Hey folks,
I've been using a POJO provided by my customer, where this one does not implemented java.io.Serializable, so when I tried the following code:
Reserva res = new ReservaServico().
executa(ReservaServico.RESERVA).
numeroDaReserva("EDJDSK").
queOVooSeja("JJ2212").
noAssento("14E").
getReserva();
esbMessage.getHeader().getCall().setMessageID(new URI("98982232321"));
esbMessage.getBody().add("acao",Contants.RESERVA_CODE);
esbMessage.getBody().add("reserva",res);
In the "reserva" a had a reference for a non-serializeable object, that is why the exception was occurring here. So just, keep in mind about "Serializable issues" when you are working with sources that you are not the owner =)