Skip to content

Support for JBoss Wildfly? #599

@joshcode47

Description

@joshcode47

Hello everyone,
I would like to instrument an application with the Java SpecialAgent, which is deployed as an ear on a JBoss Wildfly application server (v20.0.1.Final). I can integrate the SpecialAgent jar by setting the java options of the application server via the environment variables in my Dockerfile.

ENV JAVA_OPTS=" $JAVA_OPTS -javaagent:/opt/jboss/wildfly/standalone/opentracing-specialagent-1.7.4.jar "
ENV JAVA_OPTS=" $JAVA_OPTS -Dsa.exporter=jaeger"
ENV JAVA_OPTS=" $JAVA_OPTS -Dsa.log.level=config"

However, I have no possibility to static attach the agent to the ear-file when starting the server, because the deployment of the applications is only done after the server is started. A dynamic attachment is also not possible, because to my knowledge no PID is created for the deployments on the Wildfly.

My question now would be, if it is generally possible to attach the Java SpecialAgent to an ear/war in a JEE Application Server like JBoss Wildfly or if it is only possible to attach the Java SpecialAgent to standalone jars.
If it is possible, I would be very grateful for a short instruction.

Many thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions