Code Monkey home page Code Monkey logo

python-payara5-setup's Introduction

Examples

.app

  • location relative to current dir or absolute
  • context-root
  • application name
location = /tmp/foo.war
context-root = /
name = my-foo-app 

deploys foo.war at / with the name my-foo-app

.lib

  • Location (default common)
    • jar-location relative to current dir or absolute
postgresql.jar
[applibs]
my-special-logger.jar

installs postgresql.jar for container usage, and my-...jar for application use

.cres

  • Property map
    • jndi-name
    • keys = values
[properties]
"jndi/my-props"
url = http://localhost/${CONTEXT_PATH}

creates a jndi resource jndi/my-props with properties url = http://...

  • String value
    • jndi-name = value
[string]
jndi/my-str = "The magic text"

creates jndi string resource jndi/my-string with value The ...

.set

  • ensure a xml node
[ensure]
'configs/config[@name="server-config"]'
. = mdb-container
max-pool-size = ${THREADS|2}

Ensures the node \<configs>\<config name="server-config">\<mdb-container max-pool-size="..."> exists

  • attributes
[attributes]
'configs/config[@name="server-config"]/mdb-container'
max-pool-size = 1

Sets the property of the existing created node(s)

  • properties
[properties]
'configs/config[@name="server-config"]/network-config/protocols/protocol/http[@default-virtual-server="server"]'
serverName = "${SERVER_NAME|}"
scheme-mapping = "X-Forwarded-Proto"

Sets the <property name="serverName" value="..."/> in the http element

.sys

Sets system properties

my.system.property = my-valye

.jdbc

; "postgresql" # databasetemplate - postgresql is default
[jdbc/my-ds]
"user:pass@host:port/database"
non-transactional-connections = true

Create jdbc/my-ds as a nontransactional postgresql datasource to the address given address

.jms

  • enable remote jms-server
[REMOTE]
address = host.my.domain:7676

Configure remote JMS server

  • Factory
[QueueConnectionFactory]
name = "jndi/my-factory" ; required
; transaction-support = XATransaction # this is default

Create a connection factory with the given name, and sane defaults. Properties are the domain.xml known properties.

  • Queue/Topic
[Queue]
name = "jndi/my-worker-queue" ; required
; AddressList = "host:port,host:port,..."

Create a queue for a mdb

.jvm

Set JVM options

[remove]
-Xmx*
-Xms*
[add]
"-Xmx${JAVA_OPT_MX|2G}"
"-Xms${JAVA_OPT_MS|2G}"

The above example removes any -Xmx or -Xms settings already in the options, and adds new options, that are configurable from environment variables. Note the use of "" - these are only needed when expanding environment variables and similar.

A special section exists: [clear] that will remove all settings.

Setup hint

  • run payara5/bin/asadmin --verbose
  • enter the page that allow the change wanted
  • copy domain.xml
  • execut change
  • diff -u -w -W280 <(xmllint -format domain.xml | xmllint --exc-c14n -) <(xmllint -format payara5/glassfish/domains/domain1/config/domain.xml | xmllint --exc-c14n -)
  • try to replicate by rmaking file(s) that modify domain.xml

python-payara5-setup's People

Contributors

mb-dbc-dk avatar mbd-dbc-dk avatar

Watchers

 avatar  avatar Jørgen G. Nielsen avatar Hans-Henrik Lund avatar James Cloos avatar Jacob Poulsen avatar Søren Vibjerg avatar  avatar Jan Bauer Nielsen avatar Finn Stausgaard avatar Anders Andersen avatar  avatar Anders Vestergaard avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.