Hi,
I have a couple of questions regarding Axis2.
====================
1) Are wdsl2java generated stubs with XMLBeans data binding thread-safe,
i.e. can the stub be re-used in a concurrent environment?
In other words, would the following be "reasonable sane" code :-)
ConfigurationContext context =
ConfigurationContextFactory.createBasicConfigurationContext(AXIS2_CONFIG
URATION);
SomeServiceStub stub = new SomeServiceStub(context , someUrl);
SomeServiceResponseDocument response1;
SomeServiceResponseDocument response2:
new Thread(new Runnable() {
public void run() {
response1 = stub.SomeService(aReqDoc1);
}
}).start();
new Thread(new Runnable() {
public void run() {
response2 = stub.SomeService(aReqDoc2);
}
}).start();
(And yes I know that there is an asynch facility with callback in Axis,
the above was just to illustrate my question)
====================
2) When calling more than 1 stub (not necessarily the same stub
instance) in parallel, will the transport requests also be in parallel?
Is there a difference here between the synch and asych case?
====================
regards
Morten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]