-
1. Re: Spring Support
clebert.suconic Jun 18, 2010 4:08 PM (in response to bdarfler)1 of 1 people found this helpfulok.. that makes it a nice area for a contribution.
Do you want to open a jira with a feature request?
Do you want to contribute a patch?
-
-
3. Re: Spring Support
timfox Jun 18, 2010 4:42 PM (in response to bdarfler)I don't know much about Spring, but AIUI it's a dependency injection framework and as such can instantiate POJOs and wire them up according to some xml config.
HornetQ is just POJOs and some factories so shouldn't Spring be able to do this already. I'm pretty sure I've seen Spring users using HornetQ in this way.
-
4. Re: Spring Support
bdarfler Jun 18, 2010 4:48 PM (in response to timfox)Spring can create and wire pojos. The benefit of the namespace is that it greatly reduces the lines of configuration and can guide users more effectively towards the correct way of doing things. Additionally it could allow for things like creation of destinations and configuration of users in the spring configuration instead of having to manage multiple additional xml configuration files specific to HornetQ.
-
5. Re: Spring Support
timfox Jun 18, 2010 4:49 PM (in response to bdarfler)1 of 1 people found this helpfulOk, fair enough. Sounds like it would be a nice feature to have
-
6. Re: Spring Support
timfox Jun 19, 2010 10:40 AM (in response to timfox)BTW did you see this http://www.theserverside.com/news/thread.tss?thread_id=60379 ?
-
7. Re: Spring Support
bdarfler Jun 19, 2010 10:48 AM (in response to timfox)I did and its a very good example of why I brought this subject up. That is an obscene amount of code and configuration to get HornetQ working with Spring.
I'll try and read through it again though.
-
8. Re: Spring Support
timfox Jun 19, 2010 11:05 AM (in response to bdarfler)I think you're being quite unfair to HornetQ here.
HornetQ is designed as a simple set of POJOs that can be used directly in your own program or in another framework, it doesn't get much simpler than that!
The stuff you're referring to that is "obscene" is not HornetQ configuration, it's Spring configuration. You can't blame HornetQ because A.N.Other framework hasn't yet integrated it in yet.
The problem with your comments on twitter etc, is you paint this to be a problem with HornetQ, e.g:
".@hornetq might be blazing fast but its a pain to setup. Not needing JNDI makes most of the examples close to useless."
What you found a pain to setup was not HornetQ, but Spring.
Using HornetQ without JNDI is extremely simple - we even ship an example in the distro showing you exactly how to do that.
If you want Spring to provide better HornetQ integration, I would agree with you there, but it's unfair to paint this lack of integration as a failing of HornetQ.
-
9. Re: Spring Support
timfox Jun 19, 2010 11:07 AM (in response to timfox)A more accurate twitter would have been "hornetq might be blazing fast but it's a pain to setup Spring to recognise it."
-
10. Re: Spring Support
bdarfler Jun 19, 2010 11:09 AM (in response to timfox)Exactly, its a lot of work to get HornetQ and Spring to work together nicely. It would be awesome if there were better Spring support in HornetQ that is all.
-
11. Re: Spring Support
timfox Jun 19, 2010 11:10 AM (in response to timfox)Regarding the uselessness of the examples, I don't really know how you came to that conclusion.
As I mentioned before there is an example that shows you exactly how to instantiate managed objects directly without using JNDI (just one line of code to do this).
Yes, the rest of the examples use JNDI to lookup managed objects. That's just because that's what most people do. If you just ignore the part of the examples that do the lookup, and substitute that part for the direct instantiation then the rest of the example is exactly the same. Hardly useless.
-
12. Re: Spring Support
bdarfler Jun 19, 2010 11:11 AM (in response to timfox)What I should have said is HornetQ might be blazing fast but its Spring support lags behinds ActiveMQ. I'll send that out just to be fair and clear.
-
13. Re: Spring Support
timfox Jun 19, 2010 11:11 AM (in response to bdarfler)Benjamin Darfler wrote:
What I should have said is HornetQ might be blazing fast but its Spring support lags behinds ActiveMQ
I disagree.
I would say Spring's HornetQ support lags behind ActiveMQ
-
14. Re: Spring Support
bdarfler Jun 19, 2010 11:14 AM (in response to timfox)Except that ActiveMQ are the authors of the ActiveMQ namespace for Spring, not the other way around.