On Aug 17, 6:17 pm, Adrian Cuthbertson <adrian.cuthbert...@gmail.com>
wrote:
> Hi Raphaël,
>
> If you're going to drive your app (and server) from clojure, then you
> can use Compojure's jetty.clj module. This allows you to create a
Thanks Adiran for this information. It has allowed me to get it
running quite easily.
I've posted notes of what I've learned, including a first macro to
facilitate development, at
http://www.nsa.be/index.php/eng/Blog/Using-Jwt-yes-it-s-a-J-with-Clojure
Feedback and comments welcome!
Raphaël
> servlet holder (in which you can add an instantiatedJwtservlet on a
> jetty url path). Compojure also supports the Ring protocol, so you can
> also then use it for other webapp functionality.
>
> You could also use the Ring library, but (afaik) it uses a Jetty
> AbstractHander (which is a higher abstraction of the Http connection
> than a servlet). You would need to add some logic to create a Jetty
> ServletHolder class yourself (check out the Jetty api).
>
> If you're hooking into an existing server, then you can just create a
> webapp/war with theJwtservlet and add your clojure (comporure/ring)
> apps in their own servlet using gen-class. There is an example of
> doing this on the compojure wiki.
>
> There are also some other frameworks that have been announced in this
> group - perhaps others will chip in, or search the group for previous
> posts on web frameworks.
>
> (Jwtlooks interesting, I'm going to take a good look at it as well.)
>
> Hth, Adrian.
>
> On Mon, Aug 17, 2009 at 5:07 PM, rb<raphi...@gmail.com> wrote:
>
> > HI,
>
> >Jwt(http://www.webtoolkit.eu/jwt) is a java translation of the C++
> > web toolkit (http://www.webtoolkit.eu/wt)
> > I'd like to develop a web app in clojure based onJwt, butJwtapps
> > need to run in a servlet container.
>
> > What's the best path to follow in that case? Is developing a Ring
> > adapter which would then allow me to run the app with Jetty the way to
> > go?
>
> > Every pointer will be welcome! :-)
>
> > Thanks
>
> > Raphaël
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---