You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Erinc Arikan <er...@gmail.com> on 2009/12/11 23:23:14 UTC

Queueing inside MINA

Hi everybody;

I'd like to combine MINA with activemq, I am wondering if that's possible.

In my application I need to send a lower priority message to an activemq
based async consumer(Another Gateway). But it appears that communication
fails sometimes, since I am  sending messages asynchronously, I don't even
realize if they go through and if there's an error in transmission , I never
send again. If the communication fails I end up not processing the message.
As a solution, I can try wait and retry approach, but I don't want to send
this message as a synchronous message and block the whole process.

Instead I'd like to use power of activemq, I am thinking about dropping the
message to internal queue in my application and spawn another thread which
will be continuously checking the queue and will try to send messages
whenever they are available. Do you think that this is doable? Has anybody
extended MINA to perform tasks like these?

Thanks in advance

Erinc

Re: Queueing inside MINA

Posted by Mark <el...@gmail.com>.
yeah.  MINA and ActiveMQ do play very well together.



On Fri, Dec 11, 2009 at 5:23 PM, Erinc Arikan <er...@gmail.com> wrote:
> Hi everybody;
>
> I'd like to combine MINA with activemq, I am wondering if that's possible.
>
> In my application I need to send a lower priority message to an activemq
> based async consumer(Another Gateway). But it appears that communication
> fails sometimes, since I am  sending messages asynchronously, I don't even
> realize if they go through and if there's an error in transmission , I never
> send again. If the communication fails I end up not processing the message.
> As a solution, I can try wait and retry approach, but I don't want to send
> this message as a synchronous message and block the whole process.
>
> Instead I'd like to use power of activemq, I am thinking about dropping the
> message to internal queue in my application and spawn another thread which
> will be continuously checking the queue and will try to send messages
> whenever they are available. Do you think that this is doable? Has anybody
> extended MINA to perform tasks like these?
>
> Thanks in advance
>
> Erinc
>