Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
88 lines (60 sloc) 2.96 KB

JBoss EAP Notes

Table of Content

Getting Started

CLI

  • jboss_cli.sh --connect controller=myjboss-host:9999 -- connect to the JBoss CLI port
  • [standalone@myjboss-host:9999 /]module remove --name=module_name -- remove a module
  • http://stackoverflow.com/questions/9819561/jboss-as-7-update-system-property-via-cli
  • [standalone@myjboss-host:9999 /] :read-resource(include-runtime=true, recursive=true, recursive-depth=10) -- get all JBoss configuration info
  • [standalone@dev2-qdsapp1:9999 /] /subsystem=logging/root-logger=ROOT:write-attribute(name="handlers", value=["CONSOLE", "FILE_RH"]) -- write multiple values to an attribute

CLI Cookbook

Tricks

Turn on Access Logging

More info: https://access.redhat.com/solutions/185383

In <virtual-server name="default-host>, add this line:

<access-log pattern="%h %l %u %t %r %s %b %{Referer}i %{User-Agent}i %S %T" prefix="access_log_"/>

Add a tricky system property

[standalone@dev2-qdsapp4:9999 /] /system-property=ldap_searchBase:add(value="DC=
test,OS=test2")

Enable HTTPS connector

Redhat.com: Implement SSL Encryption

  1. Add the HTTPS connector
/profile=default/subsystem=web/connector=HTTPS/:add(socket-binding=https,scheme=https,protocol=HTTP/1.1,secure=true)
  1. Configure the keystore
/profile=default/subsystem=web/connector=HTTPS/ssl=configuration:add(name=https,certificate-key-file="${jboss.server.config.dir}/keystore.jks",password=SECRET, key-alias=KEY_ALIAS)

or just edit the standalone.xml directly:

<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"  redirect-port="8443" />
 
  <connector name="https" scheme="https" protocol="HTTP/1.1" socket-binding="https" enable-lookups="false" secure="true">
<ssl name="foo-ssl" password="secret" protocol="TLSv1" key-alias="foo" certificate-key-file="../standalone/configuration/foo.keystore" />
  </connector>

Environment Variables

<security>
    <user-name>${env.OPENSHIFT_MYSQL_DB_USERNAME}</user-name>
    <password>${env.OPENSHIFT_MYSQL_DB_PASSWORD}</password>
</security>

Classloading Issues

You can’t perform that action at this time.