[jboss-user] [Beginner's Corner] - Re: Struggling with injecting singleton in 6.0

Robin Hughes do-not-reply at jboss.com
Fri Apr 1 12:00:26 EDT 2011


Robin Hughes [http://community.jboss.org/people/rhinmass] created the discussion

"Re: Struggling with injecting singleton in 6.0"

To view the discussion, visit: http://community.jboss.org/message/597216#597216

--------------------------------------------------------------
I have a new clue, but not a solution yet.  It seems that 2 instances of HelloWorld are being created.

11:49:32,356 INFO  [STDOUT] constructing HelloWorld
11:49:32,372 INFO  [org.jboss.ejb3.nointerface.impl.jndi.AbstractNoInterfaceViewBinder] Binding the following entry in Global JNDI for bean:HelloWorld

        myapp-0.0.1/HelloWorld/no-interface -> EJB3.1 no-interface view

11:49:32,372 INFO  [STDOUT] constructing HelloWorld
11:49:32,372 INFO  [org.jboss.ejb3.nointerface.impl.jndi.AbstractNoInterfaceViewBinder] Binding the following entry in Global JNDI for bean:HelloWorld

        myapp-0.0.1/HelloWorld/no-interface -> EJB3.1 no-interface view

11:49:32,403 INFO  [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
11:49:32,403 INFO  [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
11:49:32,403 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.Final "Neo"] Started in 34s:63ms

Of course I only get this far if I remove the injection of HelloWorld from the servlet.  (I removed "@Startup" but it did not make a difference.)
--------------------------------------------------------------

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

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110401/6af4bbd8/attachment.html 


More information about the jboss-user mailing list