Lightweight JMS broker
Asked Answered
B

5

28

I'm looking for a small and yet efficient enough lightweight JMS broker solution with no or minimum of dependencies. My messaging code should be running in the environment with a lot of dependencies I have no control of. Thus it would make ridiculous to deploy say ActiveMQ solution along with my custom bunch of classes.

Bryozoan answered 24/3, 2010 at 12:21 Comment(2)
So you don't have a say over if your code can depend on activemq classes or not?Verso
I don't quite understand your questionBryozoan
B
14

Currently I'm investigating FFMQ solution. It's open source (GNU LGPL license), has only 4 dependencies (commons-logging, log4j, jms and jmx), and it's mature enough to accomplish my goals.

Bryozoan answered 25/3, 2010 at 10:34 Comment(2)
is there any pointers on how to send and receive messages over a queue created in FFMQ. I googled it but never found one.Potiche
I like small projects :) Has FFMQ common wire protocols, to integrate not only with java?Postiche
M
5

Especially if you're using spring, don't count activemq out. You can also run it as an embedded server, and it isn't really all that heavyweight.

Look at: http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html

Mulatto answered 25/3, 2010 at 10:49 Comment(4)
My code is running in a healthy server environment with the fixed set of dependencies. Usage of Spring container along with ActiveMQ broker would compromise server (dependencies could be overridden, possible class loading issues etc). So I ruled out such heavy solutions in the first placeBryozoan
You don't necessarily have to use spring in this configuration. You can start the embedded broker purely from java. By itself, activemq doesn't have many external dependencies. That said, I understand what you're saying about trying to keep things as lightweight as possible.Mulatto
I tried to deploy ActiveMQ at first, but it has crashed the ecosystem of my server. It proved to have just enough of dependencies to break it))Bryozoan
That and every solaris server I have tried to get ActiveMQ on it crashes after a few days with no errors being reported.Kenon
E
4

I assume that you are looking for lightweight solutions for JMS provider and dont want go with (EMS, Apache etc.) but still need to use JMS.

Have a look at Building a Lightweight JMS Provider may be this is what you need.

Estevan answered 24/3, 2010 at 14:19 Comment(1)
If someone had 2015 tutorial about lightweight JMS I would be happyPostiche
P
2

If JMS is not a hard requirement, and you are simply looking for a Messaging/Event system, you should take a look at Java EE 6 Events:

http://java.dzone.com/articles/java-ee6-events-lightweight

Polyester answered 24/3, 2014 at 13:0 Comment(0)
M
1

However ActiveMQ distribution is large, it can be shrinked down to a few jar about 3MB all

Modred answered 17/10, 2014 at 10:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.