return new CloseSessionResponse();
}
private CommitResponse processCommit( CommitQuery query ) throws JMSException
{
LocalSession localSession = lookupSession(query);
// Flush remaining messages first
List messages = query.getMessages();
if (messages != null)
{
// Dispatch to session
for(int n=0;n<messages.size();n++)
{
AbstractMessage msg = (AbstractMessage)messages.get(n);
localSession.dispatch(msg);
}
}
// Commit session
List deliveredMessageIDs = query.getDeliveredMessageIDs();
localSession.commit(deliveredMessageIDs != null && !deliveredMessageIDs.isEmpty(),
deliveredMessageIDs);
return new CommitResponse();
}