This content has been marked as final.
Show 1 reply
-
1. Re: static hsshMap with race condition issue
marcioendo.marcioendo.gmail.com Oct 27, 2008 12:05 PM (in response to thiagu.m)I don't think the problem is synchronization.
SFSB are not meant to be used in the APPLICATION scope. Also, SFSB are designed to be single-client sort of speak.
I would recommend one of the following:
- Implement a Seam POJO with APPLICATION scope.
- Use JBoss Cache (or any other cache implementation). Then you could use a stateless session bean as facade to that.
- If you are using JBAS, you can implement a @Service bean, which can be thought as singletons managed by the AS.