RE: Thread-safety

2002-11-21 Thread Andrew Hill
rs Mailing List Subject: RE: Thread-safety Hi, Yes. We use this code from within a controller stored in the user session. Now each user will get the controller from his session and call this code from within the controller but even then this might be a bit tricky. Our controller doesn'

RE: Thread-safety

2002-11-21 Thread Mohan Radhakrishnan
nks, Mohan -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 11:27 AM To: Struts Users Mailing List Subject: RE: Thread-safety It depends... -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] Sent: Friday, November 2

RE: Thread-safety

2002-11-21 Thread Andrew Hill
It depends... -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 13:20 To: Struts Users Mailing List Subject: Thread-safety Hi, getServlet().getServletContext() ); I have code like this in my reload action. Now this gets hold

Re: thread safety

2002-06-13 Thread Noah Levitt
On Thu, Jun 13, 2002 at 09:07:58PM -0700, Craig R. McClanahan wrote: > > Not always. Example -- let's say you have a String property (very common > in a form bean), so you have a setter like: > > private String foo = null; > > public String getFoo() { > return (this.foo); > } > >

Re: thread safety

2002-06-13 Thread Craig R. McClanahan
On Thu, 13 Jun 2002, Noah Levitt wrote: > Date: Thu, 13 Jun 2002 14:45:35 -0400 > From: Noah Levitt <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Re: thread safety

RE: thread safety

2002-06-13 Thread Andrew Hill
- From: Noah Levitt [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 02:46 To: Struts Users Mailing List Subject: Re: thread safety Hello, Your suggestion is duly noted, and would probably be good advice for many web apps. But keeping form beans in session scope can be very handy at times

Re: thread safety

2002-06-13 Thread Noah Levitt
Hello, Your suggestion is duly noted, and would probably be good advice for many web apps. But keeping form beans in session scope can be very handy at times, as has been pointed out in other posts. Sessions are one of the main advantages of servlets, after all. So, you concede that using form b

Re: thread safety

2002-06-13 Thread Oliver Refle
rm bean should only be kept in request >scope. > > > > Rgs > > Vikram > > > > > > -Original Message- > > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, June 13, 2002 14:17 > > To: Struts Users Mailing List

Re: thread safety

2002-06-13 Thread Noah Levitt
rsday, June 13, 2002 14:17 > To: Struts Users Mailing List > Subject: Re: thread safety > > > > > On Wed, 12 Jun 2002, Noah Levitt wrote: > > > Date: Wed, 12 Jun 2002 19:57:39 -0400 > > From: Noah Levitt <[EMAIL PROTECTED]> > > Reply-To: Struts Us

Re: thread safety

2002-06-13 Thread @Basebeans.com
Subject: Re: thread safety From: "srinivas sunkara" <[EMAIL PROTECTED]> === Irrespective of the frombean being in the session scope or a DVO being in a session the threading issues are still the same. The two ways you can resolve them is to have your form bean or formbean an

RE: thread safety

2002-06-13 Thread Vikram Goyal01
e kept in request scope. Rgs Vikram -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 14:17 To: Struts Users Mailing List Subject: Re: thread safety On Wed, 12 Jun 2002, Noah Levitt wrote: > Date: Wed, 12 Jun 2002 19:57:39

RE: thread safety

2002-06-12 Thread Andrew Hill
(ie: wizards etc...) -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 14:17 To: Struts Users Mailing List Subject: Re: thread safety On Wed, 12 Jun 2002, Noah Levitt wrote: > Date: Wed, 12 Jun 2002 19:57:39 -0400 > From: Noah

Re: thread safety

2002-06-12 Thread Craig R. McClanahan
On Wed, 12 Jun 2002, Noah Levitt wrote: > Date: Wed, 12 Jun 2002 19:57:39 -0400 > From: Noah Levitt <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: thread safety > > Hello struts users, > > The issue of thread safety bugs me. It s

RE: Thread Safety Question (was Formatting Dates, Integers...)

2002-02-05 Thread Greg Hess
in a method or be a globaly syncronized object for all to use? -Original Message- From: Jeff Martin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 12:26 PM To: Struts Users Mailing List Subject: RE: Thread Safety Question (was Formatting Dates, Integers...) Any u

RE: Thread Safety Question (was Formatting Dates, Integers...)

2002-02-05 Thread Jeff Martin
Any use of java.text.DateFormat (or its subclasses) format method is thread unsafe (quite to my surprise). The problem comes from DateFormat holding an instance of a Calendar to help it break the java.util.Date into pieces. When a second thread calls format() while another thread is still in fo

Re: Thread safety issue with use of token?

2001-04-02 Thread Rob Leland
If you are using multiple threads per session you'll need to find another method for transaction control. Specifically in the session you'll need to create a Map of tokens, and use the request id as a lookup key. -Rob "Handy, Steve" wrote: > > Previous posts have referred to using the to