Skip to content

Instantly share code, notes, and snippets.

@mcupak
mcupak / data-source-help.out
Created October 9, 2017 05:01
data-source add --help
[standalone@localhost:9990 /] data-source add --help
DESCRIPTION:
Add a new data-source
REQUIRED ARGUMENTS:
--name - Required argument in commands which identifies
@mcupak
mcupak / xa-data-source-help.out
Created October 9, 2017 05:02
xa-data-source add --help
[standalone@localhost:9990 /] xa-data-source add --help
DESCRIPTION:
Add a new XA data-source (unlike the add operation, this command accepts
xa-datasource-properties).
REQUIRED ARGUMENTS:
@mcupak
mcupak / datasources-read-resource.out
Created October 9, 2017 05:03
/subsystem=datasources:read-resource
[standalone@localhost:9990 /] /subsystem=datasources:read-resource
{
"outcome" => "success",
"result" => {
"data-source" => {
"ExampleDS" => undefined,
"MySqlDS" => undefined
},
"jdbc-driver" => {
"h2" => undefined,
@mcupak
mcupak / data-source-test-connection-in-pool.out
Created October 9, 2017 05:04
data-source test-connection-in-pool
[standalone@localhost:9990 /] data-source test-connection-in-pool --name=MySqlDS
true
[standalone@localhost:9990 /] xa-data-source test-connection-in-pool --name=XAMySqlDS
true
@mcupak
mcupak / datasource-monitoring.out
Created October 9, 2017 05:05
Datasource monitoring on WildFly.
[standalone@localhost:9990 /] data-source read-resource --name=MySqlDS\
--include-runtime=true --recursive=true
allocation-retry=n/a
allocation-retry-wait-millis=n/a
allow-multiple-users=false
background-validation=n/a
background-validation-millis=n/a
blocking-timeout-wait-millis=n/a
capacity-decrementer-class=n/a
capacity-decrementer-properties=n/a
@mcupak
mcupak / enable-request-dumping-handler.xml
Created October 9, 2017 05:10
Activating RequestDumpingHandler from Undertow on WildFly.
...
<profile>
...
<subsystem xmlns="urn:jboss:domain:undertow:3.0">
...
<server name="default-server">
...
<host name="default-host" alias="localhost">
...
<filter-ref name="request-dumper"/>
@mcupak
mcupak / enable-request-dumping-handler.log
Created October 9, 2017 05:11
RequestDumpingHandler output on WildFly.
20:35:44,466 INFO [io.undertow.request.dump] (default task-1)
----------------------------REQUEST---------------------------
URI=/
characterEncoding=null
contentLength=-1
contentType=null
header=Accept=*/*
header=User-Agent=curl/7.43.0
header=Host=localhost:8080
locale=[]
@mcupak
mcupak / access-log.xml
Created October 9, 2017 05:13
Setting up an access log with WildFly.
...
<profile>
...
<subsystem xmlns="urn:jboss:domain:undertow:3.0">
...
<server name="default-server">
...
<host name="default-host" alias="localhost">
...
<access-log use-server-log="true"
@mcupak
mcupak / access.log
Created October 9, 2017 05:14
Access log sample on WildFly.
11:24:20,338 INFO [io.undertow.accesslog] (default task-8) localhost\
[04/Aug/2016:11:24:20 -0400] "GET / HTTP/1.1" 200 "curl/7.43.0"
@mcupak
mcupak / access-log.cli
Created October 9, 2017 05:20
Setting up an access log with WildFly.
/subsystem=undertow/server=default-server/host=default-host/setting=access-log:\
add(pattern="%h %t \"%r\" %s \"%{i,User-Agent}\"", use-server-log=true)