To expand a little on Scott's answer,

In jb 3.2 and earlier, you have to have the mbean's class available before
you try to deploy the mbean.  When you deploy the mbean, it is created and
the attributes are set.  Then the dependency stuff starts, so create and
start are not called until the needed mbeans are created and started.

In jb4, if you try to deploy an mbean before its class is deployed, it will
wait and deploy when the class becomes available (and undeploy when the
class is removed).  Also IIRC, there is a *-service.xml top level depends
tag that you can use to depend on other mbeans, to make the *-service.xml
wait for the DeploymentInfo mbean for the needed jar file.  (Also IIRC, the
DeploymentInfo is an mbean only in jb4)

david jencks
/**********************************
* David Jencks
* Partner
* Core Developers Network
* http://www.coredevelopers.net
**********************************/

On 2003.06.09 09:37 Alex Hornby wrote:
> On Mon, 2003-06-09 at 14:25, Nicholas wrote:
> > Can you send them again ? I could not find them in the
> > archive.
> 
> Hmmm, looks like the sourceforge archive strips off attachments.
> 
> Here is the body of my reply to Scott and the attachment again:
> 
> I've attached a gzip'd jboss log from a jboss 3.2.1 startup showing that
> the jboss-anvilmarket2-service.xml file is deployed before any of the
> EJBs in the ejb-anvil-market.jar are deployed, resulting in "class not
> found" error.
> 
> I think the <depends> tags in jboss-anvilmarket2-service.xml should make
> the mbean deployment wait until after the named EJB has deployed,
> however this is not happening.
> 
> The very same ejb jar and -service.xml work fine if I force the
> deployment order by copying them into the deploy directory manually one
> by one.
> 
> Cheers,
> Alex.
> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <server>
> 
>   <classpath codebase="lib" archives="quickfix.jar"/>
> 
>   <mbean code="com.anvil.ate.market.common.ApplicationConstants"
>        name="com.anvil.ate.market:service=ApplicationConstants">
>     <depends>jboss:service=Naming</depends> 
>     <depends>jboss.j2ee:jndiName=market/MarketData,service=EJB</depends> 
>     <attribute name="ServerName">localhost</attribute>
>     <attribute name="InOrderQ">inboundOrderQueue</attribute>
>     <attribute name="InQuoteQ">inboundQuoteQueue</attribute>
>     <attribute name="InSessionQ">inboundSessionQueue</attribute>
>     <attribute name="OutQ">outboundQueue</attribute>   
>   </mbean>
> 
> </server>
> 


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to