Skip to content

Docker based Timer Service test case Payara/MariaDB/Hazelcast cluster setup

Notifications You must be signed in to change notification settings

bravo2zero/docker-payara-timer

Repository files navigation

docker-payara-timer

Docker based Timer Service test case for Payara/MariaDB/Hazelcast cluster setup

Pre-requisites:

  • JDK 1.8
  • Maven
  • Docker

Usage

  • Build test artifact
mvn clean install
  • Build docker image using script provided
./build.sh
  • Start docker container using provided script
./start.sh
  • Use default admin username: admin and password: admin when prompted
  • Deploy/undeploy test artifact with:
bin/asadmin deploy --target test-cluster --name test.payara.timer deployments/test.payara.timer.ear-1.0.0-SNAPSHOT.ear
bin/asadmin undeploy --target test-cluster test.payara.timer
  • Test application implements a stub schedule which runs every minute and writes to instance log

Note:

  • tail instance log files with: tail -f /opt/payara41/glassfish/nodes/node1/inst?/logs/server.log
  • MariaDB is accessible on standard port (3306) as DBA: root/password

About

Docker based Timer Service test case Payara/MariaDB/Hazelcast cluster setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published