Then I would need to place the call within Ring... I tried to do what I need in middle ware but it's simply impossible. What I need to init is related to how routes are dispatched by Ring and needs to be done outside of Ring.
I need the servlet context, I have to get the container call me with the servlet context somehow before getting into Ring. Using a load-on-startup I get the container to call my servlet directly before anything else in the web apps. Luc P. Ken Wesson <kwess...@gmail.com> wrote .. > On Tue, Nov 30, 2010 at 6:08 PM, <lprefonta...@softaddicts.ca> wrote: > > For my part, I need stuff done prior to anything being done including > > routing a request and I need to access the servlet context. > > Given any of the many singleton/runonce implementations that have been > posted, you just need to make sure that everything that falls under > your "anything being done including routing a request" calls the > runonce before doing anything else, and the runonce code will be run > just before the first instance of "anything being done including > routing a request". > > -- > 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 Luc P. ================ The rabid Muppet -- 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