8 Replies Latest reply on Oct 20, 2010 7:04 AM by vickyb b

    Hot Deployment Please help

    vickyb b Newbie

      I have jboss 4.3 and i hve application that uses ejb 3.0 everytime i make changes in my ejb i have build to restart jboss which

      is tryring as my jboss takes 9min to start bcoz of some clustering and other stuff can anybody please help me out how to turn on hot deploment

      i am using separate node for deploment not default/deploy

      i have googled a lot but no perfect answere

        • 1. Re: Hot Deployment Please help
          Rob Stryker Master

          You shouldn't have to restart all of JBoss... you should just have to full-publish the ejb deployment project.

          • 2. Re: Hot Deployment Please help
            Max Rydahl Andersen Master

            Exactly - ejb3.0's in AS 4 (and 5) unfortuantely does not support hotdeploy but you do not need to restart the full server - just redeploy the app.

            • 3. Re: Hot Deployment Please help
              vickyb b Newbie

              some parts am using ejb 2.0o too  ejb3.0 and ejb2.0 dont exists in the same package where ever am using ejb2.0 can i just create jar file and deploy in the exploded earfile and i heared that we have to configure in jboss-service.xml  for hot deployment in last mbean

              <mbean code="org.jboss.deployment.scanner.URLDeploymentScanner"
                    name="jboss.deployment:type=DeploymentScanner,flavor=URL">
                  
                    <depends optional-attribute-name="Deployer">jboss.system:service=MainDeployer</depends>

               

                  
                    <attribute name="URLComparator">org.jboss.deployment.DeploymentSorter</attribute>

               

                  
                    <attribute name="FilterInstance"
                       attributeClass="org.jboss.deployment.scanner.DeploymentFilter"
                       serialDataType="javaBean">
                       <!-- Files starting with theses strings are ignored -->
                       <property name="prefixes">#,%,\,,.,_$</property>
                       <!-- Files ending with theses strings are ignored -->
                       <property name="suffixes">#,$,%,~,\,v,.BAK,.bak,.old,.orig,.tmp,.rej,.sh</property>
                       <!-- Files matching with theses strings are ignored -->
                       <property name="matches">.make.state,.nse_depinfo,CVS,CVS.admin,RCS,RCSLOG,SCCS,TAGS,core,tags</property>
                    </attribute>

               

                   
                    <attribute name="ScanPeriod">60000</attribute>

               

                    <!-- A flag to disable the scans -->
                    <attribute name="ScanEnabled">true</attribute>

               

                 
                    <attribute name="URLs">
                       deploy/
                    </attribute>

               

                   
                    <attribute name="RecursiveSearch">True</attribute>

               

                 </mbean>

               

              as i said am not using default/deploy directory

               

              am using node***

              what are the changes i need to make please help

              • 4. Re: Hot Deployment Please help
                Max Rydahl Andersen Master

                what do you mean by

                 

                "am using node***" ?

                • 5. Re: Hot Deployment Please help
                  vickyb b Newbie

                  there is D:\vinay\jboss\server\default\deploy

                  am not deploying there

                  i hvae separate dir

                  D:\vinay\jboss\server\node8080\deploy

                  this where am doing it

                   

                  and jboss 4.3.0 ga does not support hot depolyment for ejb3.0

                  • 6. Re: Hot Deployment Please help
                    vickyb b Newbie

                    Lets forget about node please tell me if we can hot depoly ejb3.0

                    • 7. Re: Hot Deployment Please help
                      Max Rydahl Andersen Master

                      hotdeploy of individual classes that are EJBs ? No, that is not possible.

                       

                      hotdeploy of a single module/archive ? Yes, that is possible - simply redeploy it (right click, full publish) or touch the descriptor (in JBT there is the "touch" button to do this)

                       

                      You do *not* need to restart the full appserver if your app is clean (i.e. no usage of classes from the bootclasspath)

                      • 8. Re: Hot Deployment Please help
                        vickyb b Newbie

                        Thanks for the reply i have two more question i dont know what is meant by

                        (right click, full publish) or touch the descriptor (in JBT there is the "touch" button to do this)  as i am new to jboss  and sorry this may be dump question what i did was i simply copied archive file i.e jar file of a module and pasted into lib folder where it was originally there as cannot deleted ( i get message that it is being used) and simply touched application.xml file altough application was reployed but dint reflect any changes please give some more insight.