[Lift] Re: chaining servlets

2009-03-02 Thread Charles F. Munat
Greg, I'm very interested in how this works out. I've been looking at Jersey and I really like the annotations, but I have been way too swamped to really play with it with Lift (I've only tried their Hello World app). If you get this working, I'd love to see it. Chas. Meredith Gregory wrote:

[Lift] Re: chaining servlets

2009-03-02 Thread Meredith Gregory
David, Please find below the web.xml i'm currently experimenting with. Best wishes, --greg http://java.sun.com/dtd/web-app_2_3.dtd";> JerseyFilter Jersey Filter Attempting to use Jersey as a Filter com.sun.jersey.spi.container.servlet.ServletContainer LiftFilter Lift Filter

[Lift] Re: chaining servlets

2009-03-02 Thread Meredith Gregory
PPS The reason i want Jersey on the outbound path is that it has pretty nifty support for rendering to XML and other formats. A single Produces annotation at the class level, for example, suffices to cause all the web methods to render according to format specified in the annotation. Oh, and Jersey

[Lift] Re: chaining servlets

2009-03-02 Thread Meredith Gregory
P.S. The reason the POJOs is of interest separately from the JPA goop is that you can feed that into the schemagen mvn plugin and out pops a reasonably decent xsd. This allows you to plug into existing XML tool chains -- if you use those. Schemagen barfs on the JPA. i could never get Oxygen to do w

[Lift] Re: chaining servlets

2009-03-02 Thread Meredith Gregory
Tim, et al, Thanks for the many responses. Here's the overall context. i've got a group that has done some significant work building a JRoR site. Now they want to scale. As a part of a midterm strategy to get some reasonable tooling in, we're building Scala-based RESTful APIs. Being an idiot, i wa

[Lift] Re: chaining servlets

2009-03-02 Thread Timothy Perrett
Greg, can I enquire to your specific use case? I¹d be interested to hear what you feel Jersey adds value to over lift (im not familiar with Jersey)? In my experience when you need a round the houses solution such as this their can often be a simpler path :-) Cheers, Tim On 02/03/2009 22:46, "Vi

[Lift] Re: chaining servlets

2009-03-02 Thread David Pollak
Not to be a nudge, but how about if Greg sends us his web.xml file and the name of his Jersey Filter, we re-write the web.xml file for him and he writes a wiki page explaining the process? On Mon, Mar 2, 2009 at 2:46 PM, Viktor Klang wrote: > hehe, no worries, I'm one of your fans. :) > > You sh

[Lift] Re: chaining servlets

2009-03-02 Thread Viktor Klang
hehe, no worries, I'm one of your fans. :) You should be able to accomplish this by having the filter mapping for Jersey in web.xml placed before the Lift filter mapping: "Recall that a filter chain is one of the objects passed to the doFiltermethod of a filter. This chain is formed indirectly vi

[Lift] Re: chaining servlets

2009-03-02 Thread Meredith Gregory
Marius, Viktor, Many thanks for your prompt responses. You'll have to pardon me as i've not graduated from Web101 ;-). i was really looking for an example. To illustrate, in looking at web.xml in a archetype-generated lift project i see that only filter and filter mapping is defined. How is a serv

[Lift] Re: chaining servlets

2009-03-02 Thread Viktor Klang
On Mon, Mar 2, 2009 at 8:51 PM, Meredith Gregory wrote: > Lifted, scalads and lasses, > > Does anybody have a working sample of chaining the lift servlet with a 3rd > party servlet? i'm interested in doing this with the Jersey servlet to get > some of their request/response rendering support. Th