Hugo Duncan <[email protected]> writes:

> [email protected] (Stefan Hübner) writes:
>
>> b) How can ritz-nrepl or (preferably) ritz-swank be embedded in an
>> application?
>
> I just added instructions [1] to the ritz-swank README. I've not
> actually tried this yet, but this is essentially how the lein ritz
> plugin starts ritz-swank.
>
> Hugo
>
> [1] https://github.com/pallet/ritz/tree/develop/swank#embedding

Thank you for writing this up! With a small correction it works
beautifully:

--8<---------------cut here---------------start------------->8---
(ns my-app
  (:use [ritz.swank.socket-server :only [start]]))

;; previously: ritz.swank/start-server
(start {:server-ns 'ritz.swank.repl})
 ;; optionally takes :host/:port keyword args
--8<---------------cut here---------------end--------------->8---


Now ritz-swank works with a REPL sitting in a Hadoop application JAR.

Thank you so much!

-Stefan

-- 
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

Reply via email to