You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by agatone <zo...@gmail.com> on 2009/01/07 11:48:45 UTC

ActiveMQ - can it do tasks

Hello,

As I'm from non-Java world trying to get into this Java stuff it's quite
hard to understand all JAVA stuff concepts. B/c of that I have problems
understanding ActiveMQ manual (mostly i don't know how to define search
terms that would get me something useful) so I decided to ask here.

Basically I'd like to know only if these things are possible and what term
to search for in manual (or google) so I can read about it.

Can ActiveMQ invoke code (written: C#, JAVA, PHP etc) when certain message
is received or in any other way do something when a message is received?

I don't want to hang consumer on the activemq so it waits for the msg
itself.

Thank you
-- 
View this message in context: http://www.nabble.com/ActiveMQ---can-it-do-tasks-tp21328947p21328947.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: ActiveMQ - can it do tasks

Posted by James Strachan <ja...@gmail.com>.
2009/1/7 agatone <zo...@gmail.com>:
>
> Ok, so I'll have to code durable consumers for every language i'll use and
> foreach topic , and it will be invkoing things.

Its normally just a couple of lines of code to write a consumer


> That kinda sounds lots of code with those 1000  :|

If you are averse to writing code; write a single program using a
single consumer which takes the String of the queue to use and the
name of the program to run; then you can fire off any executable you
wish when a message comes in.

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Re: ActiveMQ - can it do tasks

Posted by agatone <zo...@gmail.com>.
Ok, so I'll have to code durable consumers for every language i'll use and
foreach topic , and it will be invkoing things.
That kinda sounds lots of code with those 1000  :|

 

James.Strachan wrote:
> 
> 2009/1/7 agatone <zo...@gmail.com>:
> 
> 
> So you'd write programs in some language (C#, Java, PHP) which consume
> messages from a queue - and your program would invoke whatever code
> you like.
> 
> Typically ActiveMQ itself doesn't invoke things - your consumer
> program consumes messages then invokes code.
> 
> You might have 1000 programs running on hundreds of servers - with a
> single ActiveMQ broker dispatching messages to them for example.
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> Open Source Integration
> http://fusesource.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/ActiveMQ---can-it-do-tasks-tp21328947p21329405.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: ActiveMQ - can it do tasks

Posted by James Strachan <ja...@gmail.com>.
2009/1/7 agatone <zo...@gmail.com>:
>
> Hello,
>
> As I'm from non-Java world trying to get into this Java stuff it's quite
> hard to understand all JAVA stuff concepts. B/c of that I have problems
> understanding ActiveMQ manual (mostly i don't know how to define search
> terms that would get me something useful) so I decided to ask here.
>
> Basically I'd like to know only if these things are possible and what term
> to search for in manual (or google) so I can read about it.
>
> Can ActiveMQ invoke code (written: C#, JAVA, PHP etc) when certain message
> is received or in any other way do something when a message is received?
>
> I don't want to hang consumer on the activemq so it waits for the msg
> itself.

So you'd write programs in some language (C#, Java, PHP) which consume
messages from a queue - and your program would invoke whatever code
you like.

Typically ActiveMQ itself doesn't invoke things - your consumer
program consumes messages then invokes code.

You might have 1000 programs running on hundreds of servers - with a
single ActiveMQ broker dispatching messages to them for example.
-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/