cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin" <sergey.beryoz...@iona.com>
Subject Re: SOAPFactory thread safe?
Date Thu, 13 Sep 2007 08:55:22 GMT
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

Mime
View raw message