Yet another way you can get a repl into an existing process running on the JVM: https://github.com/wirde/swank-inject
Disclaimer: It's a hack It uses JDI to connect to the process (requires remote debugging on the target, but no other modifications) Won't work well for some classloader hierarchies The Swank repl *doesn't* work well (yet), uses clojure.contrib.server-socket/create-repl-server instead But: You do get a (remote) repl injected into the application You can get hooks into any (singleton) instances in the target process Johan On Thu, Jul 14, 2011 at 1:06 AM, David Powell <djpow...@djpowell.net> wrote: > > I wrote a tool called liverepl a while ago: > > https://github.com/djpowell/liverepl > > It effectively lets you get a repl into a Java or Clojure process, but it > has the nice feature that it works with any Java processes without requiring > any modifications to the code. It uses the Java Attach API, which jvisualvm > and jconsole use to inject the repl server into the process, and then it > connects the console to that server. It has some special support for Tomcat > servers too, so that you can repl into a specific webapp. > > -- > Dave > > -- > 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 > -- 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