This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (6)
- # announcements (1)
- # beginners (1)
- # boot (104)
- # braid-chat (5)
- # cbus (1)
- # cider (2)
- # clojure (147)
- # clojure-japan (1)
- # clojure-poland (1)
- # clojure-russia (31)
- # clojurescript (16)
- # core-async (4)
- # css (2)
- # cursive (14)
- # datomic (40)
- # devcards (5)
- # dirac (100)
- # emacs (5)
- # funcool (1)
- # immutant (52)
- # juxt (4)
- # ldnclj (128)
- # lein-figwheel (12)
- # leiningen (26)
- # luminus (3)
- # mount (22)
- # off-topic (11)
- # om (144)
- # onyx (2)
- # parinfer (1)
- # proton (7)
- # re-frame (55)
- # reagent (16)
- # slack-help (5)
- # yada (1)
I'm not sure about the following:
handler can be a Ring handler function, a Servlet, or an Undertow HttpHandler.. How to pass some.war file name to immutant?
I suppose I have to create an instance of my HttpServlet class and I wonder if I can just set path to my *.war file.
@abtv: if you must use the war file, you're going to need an app server like wildfly
@jcrossley3: I have the main app which is deployed as jar file. I call immutant.web/run function with my handler. Is it possible to make jar file with all batteries included? I have an alternative to run my.war file under any web server separately. The only reason why I wanted to deploy it in the same jar file is simplicity of deployment.
you can use anything that can deploy a war file. typically, that's some external process that monitors a directory for war files to deploy. but that's not immutant, which is just a library, a collection of jar files.
you can create an uberjar, but that's just a big fat jar. no web.xml or anything, just a main class.
I have a big project (written in java) I need to integrate it with my main app. Usually the java project it is deployed under jetty. I run my main app as an usual jar file. I'm trying to investigate if it's possible to run the java project in the same way, without a separate web server like jetty @jcrossley3
I see, but what if I extract war file to a folder? Could you give me a hint how to run my servlet?
I've found the following: http://lists.jboss.org/pipermail/undertow-dev/2015-February/001146.html , but haven't tested it yet
war file is just packaging. the behavior of your app is contained in the class/jar files within your war file. if those are available in your local maven repository, then your clojure project can depend on them, too.
I see. The java project is about 250 Megabytes with hundreds of jar files. I'm not sure it's worth putting all the files on class_path
@jcrossley3: I see. And what do you think about the link: http://lists.jboss.org/pipermail/undertow-dev/2015-February/001146.html ?
that article says exactly what i told you: if you need a war file, you need an app server like wildfly. undertow alone is not enough.
ah, you mean that it doesn't matter if I use war file or a folder with extracted war file content, right?
As I understand I have to provide some settings to undertow (which is stored in web.xml), right?
btw, I use XWiki Enterprise project (I downloaded war file and have made some customizations) - it's my java project
well, i guess i'm asking who created that folder structure. were your customizations made to actual *.class files?
all the other things are untouched (I also changed several config files, but as I said I didn't change the folder structure)
well, if you're stuck with a war file, then you need an app server. jetty can operate in two modes: as an app server (to deploy war files) and as an embeddable web server. i'm not sure it's possible (or advisable) for it to do both in the same process.
but undertow is not an app server. just an embeddable web server and Servlet implementation.