Thread safety and pooling in JAX-WS and Metro
Which JAX-WS components are safe to share between threads? A Service? A port
proxy? I'm interested in knowing both what the spec promises, and what Metro
actually delivers. I've dug up these discussions:
But none of them give a definite answer. Do i need to create a fresh Service
for each thread? Or can i share a service and create a fresh port/proxy for
each thread? Or can i just use a single global port/proxy?
If there are components which can't be shared, are there any facilities for
pooling them inside an application server? Either generic to all J2EE
appservers, or specific to JBoss, since that's what we're using. I've looked
And there's nothing about pooling.
Thanks in advance,
Tom Anderson | e2x Ltd, 8 Elder Street, London E1 6BT
(e) firstname.lastname@example.org | (m) +44 (7960) 989794 | (f) +44 (20) 7194 8016