twitter
    !! Tell us what you want to Learn / Know !!

Deployments

There are two types of deployments
  • Hot Deployment
  • Cold Deployment
Hot Deployment:
        Deploying an application while the server is in running state is said to be hot deployment.
Cold Deployment:
        Deploying an application while the servers are in shutdown state is said to be cold deployment.
The application deployment in JBoss can be done in many ways
Auto deploy:
              Click here to download the sample application.
              
              Copy the application to server’s deploy folder.
             
              JBOSS_HOME/server/ServerName/deploy
              
              You can test your application by entering the following url
          
              http://localhost:<port>/suren
            
JMX Console:       

Step1:
       Open the JMX Console
              
       http://localhost:8180/jmx-console



Step2:
         Search for jboss.system

Click on service=MainDeployer


Now search for void deploy() method


In the param value give the full path of the application.
C:/apps/suren.war


Click on invoke.





You can test your application by entering the following url.
http://localhost:<port>/suren



Twiddle  
Navigate to the following location using command prompt.
JBoss_Home\bin
Type the following command
twiddle  -s  localhost:1199  -u admin  -p  admin  invoke  “jboss.system:service=MainDeployer”  deploy  c:/apps/suren.war


Where port is the service binding port which you can find in the jboss-service.xml  or in sample-bindings.xml.


0 comments:

Post a Comment