Weld Probe Client Adapter

The parent POM for Weld, specifying the build parameters

License

License

Categories

Categories

JBoss Container Application Servers CLI User Interface
GroupId

GroupId

org.jboss.weld
ArtifactId

ArtifactId

weld-probe-client-adapter
Last Version

Last Version

1.0.0.Final
Release Date

Release Date

Type

Type

jar
Description

Description

Weld Probe Client Adapter
The parent POM for Weld, specifying the build parameters
Project URL

Project URL

http://weld.cdi-spec.org
Source Code Management

Source Code Management

https://github.com/weld/weld-probe-client-adapter

Download weld-probe-client-adapter

How to add to project

<!-- https://jarcasting.com/artifacts/org.jboss.weld/weld-probe-client-adapter/ -->
<dependency>
    <groupId>org.jboss.weld</groupId>
    <artifactId>weld-probe-client-adapter</artifactId>
    <version>1.0.0.Final</version>
</dependency>
// https://jarcasting.com/artifacts/org.jboss.weld/weld-probe-client-adapter/
implementation 'org.jboss.weld:weld-probe-client-adapter:1.0.0.Final'
// https://jarcasting.com/artifacts/org.jboss.weld/weld-probe-client-adapter/
implementation ("org.jboss.weld:weld-probe-client-adapter:1.0.0.Final")
'org.jboss.weld:weld-probe-client-adapter:jar:1.0.0.Final'
<dependency org="org.jboss.weld" name="weld-probe-client-adapter" rev="1.0.0.Final">
  <artifact name="weld-probe-client-adapter" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.jboss.weld', module='weld-probe-client-adapter', version='1.0.0.Final')
)
libraryDependencies += "org.jboss.weld" % "weld-probe-client-adapter" % "1.0.0.Final"
[org.jboss.weld/weld-probe-client-adapter "1.0.0.Final"]

Dependencies

compile (3)

Group / Artifact Type Version
org.jboss.weld.probe : weld-probe-core jar 2.4.0.Final
io.undertow : undertow-servlet jar 1.3.25.Final
com.google.code.gson : gson jar 2.7

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

Weld Probe Client Adapter

Maven Central License

This adapter allows to reuse the default HTML GUI even if there is no REST API available (non-web environments).

The adapter:

  1. Either connects to a JMX server (JMX support must be enabled) or loads data from an export file
  2. Starts an embedded Undertow instance
  3. Exposes the default HTML client but using the data from step 1

Build

mvn clean package

Download

The shaded artifact is available in Maven Central: http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22weld-probe-client-adapter%22

Run

java -jar weld-probe-client-adapter-1.0.0.Final-shaded.jar

Export file

The first argument represents the path to an export file:

java -jar weld-probe-client-adapter-1.0.0.Final-shaded.jar /home/edgar/weld-probe-export.zip

JMX

Don't forget to allow to connect to a remote JVM process. E.g. use the following system properties: -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false.

WildFly

For WildFly (standalone mode) a different jmxServiceUrl must be specified and jboss-client.jar must be also on the class path, e.g.:

java -Dorg.jboss.weld.probe.jmxServiceUrl="service:jmx:http-remoting-jmx://127.0.0.1:9990" -cp '/opt/jboss/wildfly/bin/client/jboss-client.jar:weld-probe-client-adapter-1.0.0.Final.jar' org.jboss.weld.probe.ProbeJmx

Configuration

System property Default value Description
org.jboss.weld.probe.jmxServiceUrl service:jmx:rmi:///jndi/rmi://127.0.0.1:9999/jmxrmi JMX server URL
org.jboss.weld.probe.undertowHost 127.0.0.1 Undertow host - used to expose the HTML client
org.jboss.weld.probe.undertowPort 8181 Undertow port - used to expose the HTML client

Blogpost and JBoss Forge example

http://weld.cdi-spec.org/news/2015/11/10/weld-probe-jmx/

org.jboss.weld

Weld

Versions

Version
1.0.0.Final