Deploying Push Server on JBoss / Wildfly

JBoss Deployment Descriptor

Push Server contains the following configuration in jboss-deployment-structure.xml file for JBoss:

<?xml version="1.0"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
      <!-- disable the logging subsystem because the application manages its own logging independently -->
      <subsystem name="logging" />

      <module name="com.wultra.powerauth.push-server.conf" />
    <local-last value="true" />

The deployment descriptor requires configuration of the com.wultra.powerauth.push-server.conf module.

JBoss Module for Push Server Configuration

Create a new module in PATH_TO_JBOSS/modules/system/layers/base/com/wultra/powerauth/push-server/conf/main.

The files described below should be added into this folder.

Main Module Configuration

The module.xml configuration is used for module registration. It also adds resources from the module folder to classpath:

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.3" name="com.wultra.powerauth.push-server.conf">
    <resource-root path="." />

Logging Configuration

Use the logback.xml file to configure logging, for example:

<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="30 seconds">

  <property name="LOG_FILE_DIR" value="/var/log/powerauth" />
  <property name="LOG_FILE_NAME" value="push-server" />
  <property name="INSTANCE_ID" value="${}" />

  <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
      <pattern>%d{ISO8601} [%thread] %-5level %logger{36} - %msg%n</pattern>

  <logger name="com.wultra" level="INFO" />
  <logger name="io.getlime" level="INFO" />

  <root level="INFO">
    <appender-ref ref="FILE" />

Application Configuration

The file is used to override default configuration properties, for example:

# PowerAuth 2.0 Client configuration

Push Server Spring application uses the ext Spring profile which activates overriding of default properties by

Bouncy Castle Installation

The Bouncy Castle module for JBoss / Wildfly needs to be enabled as a global module for Push Server.

Follow the instructions in the Installing Bouncy Castle chapter of PowerAuth Server documentation. Note that the instructions differ based on Java version and application server type.

Last updated on Mar 23, 2021 (19:29) Edit on Github Send Feedback


PowerAuth Push Server