lundi 27 juillet 2015

Is it ok to have static final map in stateless ejb to save sate?

Stateless EJB's should not have non-final static fields that are used to save state because this does not work in distributed apps with more that one JVM. But if we have a static final Map in EJB to save a few parameters about our distributed applications state is that ok and will the updates on the map be visible to applications running on separate JVMs?

Aucun commentaire:

Enregistrer un commentaire