It's actually fairly straightforward. In my (ordinary java)
application, I create a thread which loads a clojure program passed on
the command line (I don't have the source in front of me, but if you
need it, I can give you a hand), and that program typically contains
something like the following:

(require 'swank.swank)
(swank.swank/start-server "/dev/null" :port 4005 :dont-close true)

Then I can simply connect to a running instance from emacs by
running:

M-x slime-connect

Hope that helps !

On Mar 17, 12:23 am, Tassilo Horn <tass...@member.fsf.org> wrote:
> Paul  Mooser <taron...@gmail.com> writes:
>
> Hi Paul,
>
> > I've been using clojure in a similar way at work. I run a swank server
> > in a separate thread inside of a running application instance, and I
> > can connect to it remotely using SLIME. It works pretty well!
>
> I could benefit from such an approach, too.  Could you elaborate a bit
> on how to do this?
>
> Here we normally develop in Java using the Eclipse IDE.  What do I have
> to do to start a swank server when I run one of our apps?
>
> Bye,
> Tassilo
> --
> Chuck Norris once roundhouse-kicked a ten dollar bill into 200 nickels.
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to