NAME

Rex::Apache::Deploy::JBoss - Deploy application to JBoss.

DESCRIPTION

With this module you can deploy EAR/WAR archives to JBoss.

SYNOPSIS

use Rex::Apache::Deploy qw/JBoss/;

context_path "/myapp";

task "dodeploy", "j01", "j02", sub {
  deploy "myapp.ear",
    deploy_path => "/opt/jboss/server/default/deploy";
};

FUNCTIONS

deploy($file, %option)

This function deploys the given WAR archive. For that it will connect to the Tomcat manager. You have to define username and password for the Tomcat manager in the %option hash. If the Tomcat manager isn't available under its default location /manager you can also define the location with the manager_url option.

task "dodeploy", "j01", "j02", sub {
  deploy "myapp.war",
    context_path => "/myapp",
    deploy_path => "/opt/jboss/server/default/deploy";
};
context_path($path)

This function sets the context path for the application that gets deployed. This is a global setting. If you want to specify a custom context path for your application you can also do this as an option for the deploy function.

context_path "/myapp";