|
From: Patrick Y. <kc...@ce...> - 2005-09-20 09:26:07
|
Gait, you are right. SyncReply only applies to the case when Hermes tries to send ebMS-acknowledgement back to the sender upon receiving a message. However, Hermes will not hold until the onMessage() has been called. When the received message has been persisted in the database and file system, the acknowledgment can be sent, either using the same HTTP connection (sync) or a new one (async). As a result, since only reliable messages has the sync reply need, it only applies to the case when request.sendreliably() is called. ..p Regards, Patrick Yee Center for E-Commerce Infrastructure Development Making E-Commerce Everyday Commerce Gait Boxman wrote: > synchronous here only applies to the MSH-MSH communication (it's an > ebMS setting). > What it means is that the receiving MSH must return the acknowledgment > on the SOAP response, rather than in a separate message. > I believe Hermes will hold the ack until the receiving client has > picked up the message (i.e. until onMessage returned), but I'm not > completely sure. > However, request.send does *not* wait for the acknowledgment. > request.sendReliably probably does. > Patrick you may want to give the final verdict, my memory is a little > blurred here.. > > pso...@no... wrote: > >> >> Wahid, >> thx for your help.... >> but perhaps, i don't understand something.... >> I 've modify sample LoopBack like your sample... >> >> I have this output : >> Try to send......... >> // request.send(..) >> Message sent ... >> sleep for 10 seconds......... >> >> Message received... // onMessage >> >> I should hope this output : >> Try to send......... >> // request.send(..) >> Message received... // onMessage >> Message sent ... >> sleep for 10 seconds......... >> >> Is it possible and how ? is there an issue ? or is it wrong to do >> this ? >> >> thx for your help >> >> Regards >> Pascal >> >> >> >> >> >> *Wahid Muhammad <wa...@ph...>* >> >> 08/09/05 12:49 >> >> >> Pour : "'ebx...@li...'" >> <ebx...@li...> >> cc : "'pso...@no...'" >> <pso...@no...> >> Objet : RE: [ebxmlms-general] LoopBack sample >> >> >> >> >> Pascal, >> >> Im sure you can send a synchronous message using the constructor of >> the request object.... >> >> Request mshReq = new Request( >> ac, new URL(toMshUrl), this, >> transportType,1,"3000",Constants.SYNC_REPLY_MODE_SIGNALS_AND_RESPONSE >> ,false,"3000"); >> >> If you use the tellisense on the constants object and you will see >> the different transport types. >> >> Hope this helps >> >> Regards >> >> Wahid >> >> ------------------------------------------------------------------------ >> >> *From:* pso...@no... >> [mailto:pso...@no...] * >> Sent:* 08 September 2005 11:24* >> To:* ebx...@li...* >> Subject:* [ebxmlms-general] LoopBack sample >> >> >> Hi, >> I'm an hermes new user.. and i try to understand and use it........ >> >> Is'it possible to send synchronus message (It seems yes) with the >> solution ? and how ? for example in LoopBack sample what are the >> modifications ? >> >> In my configuration, it seems that all sended messages are received >> when i re-execute LooBack... >> >> Regards, >> Pascal >> |