This content has been marked as final. Show 2 replies
I have a following use case:
My server needs to receive a couple of hundred of entities at a time from a client. For each of these entities I need to create an independent HTTP request and collect the response. This means I need to execute up to a few hundred HTTP requests. Since this could really take a while when executed in serial manner, I'd like to do this in parallel, each in separate thread. On the other hand, EJB spec forbids creating your threads, so I thought about using a Java NIO based client for this (Apache), but got poor results. So my question is:
Is there a safe and relatively fast way to execute multiple HTTP requests in parallel from the JBoss without compromising the application server state?
I'm working with JBoss AS 7.1.1.