I have an EJB that uses the @Schedule annotation to perform some enterprise logic in a cron like manner.
I am using JBoss 7.1 final.
The problem is that this method is consuming messages from an AWS SQS service, in that API there is a restriction to fetch up to 10 messages at a time. That causes a lot of messages beeing added to the SQS but not beeing consumed fast enough. So what I would like to ask is if there is a way to create a pool and have 2 or 3 EJBs concurently processing messages from SQS.