Versions Compared

Key

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

...

  • @Resource equivalent to <resource-ref>, <resource-env-ref>, <env-entry> and <message-destination-ref> in web.xml
  • @Resources declares java:comp/env name linkages for reference by JNDI lookups
  • @PostConstruct equivalent to <post-construct> in web.xml
  • @PreDestroy equivalent to <pre-destroy> in web.xml
  • @RunAs equivalent to <run-as> in web.xml

Lets look first at how you can use web.xml to declare injections and callbacks without needing to use JDK1.5 annotations.

...

Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery