[jboss-user] [JBoss Seam] - Best way for JMX MBean to depen on Seam initialization?

jazir1979 do-not-reply at jboss.com
Tue May 1 05:40:31 EDT 2007


Hi all,

I have a problem whereby a JMX MBean that polls a directory for files sends JMS messages, and the message-driven bean listening on this queue is a Seam component (mainly so it can use some edge-case Seam components like Messages, etc.  It's not essential, but is handy).

Unfortunately, if the polled directory contains files on startup, the JMS messages fire before Seam is initialised and I get exceptions about trying to invoke Seam outside of a web app context.

I already have my directory poller MBean configured so that it depends on the JMS queue starting first.  But is it possible to configure an MBean so that it depends on Seam to be initialised?  Is there a Seam JMX wrapper, or a way for me to depend on a particular servlet, or my EAR, etc?

I've tried a few  clauses, but nothing that worked so far.

thanks kindly,
Daniel.



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

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



More information about the jboss-user mailing list