Sorry Jerome,
I really must be missing something here.
How do the jetty specific classes come in to the equation?
If I have the *.ext.jetty classes in my classpath, I can't see how
HttpServerHelper or any of the other jetty specific classes com in to
play?
Thanks for your support in my steep learning curve
Matthew
On 07/03/2007, at 6:29 PM, Jerome Louvel wrote:
Hi J. Matthew,
Here is a simple example that should help:
Server myServer = new Server(Protocol.HTTP, 8182, restlet);
myServer.getContext().getParameters().add("requestBufferSize",
"30000");
myServer.start();
Best regards,
Jerome
-----Message d'origine-----
De : J. Matthew Pryor [mailto:[EMAIL PROTECTED]
Envoyé : mardi 6 mars 2007 22:39
À : [email protected]
Objet : Re: Jetty 6.1 support with other webapps configured
Thanks so much for the answer.
Sorry to seem very dim, but where would I find an example of using
JettyServerHeler & parameterizing the conenctor?
Regards,
J. Matthew Pryor
On 06/03/2007, at 9:22 PM, Jerome Louvel wrote:
Hi J. Matthew,
If you want to run Restlets as well as Servlets in the same Jetty
container,
it is indeed better to use Jetty as a Servlet container and deploy
Restlets
in the embedded mode.
In this case, all you need to do is use the ServletServer
provided,
see
details here:
http://www.restlet.org/faq#06
As for setting up standalone server connectors, it's
generally very
simple:
just put the connector JARs in the classpath and create a new Server
instance just like in the tutorial. You can also parametrize the
connectors,
look at the Javadocs like:
http://www.restlet.org/docs/ext/com/noelios/restlet/ext/jetty/
JettyServerHel
per.html
Best regards,
Jerome
-----Message d'origine-----
De : J. Matthew Pryor [mailto:[EMAIL PROTECTED]
Envoyé : mardi 6 mars 2007 02:16
À : [email protected]
Objet : Jetty 6.1 support with other webapps configured
I am trying to work out how to have Restlet support for Jetty
6.1 but
also be able to use other servlets/web apps for that same Jetty
instance.
I haven't had any luck finding instructions or examples of
how to set
up the Jetty 6.1 support (I assume its for a stand alone
server) but
I am mostly interested in how to set up general support
for servlets
using Jetty 6.1
I currently have Restlet working with Jetty 5.1 and the servlet 2.4
API extension. Is it the same approach? I seemed to run in to API
compatibility troubles with the servlet spec API, but I didn't look
too hard at it.
If anyone has pointers for good examples/documentation for :
* setting up the jetty 6.1 Restlet support as stand-alone
* setting up jetty 6.1 Restlet support so I can also use other Java
webapps/servlets with the Jetty instance
that would be great. I have downloaded the RC4 source code
and looked
at all the tutorials and examples I can find but haven't had
any luck
with that or the mail list archives
Any help or pointers greatly appreciated
J. Matthew Pryor