Bill, First I want to agree with you that the current deployment system has problems in getting the deployment order right for more than toy examples. It is (or may be) possible to force the correct deployment order by liberal use of anonymous mbean references, but I think that is a bad idea and not maintainable. I think mbean-refs are really good when one mbean needs to use the services of another, such as those in ConnectionFactoryLoader: using them simplified the code considerably while introducing better dependency management. But if there is no natural use of one mbean by another, I think mbean-refs are artificial.
What would you think of a deployment script facility, where you listed the packages in the order you wanted them deployed? At most the script would be autodeployed. Also... why are you using autodeployment on a production system? You can write a little program to deploy the packages you want in the order you want, the testsuite has lots of examples of this, see esp. the JBossTestServices class. I think there's a way to do this through a servlet or jsp also, I think Andreas wrote an ejb adaptor or connector for the mbean server. I have been thinking along the lines of large projects being divided up into medium sized chunks: the deployment then involves deploying these chunks in the correct order. I would think this would be easier to understand and maintain than one giant dd at the lowest level of detail. Does this make sense? Finally: I don't think any logic in AutoDeployer changed. If you put the mbeans you want to start last at the end of the main jboss-service file are they deployed before autodeployer goes through and deploys everything it can find? If so, this may be an accident of the ordering of deployers and deploy directories in the autodeployer configuration, and you might be able to reorder these to get the results you want. I would be hesitant to rely on this for a production system. Thanks david jencks On 2001.12.07 14:07:59 -0500 Bill Burke wrote: > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of > David > > Jencks > > Sent: Friday, December 07, 2001 1:34 PM > > To: [EMAIL PROTECTED] > > Cc: marc fleury; [EMAIL PROTECTED] > > Subject: Re: [JBoss-dev] current mbean structure confusing > > > > > > On 2001.12.07 09:47:31 -0500 Bill Burke wrote: > > > > > On the other hand, we are experiencing the same issue > > > > > as Bill with the > > > > > need to invoke our EJB from a MBean as soon as the > > > > > EJB is > > > > > deployed/available. > > > > > > > > An EJB is soon going to be an MBean so MBean refs will be usable. > > > > > > > > > > So, in the initializer bean, I have to put a MBean ref for every EJB > I > > > use? > > > What a pain! Why can't MBean deployment be held up until the > > > AutoDeployer > > > finishes? So that you could have an MBean with a dependency on the > > > AutoDeployer, and that would be that? > > > > Having a dependency on the autodeployer won't do you much good, will > it? > > Maybe I'm just really braindead here, but in 2.4.x, MBeans listed after > the > AutoDeployer(implicit dependency) did not start until the AutoDeployer > finished deploying everything. Why was this behavior changed in 3.0? > > This is very very useful. Otherwise, mbeans depending on EJBs and > services > deployed by the AutoDeployer will have to list long lists of MBean refs > (is > this correct?) which are hard to maintain. > > An even better reason for this behavior is the following scenario we had > at > Mercantec: > > Mercantec's application receives HTTP requests many times per second by > hundreds/thousands of different clients. Jetty should not be able to > accept > HTTP requests until JBoss has completely booted up, and this means all > AutoDeployed components. Otherwise, UI sessions could come up with > errors > in this time interval (2-3 minutes to load all our beans), or our batched > XML-RPC requests could fail. > > The way you guys are talking, I'm going to have to list MBean refs for > all > 80 of our EJBS and other datasouces and MBean components!!! That's a > nightmare to maintain and just plain ridiculous. > > Do you get what I'm saying here? > > Other than that, IMHO, it is plain ridiculous to have to explicitly type > in > dependencies for all MBeans. It is just too much work and too hard to > maintain for a large application. Having implicit dependencies by MBean > ordering in a file is simple and elegant and easy to understand. Yes, > specifying dependencies explicitly is very useful, but I'm guessing is > not > needed for 80% of applications. > > Bill > > Bill > > > > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development