We have over 130 jar dependencies
on our classpath and performance is
not an issue. After the classes you
are using are loaded at least once,
there are no significant impacts.

Each app refers to the same shared lib
folder so we update a single jar and
get every app gets the update after
a restart.

Very different from a uberjar.
Every uberjar would have to
be repackaged to include the updated
jar.

We use uberjars to deliver desktop
apps. We do not update these as
often as the back end and avoid
dealing with the desktop
environment as much as possible.

Back end stuff use the shared
jar folder.

Luc P

Sent from my iPod

On 2010-07-01, at 10:49, Paul Moore <p.f.mo...@gmail.com> wrote:

On 1 July 2010 15:29, Laurent PETIT <laurent.pe...@gmail.com> wrote:
Hello,

note that with java 6 you can specify at once to add all the jars
located in a directory:

java -cp "libs/*" clojure.main

and you can place any jar you want in directory libs.

and this is composable:

java -cp "clojure.jar:libs/*" clojure.main

My 0.02€, just in case you didn't know this (rather recent) possib ility.

Thanks. I had actually just discovered this possibility in the last
few days. In fact, it is what raised in my mind the question of
whether having too many jars on the classpath would hurt performance.
I've not yet fully integrated the idea into my thinking.

I guess it allows the possibility of bundling all application
dependencies into a lib directory, then doing something like java -cp
"clojure.jar;lib/*" clojure.main myapp.clj

But in practical terms, I guess that's the equivalent of an uberjar.
(My biggest concern about an uberjar is that I end up with each app
having a separate bundled copy of all its dependencies. That makes
version management a huge pain - imagine a bugfix release of
clojure.jar - but is otherwise not an unreasonable option).

Paul.

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

Reply via email to