Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleJetty 6 JNDI support

Before you can get the transaction manager and datasources via JNDI ENC (URLs starting with java:comp/), you first need to configure Jetty with support for it.
See Jetty's JNDI documentation page or have a look at the appendix to get instructions to quickly enable this in the default Jetty config.

...

Code Block
UserTransaction ut = (UserTransaction) ctx.lookup("java:comp/UserTransaction");

Anchor
appendix
appendix

Appendix: Configure Jetty's JNDI ENC

...