axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject RE: [PATCH] multithread problem (Re: Thread safe clients)
Date Tue, 18 Jun 2002 15:00:07 GMT
Ramon, Takashi,

- Is this a patch that "completely" fixes your multi thread problems? 
- Please check existing bugs at http://nagoya.apache.org/bugzilla/ and open a new bug (IF
NECESSARY).

Thanks,
dims

--- Ramon Turnes <ramon.turnes-perez@hermes.si> wrote:
> 
> Hi Takashi,
> 
> thanks for submitting this request. I would like to track the
> resolution of this problem because it is very important for
> us. I don't know what is the criteria axis developers follow
> when fixing bugs, do you perhaps know when I can expect
> this bug to be fixed. Thanks.
> 
> Ramon.
> 
> > -----Original Message-----
> > From: Takashi Okamoto [mailto:tokamoto@rd.nttdata.co.jp]
> > Sent: Monday, June 17, 2002 2:29 PM
> > To: axis-dev@xml.apache.org
> > Cc: axis-user@xml.apache.org
> > Subject: [PATCH] multithread problem (Re: Thread safe clients)
> > 
> > 
> > Hi, axis developers.
> > 
> > Following code  is  thread unsafe by Ramon
> > reporting(ramon.turnes-perez@hermes.si) in axis-user ml. 
> > Please fix it.
> > 
> > regards,
> > 
> > Takashi Okamoto
> > 
> > 
> > --- Message.java.orig   2002-06-17 21:21:42.000000000 +0900
> > +++ Message.java        2002-06-17 21:21:22.000000000 +0900
> > @@ -195,9 +195,9 @@
> >      private static Class attachImpl = null;
> > 
> >      //aviod testing and possibly failing everytime.
> > -    private static boolean checkForAttchmentSupport = true;
> > +    private boolean checkForAttchmentSupport = true;
> > 
> > -    private static boolean attachmentSupportEnabled = false;
> > +    private boolean attachmentSupportEnabled = false;
> > 
> >      public boolean isAttachmentSupportEnabled() {
> >          if (checkForAttchmentSupport) {
> > 
> > 
> > ----- Original Message -----
> > From: "Ramon Turnes" <ramon.turnes-perez@hermes.si>
> > To: <axis-user@xml.apache.org>
> > Sent: Monday, June 17, 2002 7:36 PM
> > Subject: RE: Thread safe clients
> > 
> > 
> > >
> > > I am using Xerces 2.0.1 but I don't think that this is the 
> > only problem,
> > > first, Message class is not thread safe (isAttachmentSupportEnabled
> > > method which uses static variables is not thread safe). I 
> > cannot send
> > > two requests from different threads and locking the whole Message
> > > class is not an acceptable solution.
> > >
> > > Thanks for your answer.
> > >
> > > > -----Original Message-----
> > > > From: Takashi Okamoto [mailto:tokamoto@rd.nttdata.co.jp]
> > > > Sent: Monday, June 17, 2002 12:28 PM
> > > > To: axis-user@xml.apache.org
> > > > Subject: Re: Thread safe clients
> > > >
> > > >
> > > > > I have problems when sending two simulaneous requests
> > > > > (from different threads) to the same URL. I have been playing
> > > > > a little bit with axis source code and everything seems to work
> > > > > if I synchronize the invoke(SOAPEnvelope)  method in
> > > > > Call.java
> > > >
> > > > Which version of xerces did you use?
> > > >
> > > > Here is a my opinions:
> > > >
> > > > + I had problem with Xerces 2.0.x while call
> > > > Call.invoke(Object []) in
> > > >    multithread. But it perhaps work good with xerces1.4.4.
> > > >
> > > > + The SOAPEnvelop was broken when share one element for
> > > >    some SOAPEnvelope instance in each threads.
> > > >    (SOAPEnvelope just refer element which is specified 
> > constructor)
> > > >
> > > > + At least axis beta2 have multithread problem at XMLUtils.java
> > > >    around DOM. (It was fixed in CVS by my patch:))
> > > >
> > > > Does anybody have other opinionsabout multithread?
> > > >
> > > > reagrds,
> > > >
> > > > Takashi Okamoto
> > > >
> > >
> > 


=====
Davanum Srinivas - http://xml.apache.org/~dims/

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

Mime
View raw message