|Re: [jetty-users] H2 without ALPN agent?|
On Tue, May 5, 2020 at 8:24 AM Travis Spencer <travis.spencer@xxxxxxxxx> wrote:
> I am trying to use HTTP 2 with Jetty 9.4.28.v20200408 and OpenJDK 1.8.0_252. I have followed the instructions in the docs, and it works fine.
> However, I'd like to make it work without using the ALPN boot agent. From https://webtide.com/jetty-alpn-java-8u252/, this is possible, but appears to not be doable using the module system. Is that right?
You mean the Jetty module system or the JPMS module system?
I guess the Jetty module system.
> If so, how can I add ALPN support to the HTTP2 module without using the ALPN module. I imagine it's possible by copying $JETTY_HOME/etc/jetty-http2.xml into $JETTY_BASE/etc and modifying it slightly. Is that right? If so, can you guide me a little?
The Jetty ALPN agent is brought in by $JETTY_HOME/modules/alpn-impl/alpn-8.mod.
It is enough for you to define a $JETTY_BASE/modules/alpn-impl/alpn-8.mod.
There, you remove the [files], [license] and [exec] sections - all
related to the agent - and you should be good to go.
Only the [description] and [lib] sections should remain.
Typically, you don't want to change the file in $JETTY_HOME, but just
copy it and modify it in $JETTY_BASE.
Developer advice, training, services and support
from the Jetty & CometD experts.
jetty-users mailing list
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users
Back to the top