This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Here,BusinessMethodInterceptors is the name of Web Project.
As per my understanding,Singletion Session Bean is instantiated once per application per class.
However, in the server.log I see that it is Instantiated(Created) twice in application (See message "INFO: *** SingletonSessionBeanA - Created" is displayed twice)
Please advise if my understanding is incorrect.
This is what I also noticed when I was preparing for the exam: the constructor of a Singleton is called twice (!). This is an implementation specific thing not mandated (or explained) by the specifications. The PostConstruct method is only called once luckily...