sigh sigh...
"louis_ja" wrote : Hello,
  | 
  | I'm not sure this is the 'correct' way of doing it, neither do I know if it works 
for an EAR, however, it worked to make MBeans dependant from an EJB:
  | (...)
  | Otherwise, I guess I just showed my ignorance :-)
  | 
my ignorance is greater than yours!!!! And any suggestions are welcome!!!
:-) :-)


anonymous wrote : 
  | If you look into the jmx-console, your ear should appear somwhere like that, under 
"jboss.management.local":
  | 
  |   | J2EEServer=Local,j2eeType=J2EEApplication,name=myapp.ear
  |   | 
  | 
  | You then use in your MBean declaration a depends like the following:
  | 
  |   | 
<depends>jboss.management.local:J2EEServer=Local,j2eeType=J2EEApplication,name=myapp.ear</depends>
  |   | 
  | 
  | And it 'should' work.
  | 
Ok, your suggestion is right but...
I've specified the dependency and it seem works fine...but at end of startup process 
jboss tells me:

  | 17:16:38,514 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean 
operation 'checkIncompleteDeployments()'
  | Cause: Incomplete Deployment listing:
  | Packages waiting for a deployer:
  |   <none>
  | Incompletely deployed packages:
  |   <none>
  | MBeans waiting for classes:
  |   <none>
  | MBeans waiting for other MBeans:
  | [ObjectName: it.cigno5e5.myapp.tools.jboss:service=EMailPoller
  |  state: CONFIGURED
  |  I Depend On:  
jboss.management.local:J2EEServer=Local,j2eeType=J2EEApplication,name=myapp.ear
  | 
  |  Depends On Me: ]
  | 
in fact, my MBean was deployed but methods "createService()" and "startService()" was 
not invoked. I tried to invoke them from jmx console and does it works!! ...but i 
can't ask to user to start the service from jmx console!!!! ;-) :-)

had you the same problem? Now I would try to make my mbean dependant from my ejb 
application (contained into my ear application)

anyway...thank you thank you thank you a lot!!

Luca


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840307#3840307

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840307


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to