2 Replies Latest reply on Sep 27, 2011 5:38 AM by adrianzuo

    Where I should put these user-defined jars under AS7.0?

    adrianzuo

      All

       

      I have some user-defined jars which are putted under folder "D:\jboss-4.2.2\server\default\lib\", now I need migrate the production to AS7.0, so I want to I should move them to where under the AS7.0 env.

       

      Regards.

        • 1. Re: Where I should put these user-defined jars under AS7.0?
          beve

          I want to I should move them to where under the AS7.0 env.

          You can make these jars into separate modules or create one module that contains them all. You then need to specify that your deployments depend on this/these module(s) using the the dependencies manifest header:

           

          Dependencies: your.new.module.name
          

           

          The module(s) could be statically installed in the filesystem, like the ones that are shipped with AS7, or you can package the module(s) as a jar and add a module definition in META-INF/jboss-deployment-structure.xml. There are examples of both these deployment options in the migrate application. Take a look at "Step 4" and "Step 4b".

           

          Regards,

           

          /Daniel

          • 2. Re: Where I should put these user-defined jars under AS7.0?
            adrianzuo

            Daniel

             

            Now it works well after applying your way.

            Thank you again.

             

            Regards,

            /Candice