I'm also experiencing this problem with RC5 and a patched 4.0.3 SP1. I am no
longer getting the NamingException, yet now the MBean service isn't created nor
started. Trying to invoke the create() from the jmx-console does nothing.
| @Service
| @Management(RouterManagement.class)
| public class Router implements RouterManagement {
|
@Depends("jboss.j2ee:service=EJB3,ear=myEar.ear,jar=myJar.jar,name=FileManagerBean")
| @EJB FileManager fm;
|
The output from the console:
| 17:18:23,498 INFO [JmxKernelAbstraction] installing MBean:
jboss.j2ee:service=EJB3,ear=myEar.ear,jar=myJar.jar,name=FileManagerBean with
dependencies:
| 17:18:23,498 INFO [JmxKernelAbstraction] persistence.units:ear=
myEar.ear.ear,jar=myJar.jar.jar,unitName=mysql
|
| ...
|
| 17:18:23,878 INFO [JmxKernelAbstraction] installing MBean:
jboss.j2ee:service=EJB3,ear=myEar.ear,jar=myJar.jar,name=Router with
dependencies:
| 17:18:23,878 INFO [JmxKernelAbstraction]
jboss.j2ee:service=EJB3,ear=myEar.ear,jar=myJar.jar,name=FileManagerBean
|
It seems that when the @Service class has a member bean with a declared
dependency, then this MBean service isn't created nor started. When I removed
the member variable and re-started the MBean service was created and started.
Is there something I'm missing?
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924460#3924460
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924460
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user