Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test JBoss deployment automatically?

I have jboss application. And want to test deployment automatically. And want to add this task as a project in Hudson

My vision is based on the following stages:

  1. Put my application to JBoss(copy ears, configs, libs e.t.c)
  2. Run JBoss

    I have a Linux-machine and now our project is require JBoss 4.3.2. How can I run the JBoss and analyze results. Is my application deployed fully and successfully or not?

  3. Run some standalone tests

  4. Stop JBoss
like image 702
Max Avatar asked Oct 30 '09 14:10

Max


People also ask

What is auto deployment in JBoss?

Automatic application deployment is a simple process that consists of dropping an application into the deployments folder, which is located in the path JBOSS_HOMEstandalonedeployments. By default, every application archive (WAR, JAR, EAR, and SAR) that is placed into this folder is automatically deployed on the server.

How do I know if an application is running in JBoss?

The simplest way to check the status of an application running on JBoss / WildFly is to use the CLI tool and the deployment-info command.

What is JBoss deployment scanner?

The deployment scanner is only used in standalone mode. Its job is to monitor a directory for new files and to deploy those files. It can be found in standalone.

How many ways we can deploy application in JBoss?

Deployment Modes The scanner can operate in one of two different modes, depending on whether it will directly monitor the deployment content in order to decide to deploy (or redeploy) it.


1 Answers

Use Cargo for an automatic "(download server), start server, deploy application, run tests, undeploy, stop server" cycle. The Maven Cargo plugin does a good job with executing integration tests using Surefire. has support for most app servers, including JBoss 4.

Cargo provides the following Tools and APIs:

  • A Java API to start/stop/configure Java Containers and deploy modules into them.
  • A Java API to parse/create/merge Java EE Modules
  • Ant tasks, Maven 1, Maven 2 plugins.
like image 90
mhaller Avatar answered Dec 24 '22 20:12

mhaller