This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-08-31
Channels
- # admin-announcements (9)
- # announcements (2)
- # beginners (16)
- # boot (18)
- # cider (22)
- # cljs-dev (10)
- # clojure (154)
- # clojure-denmark (5)
- # clojure-dev (5)
- # clojure-nl (2)
- # clojure-russia (13)
- # clojurescript (161)
- # cursive (3)
- # datomic (9)
- # editors (5)
- # emacs (25)
- # hoplon (57)
- # immutant (19)
- # instaparse (1)
- # ldnclj (2)
- # liberator (19)
- # off-topic (7)
- # re-frame (12)
- # reagent (10)
do you explicitly have org.immutant/wildfly
in your dependencies? that should only be loaded when you are in-container, and is added to the war automatically by lein immutant war
. It expects classes from the container to be available, so will throw if loaded outside the container
in-cluster?
tries to load immutant.wildfly
if it is available so it can call immutant.wildfly/in-cluster?
, but will return false if that ns isn't available
Maybe we should wrap the ns in a guard that prevents it from even trying to load outside of the container
I just wonder how I'd start multiple deployments and how I can have them configured differently (same app).
you shouldn't ever need to call fns from immutant.wildfly
directly - the useful ones have versions in immutant.util
that wrap them with checks to make sure the ns is available, so you can pretty much safely ignore immutant.wildfly
it might be tricky to have the exact same war file deployed multiple times with different configs, since there would be no good way for each deployment to know who it is
actually, you may be able to have the deployment figure out the context path it is on (those have to be unique), and it could use that information to load a config file off a known location on disk
Yeah that's what I'm starting to realize. I started up Wildfly management console and there is no way to set any parameters of any kind for a deployment. I though i could set a few config files on the web interface and say "this one is development" and "this one is production" and they listen on different ports