views:

122

answers:

1

Hi,

I am creating a context (e.g. TestContext.java) as a singleton in the web application. Multi struts actions will access the context. Should I create the context attributes as thread-safe?

Thanks.

A: 

Yes, you should: several theads may access it simultaneously.

Maurice Perry