Actually, this is the code required (the previous will not work due to
the way macro's are run!):
(def app
(-> quote-routes wrap-stateful-session))
(defservice app)
P.
On Oct 4, 2:17 pm, Paul <[email protected]> wrote:
> Managed to solve my own problem. For anyone with the same problem in
> the future, here is the corrected code:
>
> (defservice (-> my-routes wrap-stateful-session))
>
> and remove the (def app) line.
>
> P.
>
> On Oct 4, 10:27 am, Paul <[email protected]> wrote:
>
>
>
> > Hi,
>
> > I've added sandbar session mgmt to my google app engine + compojure
> > application, wrapping a stateful session around my routes
> > configuration with:
>
> > (def app (-> my-routes wrap-stateful-session))
> > (defservice my-routes)
>
> > The application compiles but I get the following error when I perform
> > session-get or session-pu!:
>
> > java.lang.IllegalStateException: Var sandbar.stateful-session/sandbar-
> > session is unbound.
>
> > Can anyone help?
>
> > Thanks,
>
> > Paul.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en