I think I misunderstood your question, you're asking if the static instance shown in your code fragment can be reused afterwords
concurrently, but I though you were asking if the block itsef was thread-safe, sorry
Cheers, Sergey
Hi,
Is the following code thread safe? In other words, can we reuse the
same soapFactory for different threads (concurrently) and within
different MEPs?
Thanks,
Guy
private static SOAPFactory soapFactory = null;
static {
try {
soapFactory = SOAPFactory.newInstance();
}
catch ( Exception e ) {
Configuration.logWarning ( "Failed to create SOAPFactory" , e );
}
}
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland