camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlo Camerino <carlo.camer...@gmail.com>
Subject Question On Camel Mina - Multiple Messages With One IOSession
Date Tue, 02 Mar 2010 14:29:00 GMT
Hi,

I have a question regarding camel mina concerning sending different messages
in one session.

I would like to send out different messages, afaik you can configure camel
to saend a message via

from("messagesource").to("tcp://localhost:port?options");

What if i want to send three different messages and not only one?
For example i would need to send the following messages in one session

/******* Message 1 *******************/
// ESTABLISH SESSION
ESTABLISHSSESSIONMESSAGES
//GET RESPONSE
GETRESPONSE

/******* Message 2 *******************/
//SENDAUTHENTICATION
SENDAUTHENTICATIONMESSAGE
//GETRESPONSE
GETAUTHENTICATION RESPONSE

/******* Message 3 *******************/
//SENDACTUAL MESSAGE
ACTUALMESSAGE
//RECEIVE RESPONSE
RECEIVE ACTUAL RESPONSDE

I can send these as three separate message using a camel producer
.requestbody
However the three messages need to be authenticated in order for it to be
used.

Is there anyway that i can do this through camel?

Does camel mina pool connections or does it connect-disconnect?

thanks
carlo

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message