Jetty has moved!
Jetty is a project at the Eclipse Foundation.
Homepage:http://www.eclipse.org/jetty
Downloads: http://download.eclipse.org/jetty/
Documentation:http://www.eclipse.org/jetty/documentation/current/
About:http://www.eclipse.org/jetty/about.php
Jetty Powered:http://www.eclipse.org/jetty/powered/
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
Skip to end of metadata
Go to start of metadata

Communicating to remote Glassfish EJBs from a Jetty webapp

Firstly, follow the instructions on the Glassfish site regarding how to modify your code to provide the right set of properties to your InitialContext to permit remote JNDI lookups.

Then, copy the jars required from your Glassfish installation to a new $JETTY_HOME/lib/ext/glassfish directory.

For jetty stand-alone, that is pretty much all you should need to do.

For running your webapp with the convenient maven jetty plugin, you need to put those jars onto the execution path of the plugin, and ensure that your webapp uses parent-first classloading, due to quirks of CORBA classloading. Here's an example of how your pom would look:

  • No labels
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