[jboss-jira] [JBoss JIRA] (WFLY-11377) messaging-clustering-singleton does not run under OpenShift

Robert Baumgartner (Jira) issues at jboss.org
Mon Nov 19 10:39:00 EST 2018


    [ https://issues.jboss.org/browse/WFLY-11377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13663517#comment-13663517 ] 

Robert Baumgartner edited comment on WFLY-11377 at 11/19/18 10:38 AM:
----------------------------------------------------------------------

messaging-clustering-singleton needs some update before it can run under OpenShift.
The postconfigure.sh will be executed automatically after the container will be started.

please add following two files:

extensions/extensions.cli
    ##Batch file to configure the standalone server for the messaging-clustering-singleton quickstart.
    
    embed-server --server-config=standalone-openshift.xml 

    batch
    
    # -- The console is disabled by default in the Full HA profile. Enable the console to allow us to view the quickstart output.
    # /subsystem=logging/console-handler=CONSOLE:add(level=INFO,formatter="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n")
    # /subsystem=logging/root-logger=ROOT:add-handler(name="CONSOLE")

    # -- Enable clustering, and set a cluster password
    /subsystem=messaging-activemq/server=default:write-attribute(name=cluster-password, value=password)
    
    # -- Add mdb-delivery-group named "my-mdb-delivery-group"
    /subsystem=ejb3/mdb-delivery-group=my-mdb-delivery-group:add(active=true)
    
    # -- Deploy the messaging-clustering-singleton.war file
    # deploy /deployments/messaging-clustering-singleton.war

# -- Run this batch file
run-batch

# Reload the server
reload

extensions/postconfigure.sh

#!/bin/bash

echo " "
echo "   $0 start"
echo " "

${JBOSS_HOME}/bin/jboss-cli.sh --file=${JBOSS_HOME}/extensions/extensions.cli

echo " "
echo "   $1 end"
echo " "



was (Author: rbaumgar):
messaging-clustering-singleton needs some update before it can run under OpenShift.
The postconfigure.sh will be executed automatically after the container will be started.

please add following two files:

extensions/extensions.cli
##Batch file to configure the standalone server for the messaging-clustering-singleton quickstart.

embed-server --server-config=standalone-openshift.xml 

batch

# -- The console is disabled by default in the Full HA profile. Enable the console to allow us to view the quickstart output.
# /subsystem=logging/console-handler=CONSOLE:add(level=INFO,formatter="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n")
# /subsystem=logging/root-logger=ROOT:add-handler(name="CONSOLE")

# -- Enable clustering, and set a cluster password
/subsystem=messaging-activemq/server=default:write-attribute(name=cluster-password, value=password)

# -- Add mdb-delivery-group named "my-mdb-delivery-group"
/subsystem=ejb3/mdb-delivery-group=my-mdb-delivery-group:add(active=true)

# -- Deploy the messaging-clustering-singleton.war file
# deploy /deployments/messaging-clustering-singleton.war

# -- Run this batch file
run-batch

# Reload the server
reload

extensions/postconfigure.sh

#!/bin/bash

echo " "
echo "   $0 start"
echo " "

${JBOSS_HOME}/bin/jboss-cli.sh --file=${JBOSS_HOME}/extensions/extensions.cli

echo " "
echo "   $1 end"
echo " "


> messaging-clustering-singleton does not run under OpenShift
> -----------------------------------------------------------
>
>                 Key: WFLY-11377
>                 URL: https://issues.jboss.org/browse/WFLY-11377
>             Project: WildFly
>          Issue Type: Enhancement
>         Environment: JBoss EAP 7.1 and OpenShift 3.11
>            Reporter: Robert Baumgartner
>            Assignee: Jason Greene
>            Priority: Major
>
> create a project in OpenShift
> create a new a app with the quickstart: messaging-clustering-singleton
> install-singleton is not executed...



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list