Hi camel-mina pool the producers so if the session is still alive it will be send within the same session. If not it will reconnect.
There is an option to force the session to be closed right after use, which obviously is not what you want. But other people prefer that. On Tue, Mar 2, 2010 at 3:29 PM, Carlo Camerino <[email protected]> wrote: > 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 > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
