jetty-project / jetty-alpn-agent

Enables Jetty ALPN/NPN support via -javaagent JVM option
Apache License 2.0
47 stars 16 forks source link

DynamicAgent for attaching the dynamically to JVM without javaagent option #5

Open gmokki opened 8 years ago

gmokki commented 8 years ago

Usage

The DynamicAgent works by

sbordet commented 8 years ago

Is this complete ? I don't see class DynamicAgent.

Also, I need a better description of what the problem is, and how the solution addresses the problem.

gmokki commented 8 years ago

Sorry about the missing files, I forgot them when I redid the PR with signoff. The missing files are now back.

The goal is to get alpn working without any need to add anything to JVM options. My goals it to make an jar that can be run with java -jar application.jar

gmokki commented 8 years ago

Actually even jetty itself could just depend on this agent and install it dynamically in its main method. Instead of needing to provide documentation to the users on where to download and how to enable the agent manually.

markelliot commented 7 years ago

This is a cool approach, but for those that want a workaround while this hasn't merged:

xkr47 commented 6 years ago

Is this ok for merge?