Questions tagged [immutant]

Immutant is an application server for Clojure

Immutant is an application server for Clojure. It's an integrated platform built on JBoss AS7 providing support for Ring handlers, asynchronous messaging, caching, scheduled jobs, XA transactions, clustering, daemons and more.

The official website can be found here.

24 questions
4
votes
2 answers

Deploying Multiple Immutant WAR files to Wildfly

I don't think this is version specific but I'll specify I'm on Immutant 2.1.0 and Wildfly 9.0.1.Final. I start with a stock, freshly unzipped wildfly download and run it with $ wildfly-9.0.1.Final/bin/standalone.sh. I run $ lein immutant war in my…
deadghost
  • 5,017
  • 3
  • 34
  • 46
3
votes
1 answer

Immutant2 server logs showing fishy error message

I got this error message a couple of times 21:36:01,172 ERROR [io.undertow.request] (default task-18) Undertow request failed HttpServerExchange{ CONNECT www.alipay.com:443}: java.lang.IllegalArgumentException: UT000068: Servlet path match failed …
Devasia Joseph
  • 388
  • 4
  • 14
3
votes
1 answer

Clojure Immutant 2 server Undertow; how to handle http POST?

Putting the following line into my compojure defroutes to use clojure-paypal-ipn calling the two handler functions. (POST "/paypal/ipn" [] (make-ipn-handler payment/paypal-data payment/paypal-error)) How do I handle a POST request within…
sventechie
  • 1,859
  • 1
  • 22
  • 51
2
votes
1 answer

How does a multi-threaded web server affect a Clojure program?

I know that you can build multi-threaded Clojure program explicitly using the tools in java.util.concurrent.Executors and language constructs like agents and atoms. However, if I write a Ring app, how will a multi-threaded server (like Jetty or…
Nat Knight
  • 364
  • 2
  • 10
2
votes
1 answer

How do I interface with websockets as a client using Immutant?

I'm building a Clojure app that needs to interface with Slack's real time API, and that requires a connection to a Websocket. I am aware this is possible with gniazdo, but this pulls in Jetty, and I believe that Immutant has its own Websocket…
2
votes
2 answers

immutant failing to add a cache to a web cache container

I have a heimdallr application that is deployed via wildfly. In this application I am using the cache functionality that is provided by the namespace immutant.caching. The first time I deploy the application everything goes fine without error. If I…
jrahme
  • 253
  • 1
  • 12
2
votes
3 answers

Getting a clojure map with keywords from a POST using Liberator

I'm using Liberator, and am having a hard time getting my POSTed data into a map using with keywords as the keys. Here is my resource, with a few printlines for testing: (defresource finish_validation :allowed-methods [:post] …
pickwick
  • 3,134
  • 22
  • 30
2
votes
1 answer

Can Immutant be configured to use something other than 8080 as well as to use SSL?

I am playing around with immutant and was wondering how to set two things: to setup an alternative ssl port to use port 80 instead of port 8080
zcaudate
  • 13,998
  • 7
  • 64
  • 124
1
vote
1 answer

Clojurescript Websockets with Sente 403 Error

I'm attempting to setup a web socket connection from two different ports on my localhost. I'm using Sente and Immutant. I have the following, but it returns a 403 forbidden when attempting to connect Server.clj (defn handler "Comment" [] …
newBieDev
  • 484
  • 3
  • 11
1
vote
3 answers

Create new HTTP call from Ring Request

I want to 'redirect' web request to another service. I want to change nothing about them and send them to another service (I assume with something like http-clj). The result will then do the same hop. This is required because we are replacing part…
nickik
  • 5,809
  • 2
  • 29
  • 35
1
vote
1 answer

Failing to create WAR file from Immutant

When I attempt to create a war file via the command lein with-profile prod immutant war I get an error stating: Error encountered performing task 'immutant' with profile(s): 'prod' Uberjar aborting because jar failed: No implementation of…
jrahme
  • 253
  • 1
  • 12
1
vote
1 answer

Fail to connect to queue with Immutant messaging

Currently I have an instance of ActiveMQ running, that I am attempting to connect to using immutant. Currently the code for this connection looks like so; (defn make-ctx [] (log/debug "making context") (let [ctx (m/context :host (:host…
jrahme
  • 253
  • 1
  • 12
1
vote
1 answer

error while using immutant server to access page from browser

$ lein new pedestal-service peddy and then add following file to immutant folder (ns immutant.init (:require [immutant.web :as web] [io.pedestal.http :as http] [peddy.service :as app])) (web/start-servlet "/"…
piyushmandovra
  • 4,219
  • 3
  • 19
  • 30
1
vote
1 answer

How to start immutant message queue?

From the immutant documentation at http://immutant.org/documentation/current/apidoc/guide-installation.html: With the dependencies in place, you simply invoke the Immutant services from your app’s main entry point, identified by the :main key…
deadghost
  • 5,017
  • 3
  • 34
  • 46
1
vote
1 answer

clustered immutant2 instances

Is there any way to run few clustered immutant2 based apps with no deploy to wildfly? I would like to test distributed cache having two REPLs opened but I see no option in immutant docs to have these 2 sessions in 1 cluster. Looks like for immutant…
Michal
  • 677
  • 6
  • 16
1
2