Well, I have 2 ideas

1.  If you put hsql-default-service.xml and jbosscx.sar in lib/ext and had
your *service.xml include hsql-default-service.xml in a classpath element,
I would expect that to force hsql-default-service to load before your file,
forcing jbosscx.sar to load, at which point it will autodeploy the rars,
then jsql-default-service will create the DefaultDS ConnectionFactoryLoader
mbean, ready for use, then your mbeans will load.  If this doesn't happen,
it's a bug i want to fix, or understand why I shouldn't. Did you try this?
What happened?  I think we may need to calling deploy on a deployed package
does nothing rather than redeploys it in order to reduce churn when
packages are deployed in a random order.

2.  I was thinking that a goal for the structuring of the startup
configuration might be to have a bunch of small specialized sars each for a
piece of jboss.  For instance, the naming-tm-security-webserver startup,
jbosscx, jbossmq, jetty, jms-connector, and finally the j2ee
deployer/autodeployer.  Then we could have one master-service.xml file that
basically lists all these components in the classpath and provides more
specific configuration of some variable mbeans - maybe datasources.  That
way you can assemble your jboss server from big preconfigured chunks.  In
this case, none of these "base" sars would be autodeployed -- they'd be
listed in master.service.xml, so by the time your *-service.xml got
autodeployed, everything would be in place.  However, I haven't had time to
try this out.


Btw, the mbean - sar dependency looks good.  I'm going to see about
implementing undeploy as well, along with improved sar-sar dependency
management.  Do you have an objection to deploying the packages in the
classpath elements before checking the depends elements? That way if one of
the listed packages provides a needed mbean deployment can proceed
automatically.

Thanks
david jencks


On 2001.09.12 22:10:37 -0400 David Maplesden wrote:
> I thought you might notice this.
> 
> It did make a lot of sense to have it all in one place but it causes
> problems when loading mbeans that lookup the DefaultDS in their
> initialisation.  I have a custom mbean I am deploying in JBoss and if it
> gets deployed before the various RAR files are deployed then the lookup
> of
> the DataSource fails.  
> 
> Currently there is no way to test if the rar files have been deployed or
> not, so the only way I could solve the problem was to guarantee the rar
> files are deployed first by starting the RARDeployer before the
> AutoDeployer
> and moving all the service.xml files etc into the deploy directory which
> gets deployed after the deploy/lib directory.
> 
> If you can think of another solution I would like to hear it.
> 
> Cheers,
> David.
> 
> > -----Original Message-----
> > From: David Jencks [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 13, 2001 2:16 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-dev] CVS update:
> > jbosscx/src/resources/jca-sar/META-INF jboss-service.xml
> > 
> > 
> > David, what problem are you solving by splitting up this package?  I
> > thought it made a lot of sense to have all the jca stuff in 
> > one package.
> > 
> > david jencks
> > 
> > 
> > On 2001.09.12 19:06:52 -0400 David Maplesden wrote:
> > >   User: dmaplesden
> > >   Date: 01/09/12 16:06:52
> > > 
> > >   Modified:    src/resources/jca-sar/META-INF jboss-service.xml
> > >   Log:
> > >   Change default configuration to start RARDeployer before 
> > AutoDeployer
> > >   
> > >   Revision  Changes    Path
> > >   1.3       +1 -5      
> > jbosscx/src/resources/jca-sar/META-INF/jboss-service.xml
> > >   
> > >   Index: jboss-service.xml
> > >   
> > ===================================================================
> > >   RCS file: 
> > /cvsroot/jboss/jbosscx/src/resources/jca-sar/META-INF/jboss-se
> > rvice.xml,v
> > >   retrieving revision 1.2
> > >   retrieving revision 1.3
> > >   diff -u -r1.2 -r1.3
> > >   --- jboss-service.xml   2001/09/11 02:48:21     1.2
> > >   +++ jboss-service.xml   2001/09/12 23:06:52     1.3
> > >   @@ -7,7 +7,7 @@
> > >    <!--                                                     
> >              
> > >     -->
> > >    <!-- 
> > =====================================================================
> > > -->
> > >    
> > >   -<!-- $Id: jboss-service.xml,v 1.2 2001/09/11 02:48:21 
> > dmaplesden Exp $
> > > -->
> > >   +<!-- $Id: jboss-service.xml,v 1.3 2001/09/12 23:06:52 
> > dmaplesden Exp $
> > > -->
> > >    
> > >    <!-- 
> > >       |  This contains configuration for the RARDeployer and the 
> > >   @@ -31,10 +31,6 @@
> > >      <!-- The RARDeployer and three Connection Manager Factories are
> > > parts of  -->
> > >      <!-- JBoss and do not need further configuration.      
> >              
> > >      -->
> > >      <!-- 
> > ====================================================================
> > > -->
> > >   -
> > >   -  <mbean code="org.jboss.resource.RARDeployer" 
> > >   -        name="JCA:service=RARDeployer">
> > >   -  </mbean>
> > >    
> > >      <!-- 
> > >         | Minerva no transaction connection manager factory.
> > >   
> > >   
> > >   
> > > 
> > > _______________________________________________
> > > Jboss-development mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-development
> > > 
> > > 
> > 
> > _______________________________________________
> > Jboss-development mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-development
> > 
> 
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
> 
> 

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to