off-topic

https://github.com/clojurians/community-development/blob/master/Code-of-Conduct.md Clojurians Slack Community Code of Conduct. Searchable message archives are at https://clojurians-log.clojureverse.org/
Mario C. 2021-03-26T16:55:15.302400Z

Wasn't sure if #beginners was the right place to ask so Ill put it here in the meantime.

after a few years of experience working with Clojure I STILL dont know the purpose of WildFly
What problem does it solve?
What are some questions a developer asks themselves or problems they runs into that leads them to say "Hey let me use WildFly".
Ive seen videos that give analogies to what an application server is and it makes sense but I don't see how its any different than running a jar with.. java -jar myproject-standalone.jar
Like what are some examples of "Hey if I did java -jar myproject-standalone.jar then X, Y and Z isn't going to work... Let use WildFly instead". (I know that running a command is not the same as Wildfly but I'm having a hard time wording this question)
Or what are some things you may manually need to do that WF solves the issue or simplifies. 

Mario C. 2021-03-26T16:56:48.303200Z

Most of my experience has been writing code and not building deployment pipelines so perhaps that experience is what I am lacking thats preventing things from clicking

seancorfield 2021-03-26T17:01:36.304900Z

@mario.cordova.862 FWIW, at World Singles Networks, we package all our web apps as JAR files and run them with java -jar ... and we use the embedded Jetty adapter from Ring to start the web server. I’ve not felt a need for a web server container such as WildFly etc.

Mario C. 2021-03-26T17:05:26.305700Z

So then at what point does it become a need? Or is it something that is never a need and its just a nice to have? But then what is so nice about it?

phoenixjj 2021-03-26T17:20:54.309100Z

they renamed JBoss to WildFly. 😏 we used in production. provided nice UI for WAR deployment and connection pooling an etc etc. It has paid support from Redhat hence the way to make money. we later switched to Tomcat. Now world have switched to cloud and micro services, not sure how much it is still useful. In Clojure world most people running jar so seems like more less useful.

phoenixjj 2021-03-26T17:21:19.309400Z

lol it's been a decade.

Mario C. 2021-03-26T17:40:07.309500Z

At my previous job we created a WAR file so that makes sense. As for the connection pooling.. doesn't code do that. I remember using C3P0/Hikari, isn't that used for connection pooling (DB) or this a different type of connection pooling?

seancorfield 2021-03-26T18:43:45.309800Z

We use c3p0 for database connection pooling (and next.jdbc supports that — and HikariCP — out-of-the-box. as well as with Component)

seancorfield 2021-03-26T18:44:48.310Z

We have a legacy app that uses Tomcat and I’m so looking forward to deleting all that cruft off our production servers and just using java -jar instead once we get that app fully rewritten!

kewne 2021-03-26T21:17:33.310500Z

Wildfly (and JavaEE app servers) were somewhat popular some years ago but have fallen out of fashion (for good reason imo); the rationale for them is similar to the one for containers now, except the isolation is done at a classloader level. Moreover, app servers have to implement a set of standard APIs, so you could program to those and deploy to any JavaEE app server (theoretically, because they were standard the same way SQL is standard), which would be managed by ops.

kewne 2021-03-26T21:20:48.310700Z

I would say that the dirt cheap storage and memory, as well as the rise of “you build it you run it” made the separation of dev and ops silly, plus projects are much less standardized now…