}
}
public void messageContentBodyReceived(int channelId, ContentBody contentBody) throws AMQException
{
UnprocessedMessage msg = (UnprocessedMessage) _channelId2UnprocessedMsgMap.get(channelId);
if (msg == null)
{
throw new AMQException("Error: received content body without having received a JMSDeliver frame first");
}
if (msg.getContentHeader() == null)
{
_channelId2UnprocessedMsgMap.remove(channelId);
throw new AMQException("Error: received content body without having received a ContentHeader frame first");
}
/*try
{*/
msg.receiveBody(contentBody);
/*}
catch (UnexpectedBodyReceivedException e)
{
_channelId2UnprocessedMsgMap.remove(channelId);
throw e;
}*/
if (msg.isAllBodyDataReceived())
{
deliverMessageToAMQSession(channelId, msg);
}
}