Re: Migrating from Java/Spring to Clojure

2016-02-01 Thread Colin Yates
unintentionally put you off it, I would highly recommend Prismatic Schema from day one :-). Mikera writes: > On Monday, 1 February 2016 05:19:17 UTC+8, John Krasnay wrote: >> >> Hi all, >> >> I'm migrating an application from Java/Spring to Clojure and I'm searching >>

Re: Migrating from Java/Spring to Clojure

2016-02-01 Thread John Krasnay
Thanks, Sean. That's exactly the sort of thing I was looking for. jk On Sunday, January 31, 2016 at 9:11:23 PM UTC-5, Sean Corfield wrote: > > John Krasnay wrote on Sunday, January 31, 2016 at 10:11 AM: > > Instead of this, I'm considering an approach where my functions instead > return a data

Re: Migrating from Java/Spring to Clojure

2016-02-01 Thread John Krasnay
Thanks for the feedback. I wasn't sure whether mocks were frowned upon but it seems like a pretty standard approach. BTW I really like how the Clojure community has this pragmatic feel about it. Aim for pure functions, but don't bend over backwards where it doesn't naturally fit. jk On

Migrating from Java/Spring to Clojure

2016-01-31 Thread John Krasnay
Hi all, I'm migrating an application from Java/Spring to Clojure and I'm searching for a good, functional approach. The app exposes a REST interface using compojure-api and primarily interacts with a relational database and sends email. I think most people end up passing their database

Re: Migrating from Java/Spring to Clojure

2016-01-31 Thread Mikera
On Monday, 1 February 2016 05:19:17 UTC+8, John Krasnay wrote: > > Hi all, > > I'm migrating an application from Java/Spring to Clojure and I'm searching > for a good, functional approach. The app exposes a REST interface using > compojure-api and primarily interacts with a r

Re: Migrating from Java/Spring to Clojure

2016-01-31 Thread Sean Corfield
John Krasnay wrote on Sunday, January 31, 2016 at 10:11 AM: Instead of this, I'm considering an approach where my functions instead return a data structure containing a description of the side-effects to be performed (e.g. "insert these rows into this table", "send this email", ...), and having

Is there some method to implement quartz cluster without spring in clojure?

2015-05-25 Thread savior michael
I have tried the quartz to run time job, but I failed to config cluster to run job singleton. I have tried to use the immutant but i have no idea how to config it yet. Is there someone use the cluster time job? -- You received this message because you are subscribed to the Google Groups

Re: Spring and Clojure

2009-06-04 Thread Dmitriy Kopylenko
for some tasks (perhaps some concurrent processing tasks, etc.) Does it even make saense? Anyway, if someone would come up with a way to integrate Clojure code into Spring ApplicationContext and show the example, that would be interesting. Best regards, Dmitriy. 2009/6/3 Luc Prefontaine lprefonta

Re: Spring and Clojure

2009-06-04 Thread Stuart Halloway
for some tasks (perhaps some concurrent processing tasks, etc.) Does it even make saense? Anyway, if someone would come up with a way to integrate Clojure code into Spring ApplicationContext and show the example, that would be interesting. Best regards, Dmitriy. 2009/6/3 Luc Prefontaine

Spring and Clojure

2009-06-03 Thread Dmitriy Kopylenko
Hello. I'm just wondering is there a way to create Clojure beans and inject them into other Spring beans (given that Clojure code implements Java interface) inside Spring ApplicationContext, similar to other dynamic langs support:

Re: Spring and Clojure

2009-06-03 Thread Laurent PETIT
Hi, Provided that the beans you would like to see implemented via clojure must conform to a preexisting interface, I guess there would be no need at all to leverage to dynamic-language part of spring. Here is a recipe (out of my head, not tested) for how this would work: 1. identify the

Re: Spring and Clojure

2009-06-03 Thread Dmitriy Kopylenko
Thanks Laurent. So it is indeed possible. I need to dive into Clojure to understand it better (I only started looking into Clojure few days ago). Are there any Maven plugins or Ant tasks for doing AOT compilation? Perhaps a small example of this set up (with Spring bean) would be

Re: Spring and Clojure

2009-06-03 Thread Alen Ribic
This link might help. Came across this weblog titled Practical Clojure with SWT, JUnit and Spring: http://berlinbrowndev.blogspot.com/2009/04/practical-clojure-with-swt-junit-and.html -Al On Wed, Jun 3, 2009 at 6:02 PM, Dmitriy Kopylenko dmitriy.kopyle...@gmail.com wrote: Hello. I'm just

Re: Spring and Clojure

2009-06-03 Thread Luc Prefontaine
We did the reverse (using Spring directly from Clojure) without any difficulty. Never thought about creating Clojure beans however. We had already some code to bootstrap Spring from Java. Just called it from Clojure. We wanted to drop Java as much as possible but did not want to loose some