I have JSON messages incoming to JMS queue on JBoss server. I want to group them using some criteria, e.g. parse and use attribute "group" to group by. I need to accumulate messages for X minutes, then create a new message representing each group and call a service to process each group-message.
I can't find a way to read messages from JMS queue and produce less ESB messages in transactional way. I don't want to loose messages during restart.