This content has been marked as final.
Show 2 replies
-
1. Re: can I call a ejb function from JMX?
cn123h Sep 24, 2010 6:42 AM (in response to cn123h)btw, i got a problem by using Cactus+JBoss 5.1
https://jira.jboss.org/browse/JBAS-7212?focusedCommentId=12552988#action_12552988
-
2. Re: can I call a ejb function from JMX?
genman Sep 24, 2010 10:58 AM (in response to cn123h)You can, since you can call an EJB remotely, even.
Here's the general pattern, where RemoteInterface is the interface exported from your EJB.
RemoteInterface ejb = (RemoteInterface)(new javax.naming.InitialContext().lookup("deployment/NameOfEJB/remote")); ejb.myFunction();