Is it allowed (and good practice) to hold some shared informations in our application by using a Singleton Session Bean inside a Stateless Session Bean?
The SSB will be injected into the SLSB.
@Stateless
public class MySLSB {
@Inject
MySSB mySSB;
-
@Singleton
@Lock(READ)
public class MySSB implements Serializable {
private static final long serialVersionUID = 1L;