Barry,
On Sun, May 17, 2009 at 10:26 AM, Barry Kaplan <[email protected]> wrote:

>
> I'm looking for a bootstrap example of integrating lift into an
> existing application that needs to server up XML documents via a REST
> api.


Ooohhh... this is my favorite way to bookstrap Lift apps.


>
>
> The application is already operational and cannot be reconfigured to
> live within lift -- I'm looking to lift to add just the http service
> and infrastructure.


Do you want everything to live in the same WAR file?  If you, set your
web.xml file to send requests to your REST apis to the LiftFilter.  If you
need something explicit, please let us know and I'll work up a specific
example.


>
>
> Does such a beast exist? (BTW, I have the lift book, but it seems only
> to discuss adding an api to UI based lift application.)


So, once you've got your web container forwarding the API requests to your
Lift app, just write some of the api code (pattern matching on the incoming
requests) and use your existing persistence classes.

Is this enough for you or is it too abstract?  I'll be glad to work up an
example if it's too abstract.

Thanks,

David


>
>
> thanks!
> -barry
>
> >
>


-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to