views:

123

answers:

2

I have an axis web service deployed on JBOSS. My web service is synchronous. So, how does a web service handle multiple requests? And how do I simulate/test that my code can handle multiple requests well?

A: 

Axis isn't the most modern or performant of the web service stacks (and that's putting it kindly), but it should have no problem with a decent load of simultaneous requests. If there's going to be a problem, it's more likely to be with your own code.

The best way to test this is to use Axis to write a web service client, and use it to fire a large number of requests at your server. If you've already used Axis to generate java artefacts, it should be fairly straightforward.

skaffman
Any numbers/comparisons on the performance issue you can link to?
matt b
No, but Axis is a first generation web service stack. For new developments, it has nothing to recommend it.
skaffman
+1  A: 

You can use Apache JMeter for this. Here's a webservice test plan guide.

That said, I agree with skaffman that Axis isn't the optimum choice for webservices. If you can, use Sun Metro or Apache CXF instead, both which are JAX-WS implementations.

BalusC
Do you know of neutral performance comparisons (especially scalability) of the implementations?
Thorbjørn Ravn Andersen
No one comes to mind, but you may want to track http://www.ibm.com/developerworks/webservices/library/j-jws11/index.html (published Jan 19). It states that the next article would cover CXF.
BalusC