immutant.wildfly

Utility functions only useful within a WildFly container.

async-streaming-supported?

(async-streaming-supported?)

Returns true if the container supports async HTTP stream sends.

base-uri

(base-uri)(base-uri host)(base-uri host protocol)

Returns the base URI for the deployment, given a host [localhost] and protocol [http]

context-path

(context-path)

Returns the HTTP context path for the deployed app

get-from-service-registry

(get-from-service-registry k)

Looks up a service in the WildFly internal service registry.

http-port

Returns the HTTP port for the embedded web server

in-cluster?

(in-cluster?)

Returns true if running inside a cluster

in-eap?

(in-eap?)

Returns true if we’re in an EAP container.

messaging-remoting-port

(messaging-remoting-port)

Returns the port that HornetQ is listening on for remote connections

port

(port socket-binding-name)

Returns the (possibly offset) port from the socket-binding in standalone.xml