On Wednesday, November 6, 2002, 4:31:09 PM, Kris wrote:

KS> The creation of the converters and their registration can
KS> obviously be accomplished in a thread-safe manner, but if multiple
KS> threads call into parse and/or format at the same time, this will
KS> cause a problem. If that's not what Antoni was saying...it's still
KS> a problem ;-). Shouldn't you code a Converter's convert method
KS> with the same approach to thread-safety as an Action's
KS> execute/perform method? If your Converter maintains a
KS> SimpleDateFormat instance field that it uses to either format or
KS> parse, it's not thread safe.

    Thank you as well Kris. I'm looking at the Struts Action
    execute/perform methods and I'm not sure how the situation is the
    same though. I'll look at them some more.

    Thanks guy for bringing this thread safe issue to my attention.




-- 

Rick
mailto:maillist@;reumann.net


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to