puniverse / pulsar

Fibers, Channels and Actors for Clojure
http://docs.paralleluniverse.co/pulsar/
Other
911 stars 53 forks source link

Packaging up the project in a runnable jar #22

Closed zcaudate closed 10 years ago

zcaudate commented 10 years ago

I'm just curious if I package ups project that is using quasar, do I need to invoke it with the -javaagent option ?

pron commented 10 years ago

Yes, or you can use Capsule which is a runnable JAR on steroids (allows you to describe all the JVM options -- including a javaagent -- and much, much more, directly within the JAR).

Alternatively, you can instrument the classes at build time (works for Java but not for Clojure).

zcaudate commented 10 years ago

Thanks @pron.. is there an example project (ie. simple ring server) that uses capsule that I can use as a template?

pron commented 10 years ago

Yes, Here. But in any case, I would suggest at least skimming through Capsule's README, so you'd know what's going on. The example projects includes several ways of packaging a capsule, and you only need to choose one.

zcaudate commented 10 years ago

thanks mate... will give it a go.