is it possible to create something like static object using EJB3 in Jboss. in other words i need to create something like a static object using singleton pattern or something like that, that is because i need to preload a configuration from database and i want that every bean that jboss creates uses this class to read this configuration instead of that every bean load it from the database.
Cheers,
EJB 3.1 does have a standard
@Singletonannotation but EJB 3.0 doesn’t. However, JBoss offers a JBoss extension to the EJB 3.0 spec to create a singleton with the@Serviceannotation.From the JBoss EJB 3.0 Reference Documentation:
References