[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    RE: Thread safety question
From:       Andy <andrhahn () hotmail ! com>
Date:       2010-12-08 18:09:07
Message-ID: SNT135-w14C0A749482608B87973C0D92D0 () phx ! gbl
[Download RAW message or body]

Cezar,

Thank you very much.  I can rest assured now :)

Andy

Date: Wed, 8 Dec 2010 09:47:39 -0800
From: cezar.andrei@oracle.com
To: dev@xmlbeans.apache.org
Subject: RE: Thread safety question



















Andy,

 

The method is thread-safe, as should be all
public API XmlObject methods.

There is one special case: the usage of a
non documented option that would make it not thread safe, which is most probably
not your case.

 

Hope this answers your question.

Cezar

 









From: Andy
[mailto:andrhahn@hotmail.com] 

Sent: Monday, December 06, 2010
10:58 AM

To: dev@xmlbeans.apache.org

Subject: Thread safety question



 

Hi,

I posted this question on the user mailing list but I'm not sure if the answer
I got was accurate so I thought to ask the developer list.



Is XmlObject.Factory.parse() thread-safe? 
I have many concurrent threads calling this method and want to make sure each
thread is getting back what it is supposed to.



Thanks- 

 		 	   		  
[Attachment #3 (text/html)]

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Cezar,<br><br>Thank you very much.&nbsp; I can rest assured now \
:)<br><br>Andy<br><br><hr id="stopSpelling">Date: Wed, 8 Dec 2010 09:47:39 \
-0800<br>From: cezar.andrei@oracle.com<br>To: dev@xmlbeans.apache.org<br>Subject: RE: \
Thread safety question<br><br>


<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">



<style>
.ExternalClass .ecxshape
{;}
</style>

<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass \
div.ecxMsoNormal {margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New \
                Roman';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass span.ecxEmailStyle18
{font-family:Arial;color:navy;}
@page Section1
{size:8.5in 11.0in;}
.ExternalClass div.ecxSection1
{page:Section1;}

</style>





<div class="ecxSection1">

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span \
style="font-size: 10pt; font-family: Arial; color: navy;">Andy,</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span \
style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span \
style="font-size: 10pt; font-family: Arial; color: navy;">The method is thread-safe, \
as should be all public API XmlObject methods.</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span \
style="font-size: 10pt; font-family: Arial; color: navy;">There is one special case: \
the usage of a non documented option that would make it not thread safe, which is \
most probably not your case.</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span \
style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span \
style="font-size: 10pt; font-family: Arial; color: navy;">Hope this answers your \
question.</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span \
style="font-size: 10pt; font-family: Arial; color: navy;">Cezar</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span \
style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<div class="ecxMsoNormal" style="text-align: center;" align="center"><font \
face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" width="100%" size="2">

</span></font></div>

<p class="ecxMsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; \
font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" \
size="2"><span style="font-size: 10pt; font-family: Tahoma;"> Andy \
[mailto:andrhahn@hotmail.com] <br> <b><span style="font-weight: \
bold;">Sent:</span></b> Monday, December 06, 2010 10:58 AM<br>
<b><span style="font-weight: bold;">To:</span></b> dev@xmlbeans.apache.org<br>
<b><span style="font-weight: bold;">Subject:</span></b> Thread safety \
question</span></font></p>

</div>

<p class="ecxMsoNormal"><font face="Times New Roman" size="3"><span style="font-size: \
12pt;">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font face="Tahoma" size="2"><span style="font-size: 10pt; \
font-family: Tahoma;">Hi,<br> I posted this question on the user mailing list but I'm \
not sure if the answer I got was accurate so I thought to ask the developer list.<br>
<br>
Is <b><span style="font-weight: bold;">XmlObject.Factory.parse() \
</span></b>thread-safe?&nbsp; I have many concurrent threads calling this method and \
want to make sure each thread is getting back what it is supposed to.<br>
<br>
Thanks- </span></font></p>

</div> 		 	   		  </body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic