tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Davidson" <>
Subject RE: Multiple HTTPConnections in parallel from EJB
Date Fri, 19 Feb 2010 20:57:11 GMT
<quickie answer>
Two technologies that come to mind for this;
MBeans aka JMX Beans (multi-threading IS allowed here)
MDB with channels/subqueues - one queue for transmitting requests,
another queue for picking up responses.  Then X number of MDBs listening
for requests, with each doing its own HTTP Processing.
</quickie answer>


-----Original Message-----
From: Karsten Ohme [] 
Sent: Friday, February 19, 2010 2:52 PM
Subject: Multiple HTTPConnections in parallel from EJB

Hi Java Gurus,

We have the following problem:

We are using the HTTPClient library and must open multiple connections
simultaneously. i.e. we have to make several calls in parallel,
otherwise the performance is very bad. If we have 50 requests per user
and are doing these 50 requests in order we have to wait 50 times the
time of one request. For multiple user this is not an option.
So, the question is how can 50 parallel connection be opened in EJB?
Threads are not allowed, so how can we accomplish this?

It should be a service like this:

- Send x methods in parallel
- Collects the results


Karsten Ohme
T-Systems Multimedia Solutions GmbH
Portal Technologies, Applications & Appliances
Hausanschrift: Riesaer Strasse 5, 01129 Dresden
Postanschrift: Postfach 10 02 24, 01072 Dresden
Telefon: +49 351 28 20 - 2123
Fax: +49 171 351 28 20 - 5116

View raw message