[jboss-user] [EJB3] - Singleton bean of EJB3.x, will instantiate twice at first time ?

忠雨 胡 do-not-reply at jboss.com
Thu Jun 14 23:03:25 EDT 2012


忠雨 胡 [https://community.jboss.org/people/he_man888] created the discussion

"Singleton bean of EJB3.x, will instantiate twice at first time ?"

To view the discussion, visit: https://community.jboss.org/message/741879#741879

--------------------------------------------------------------
Hi everyone:

    My JBoss version:   jboss-as-7.1.0.CR1b
    The scenario is a singleton bean named 'ProductSubscriberCallbackCache' was deployed in a Webapp, the ejb jar is located in Webapp/webroot/lib, in WebApp,  a client will call ProductSubscriberCallbackCache via JNDI, my question is ,   why did the singleton bean 'ProductSubscriberCallbackCache' was instantiated *twice* at the first time*?*

*  * Attachments are the code and the log.
   this has puzzled me for a long time, any suggestion will be appreciated!
   thanks
*  *
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/741879#741879]

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120614/9139ac49/attachment.html 


More information about the jboss-user mailing list