On Wed, May 18, 2011 at 10:09 AM, Jason <jasond...@gmail.com> wrote: > hi I have a small problem.. I want to execute a java init function > just once for a scheduler. I have tried defonce and def to do this, > this gets the work done but which is the best way to do it. What i > actually want is run the function once when the jvm starts
The simplest way might be to use gen-class and define a -main function. This can call (or be) the function you want to execute. -- Protege: What is this seething mass of parentheses?! Master: Your father's Lisp REPL. This is the language of a true hacker. Not as clumsy or random as C++; a language for a more civilized age. -- 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