Hi!

Scott M Stark wrote:
> I'm using the latest cvs snapshot and I have added two custom mbeans to the end of 
>jboss.jcml
> file. The mbeans in the file before mine are not being initialized completely before 
>my
> preRegister method is called. What is the correct way to register my mbeans such that
> the jboss mbeans are fully initialized before my mbeans are loaded?

Use the Service interface so that you get "start"/"stop" methods in
which you place your code. If you don't want to use JBoss interfaces in
your code, then simply make sure you have the same methods as the
Service interface.

The procedure is (for jboss.jcml):
* Instantiate and register all MBeans
* Apply settings from jboss-auto.jcml
* Apply settings from jboss.jcml
* Call init on all MBeans (some may not have this method though)
* Call start on all MBeans (some may not have this method though)

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]

Reply via email to