Adam Clements writes:

> I don't really want to migrate my whole app to immutant's framework right 
> now though (plus I'm just interested in how one might employ this pattern 
> for things other than web apps too) so I've been looking through to see if 
> I can work out how to do just the classloading/dependency resolution part. 
> I can't seem to find anything though. Does that happen within the JBoss AS 
> part of it rather than in clojure?
>

The classloader isolation is provided by a combination of the AS itself
(specifically its JBoss Modules[1] component) and java shims within
Immutant. The dependency resolution is handled my a combination of java
and clojure code, which uses pomegranate via leiningen-core in a module
that is isolated from the application to prevent the leiningen-core
dependencies from bleeding over.

If you are looking for a clojure example of using JBoss Modules for
isolation, see hiredman's polycosm[2] project.

If you want to discuss isolation and runtime dependency in more detail,
find me in #immutant on freenode. I'm happy to tell you what I know.

And even though it's often used and discussed for web applications,
Immutant can be used as a general container for many non-web clojure
applications.

[1]: https://docs.jboss.org/author/display/MODULES/Introduction
[2]: https://github.com/hiredman/polycosm
-- 
Toby Crawley
http://immutant.org | http://torquebox.org

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to