Here's an existing entry:
<service name="Log">
<dependency service="Configuration" required="true"/>
</service>
You need to update the service name and dependency service name.
The first service name is your service, the dependency service name is the
SpyderMQ service name. As for the "required" parameter:
- If "true" then your service will not start unless SpyderMQ is present
- If "false" then SpyderMQ will be started before your service if
SpyderMQ is present, and your service will be started anyway if
SpqderMQ is not present.
So the next trick is how you figure out the name of the service.
First, look at the JMX ObjectName. Find a substring like "service=Foo",
where substrings are delimited by commas and semicolons, and the service
name is the part after the =. So for example, if the object name is
"Default;service=Bar;instance=#1A" then the service name is "Bar". You
should know the ObjectName for your service, and it look like the SpyderMQ
ObjectName is ":service=SpyderMQ".
Note that there must be a "service=XXX" in your service's
ObjectName for this to work.
Aaron
On Tue, 14 Nov 2000, Aadam Daya wrote:
> Hi. I have a small startup routine which does some of our
> initializations in our application. For this routine, we have an mbean
> which is
> specified in the jboss.conf. This is the line in my jboss.conf:
>
> <MLET CODE = "com.nuvation.megacd.services.MegaCDStartup"
> ARCHIVE="ifactory.jar" CODEBASE="../lib/ext/">
> </MLET>
>
> This seems to startup fine, but the code that is run here depends on
> spydermq being present and running.
>
> What would I write in the jboss.dependencies so that our startup
> initialization bean will not run until spydermq is loaded?
>
> Thanks,
>
> Aadam
>
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]