[jboss-dev-forums] [JBoss AS 7 Development] - Re: JMX-Console alternative on JBoss 7.x

Daniel Straub do-not-reply at jboss.com
Wed Feb 15 06:52:59 EST 2012


Daniel Straub [https://community.jboss.org/people/dastraub] created the discussion

"Re: JMX-Console alternative on JBoss 7.x"

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

--------------------------------------------------------------
Keep care with this solution. You have all this injection stuff beacause the ejb-container creates this singleton instance, call's @PostConstruct and so on ...
If you register this instance by the MBeanServer as MBean and call later this instance via the MBeanServer, the call is invoked in the context of the MBeanServer without transaction, security context and so on. 
You will "land" in the ejb-container during the first call to an injected ejb.
By the "old" @Service-anntoated MBean, the MBean-call was also in the context of the ejb-container.
We run in some problems by porting an  application (from JBoss 4.3) with this solution. 
E.g. in a MBean method we call multiple ejb's. Now has each ejb-call his own transaction, in the "old" version we had only one transaction for all calls. It's a litte difference ;-)
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120215/14e4854a/attachment.html 


More information about the jboss-dev-forums mailing list