3 Replies Latest reply on Oct 17, 2007 9:09 AM by Ales Justin

    Multiple deployment configurations

    Andy Taylor Master

      Currently when deployed within the MC in JbossAs, the MC looks for the jboss-beans.xml configuration file. Are there any plans to allow more than one config files. currently my jboss-beans.xml file is getting rather large, it would be good if i could abstract some of the stuff out, maybe something like:

      <deployment xmlns="urn:jboss:bean-deployer:2.0">
       <import URI="META-INF/letssaymydatasourcedefinition-beans.xml"/>

      This would make my depolyment a lot more maintainable.

      just a thought

        • 1. Re: Multiple deployment configurations
          Ales Justin Master

          When deployed with new MC deployers, MC picks up all files that end with -beans.xml. So, not just jboss-beans.xml. ;-)

          And MC being a full state machine, hence no need for ugly 'import some file'. ;-)

          • 2. Re: Multiple deployment configurations
            Andy Taylor Master

            Is this new as when i try this in the latest JBossAS 5 it gives me an error:

            13:51:49,817 ERROR [BeanDeployer] Error during deployment: vfsfile:/home/andy/devtools/jboss-5.0.0.Beta2/server/jbm2/deploy/jboss-messaging.beans
            org.jboss.deployers.spi.DeploymentException: Only one file is allowed, found=[JarEntryHandler@32681901[path=jboss-messaging.beans/META-INF/jboss-beans.xml context=file:/home/andy/devtools/jboss-5.0.0.Beta2/server/jbm2/deploy/ real=jar:file:/home/andy/devtools/jboss-5.0.0.Beta2/server/jbm2/deploy/jboss-messaging.beans!/META-INF/jboss-beans.xml], JarEntryHandler@32222408[path=jboss-messaging.beans/META-INF/mysql-beans.xml context=file:/home/andy/devtools/jboss-5.0.0.Beta2/server/jbm2/deploy/ real=jar:file:/home/andy/devtools/jboss-5.0.0.Beta2/server/jbm2/deploy/jboss-messaging.beans!/META-INF/mysql-beans.xml]]
             at org.jboss.deployers.plugins.deployers.helpers.AbstractParsingDeployer.parse(AbstractParsingDeployer.java:172)
             at org.jboss.deployers.plugins.deployers.helpers.AbstractParsingDeployer.createMetaData(AbstractParsingDeployer.java:114)

            • 3. Re: Multiple deployment configurations
              Ales Justin Master

              Aha, having it that way, it won't work. :-)
              My TODO. :-(

              But if you can have them in 'different' DeploymentUnits, it will work.
              e.g. having a common sar, with multiple jars for beans (and -beans.xml files)