This is the follow-up code I wrote to help me understand JMS-Topic
(javax.jms.Topic).
Regards,
John
(ns jms.jms-topic
(:use [jms.jms-test :only (get-initial-context
get-message-text)])
(:import (javax.jms Session MessageListener)))
(defn publish-term-message-to-
I wrote this program to help me explore and understand JMS-Queue
(javax.jms.Queue). I was working with OpenJMS which comes bundled with
the GlassFish application server (running on Windows). In addition to
installing JDK-EE 1.5+GlassFish, you will need to include the
following jars in your Clojure
Thanks for the help Lauri!
John
On Oct 25, 10:29 am, Lauri Pesonen wrote:
> Hi John,
>
> 2009/10/25 jsrodrigues :
>
>
>
> > When I try the following:
> > user=> (into {} (map #([% (* % %)]) [1 2 3 4]))
>
> The #(...) form assumes that the is a function c
Hi,
I'm trying to find the #(...) equivalent of (fn [] ...) for the
following case:
user=> (into {} (map (fn [x] [x (* x x)]) [1 2 3 4]))
{4 16, 3 9, 2 4, 1 1}
When I try the following:
user=> (into {} (map #([% (* % %)]) [1 2 3 4]))
I get the error:
java.lang.RuntimeException: java.lang.Illeg