On Fri, Mar 20, 2009 at 1:52 AM, Viktor Klang <viktor.kl...@gmail.com>wrote:

> Guys,
>
> I might only have 8 years of experience with working with the
> Servlet-stack, but the main reason that Lift is hooked into a Filter is that
> Lift filters requests... ;)
>
> Hooking it in as a Servlet would only be feasible if we'd have a two-pass
> system where:
>
> The request first goes through the Filter, to do rewriting and see if it's
> a Lift-request, then do a dispatch to a LiftServlet and let the lift servlet
> do the actual delivery of the payload, else just passing the request through
> the FilterChain
>
> What do you think?
>

By default Lift stays as a Filter.

It will be possible to run Lift as a Servlet.

It will also be possible to run Lift as a Portlet.

Toilet, no.

Other kind of input (e.g., hook it into that high performance Scala-based
HTTP server that Russian guy wrote), yes.

The bottom line is that we want to divorce Lift from the mechanics of where
the request came from or is going to as much as possible.

The only breakage that I can see is that Req.request is going to turn from
an HttpServletRequest to Box[HttpServletRequest]  The rest will be under the
covers.


>
> Cheers,
> Viktor
>
> On Fri, Mar 20, 2009 at 12:16 AM, Chad Skinner <chadwskin...@gmail.com>wrote:
>
>>
>>
>> On Thu, Mar 19, 2009 at 5:44 PM, David Pollak <
>> feeder.of.the.be...@gmail.com> wrote:
>>
>>> Chad,
>>> What would be most helpful is if you could mock up and example with
>>> servlets (written in Scala or Java).  If I have something that I can run and
>>> test, then I can figure out how to shim Lift into it.
>>>
>>>
>>
>> David, I'll try to mock something up when I get a little bit of time,
>> however I don't know much about a lot of the services supported by Lift
>> (Comet, being one) and so any example I come up with would be a little short
>> sighted at best. Are you familiar with OSGi and would you be interested in
>> discussing methods of implementing Lift as services? In the meantime I will
>> start working on a couple of the simpler applications and getting the
>> servlets working on OSGi.
>>
>> Also, I don't know much about the snippets, are the classes containing the
>> snippets pooled or instantiated on a request basis or are they treated as
>> singletons? The reason I ask is I am using Easybeans with JPA and would like
>> to be able to inject the required EJB. If the snippets are singletons then
>> this would not work otherwise I would need to know how to extend the factory
>> to inject the EJB.
>>
>> Thanks Again,
>> Chad
>>
>>
>>
>
>
> --
> Viktor Klang
> Senior Systems Analyst
>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to