Jetty 6 and XBean

by Dejan Bosanac

As you probably know, Jetty is a web server (and servlet container) written purely in Java. Because it is small, fast and has a well designed configuration API it is often used as a embedded server in various Java applications (Continuum, FishEye, ...).

Of course, when you use Jetty in a Spring-based application, you will want to configure it as you configure the rest of your application (as a Spring bean). Since it has a well defined configuration API, this is not a problem to achieve.

2 Comments

Johannes Brodwall
2006-10-12 12:21:30
The XBeans version looks much better. But I still wonder what's wrong with:



Server server = new Server();
server.addConnector(new SelectChannelConnector(8081));
server.addContextHandler(new WebAppContext("/", "webapp", false));

sapporo
2006-10-12 12:39:45
Or how about a shiny new Spring 2.0 XML namespace?


I'm sure XBean is great and all, but I'd rather not deal with yet another style of XML config.