This content has been marked as final. Show 1 reply
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.