Damien: A good starting point for a simple web server might be to use

lein new pedestal-service

Then you can do lein uberjar to get a jar ready to run. Or check the README 
for running local dev with a local REPL.

If instead you want a WAR, you can switch from pedestal.jetty to 
pedestal.immutant in project.clj and add the Immutant plugin:

:plugins [[lein-immutant "2.1.0"]]

Then do a lein immutant war to get your WAR for deployment to e.g. WildFly 
10.

If you also want a nREPL to repl directly into the running server, have in 
project.clj e.g.:

:plugins [[lein-immutant "2.1.0"] [cider/cider-nrepl "0.15.1"]]
:immutant {:war {:nrepl {:port XXXX}}}

and do a lein immutant war --nrepl-start when making your WAR (check your 
security on the nREPL port).

Cheers,
Terje

(Haven't looked at WildFly 11 RC yet and don't know if Immutant works with 
it. Considering moving some of our services from WildFly to separate Jetty 
services instead, but WildFly 10 has worked very well.)



søndag 15. oktober 2017 10.43.36 UTC+2 skrev Damien Mattei følgende:
>
> thanks for the answers and comments of John, James and others,
> the discussion has opened many aspect of web application development and 
> it is is positive.
>
> about the IDE, i'm not using Netbeans with Scheme or LisP exclusively, in 
> fact Netbeans was used in the office just to create web service in Java,
> this thing can be done by hand in command line too, Kawa Scheme also can 
> do it itself :
>  https://www.gnu.org/software/kawa/Servlets.html
>
> from the discussion i see now many solution to test ,I will install 
> Leiningen, also i see in the doc of Immutant that it is possible to 
> generate some war files :
> http://immutant.org/documentation/current/apidoc/guide-wildfly.html#h3386
>
> i hope i could use Clojure for that because it seems a really fun and 
> solid LisP dialect.
> I will post updates when i have a concrete usable solution.
>
> Regards,
>
> Damien
>
> On Saturday, October 14, 2017 at 5:07:08 PM UTC+2, John M. Switlik wrote:
>>
>> James, 
>>
>> Thanks. I saw a writeup mentioning Leiningen that I will go back to. 
>>
>> It is not the 'toy' issue that concerns me. It is that all sorts of 
>> browsers exist as well as a whole slew of different types of users. And, if 
>> I am going to push something down to a remote device, I want to expect that 
>> it would be handled in a nice manner. 
>>
>> As for example projects, these are prime; but, they are supported by 
>> working professionals. So, Clojure does have a lot to offer. 
>>
>>    http://base2s.com/work/ 
>>
>> I am sure that I'll look back and see that it was easy. But, this seems 
>> like an opportunity to step through the thing (that is, the hugely 
>> complicated world of the muddy cloud) and see how things evolved. Those 
>> little interpreters are up there as a lure in the meantime. 
>>
>> Cheers, 
>> John
>>
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to