|
From: Gait B. <gai...@ti...> - 2005-09-06 09:08:18
|
Hi Wahid, basically, you have two options, and you may mix them..: 1. using wildcards in the ac. Any of the four ac parameters (cpaid, conversationid, service,action), will take "*" to mean "anything", so you may listen e.g. regardless of the conversationid, which comes in handy if your bus.partner is starting conversations. 2. You could create an array of Requests, each with a different ac, but all marking 'this' as the listener. In that case you'ld receive messages for all the ac's. You'll need to inspect the message to decide which one you're handling. --Gait. Wahid Muhammad wrote: >Patrick, > >Thanks for that.... > >It makes sense... however... > >Am I right I saying I need to create a request object for the messages I >want to receive? > >If so, what happens if I am expecting to receive different messages of >different actions... how do I know which one to listen out for? Do I have to >create multiple request objects??? >At the moment I set up the request object for the outgoing message: > >Request mshReq = new Request(ac, new URL(toMshUrl), this, >transportType,1,"3000",Constants.SYNC_REPLY_MODE_SIGNALS_AND_RESPONSE >,false,"3000"); > >Obviously this is using the current instance of the application to listen to >this message? > >How would I go about listening to a possible array of messages? > >Thanks > >Wahid > >Message: 1 >Date: Mon, 05 Sep 2005 17:57:02 +0800 >From: Patrick Yee <kc...@ce...> >To: ebx...@li... >Subject: Re: [ebxmlms-develop] 1. Re: FW: Message Listener Not WORKING!!!! > (Patrick Yee) >Reply-To: ebx...@li... > >Normally you create the entry in messageconfig table through the use of >Request object. In other words, you will not touch the data in the >database tables directly. By passing parameters to Hermes through the >Request obeect, you tell Hermes what kind of messages are concerned in >your application. There may be some other applications using the same >Hermes, but they are concerned with different messages from your >application. This, in our terms, is called application context. By its >nature, Hermes will only invoke the onMessage event in the application >with matched application context with respect to the received message. > >Hope this helps. > >Regards, >Patrick Yee >Center for E-Commerce Infrastructure Development > >Making E-Commerce Everyday Commerce > > > >Wahid Muhammad wrote: > > > >>Patrick, >> >>I found out that the problem was due to the fact that I had not put an >> >> >entry > > >>into MessageConfig table of the database for incoming messages.... >> >>After correcting this I get an entry in the database (ReceievedMessages and >>MessageStore tables) however..... >> >>The OnMessage event in the application is not getting invoked.... I can't >>understand this... why wouldn't it get invoked, even though the message is >>in the database and has been received? >> >>Thanks >> >>Wahid >> >>Message: 1 >>Date: Wed, 31 Aug 2005 15:25:28 +0800 >>From: Patrick Yee <kc...@ce...> >>To: ebx...@li... >>Subject: Re: [ebxmlms-develop] FW: Message Listener Not WORKING!!!! >>Reply-To: ebx...@li... >> >>So you got the message listener working in HTTP mode, right? Actually, >>when you can see the messages being arrived in Hermes database. There >>would be no further processing difference between HTTP and HTTPS. So you >>can try to use your old message listener and see if it works. ..p >> >>Regards, >>Patrick Yee >>Center for E-Commerce Infrastructure Development >> >>Making E-Commerce Everyday Commerce >> >> >> >>Wahid Muhammad wrote: >> >> >> >> >> >>>Im still getting the same problem..... >>> >>>Messages are coming in but the Hermes instance doesn't seem to pick on the >>>fact that a message has been received. >>> >>>Can anyone help? >>> >>>Thanks >>> >>>Wahid >>>-----Original Message----- >>>From: Wahid Muhammad >>>Sent: 04 August 2005 09:21 >>>To: 'ebx...@li...' >>>Subject: Re: Message Listener Not WORKING!!!! >>> >>>Patrick, >>> >>>There was a discrepancy with the CN name, which I have now corrected... I >>> >>> >>> >>> >>no >> >> >> >> >>>longer get the "HTTPS hostname wrong" error, but the application still >>>doesn't know a reply has been received!!! >>> >>>I can see the reply come into the directory with no problems!! >>> >>>Thanks >>> >>>Wahid >>> >>> >>>Message: 2 >>>Date: Wed, 03 Aug 2005 18:15:54 +0800 >>>From: Patrick Yee <kc...@ce...> >>>To: ebx...@li... >>>Subject: Re: [ebxmlms-develop] Message Listener Not WORKING!!!! >>>Reply-To: ebx...@li... >>> >>>What is the common name (CN) of the server certificate you are using? >>>Can you try to make the CN being 10.143.84.130? >>> >>> >>>Regards, >>>Patrick Yee >>>Center for E-Commerce Infrastructure Development >>> >>>Making E-Commerce Everyday Commerce >>> >>> >>> >>>Wahid Muhammad wrote: >>> >>> >>> >>> >>> >>> >>> >>>>Hi, >>>> >>>> >>>> >>>>I have got everything working in Hermes (I think) except for a working >>>>listener!!!! I have been using the example code provided in the >>>>documentation and it all works.... However when an incoming messages >>>>comes through it gets put into the correct location (message >>>>repository location) and I can physically see the new file.... >>>> >>>>The problem I am getting is that the code I am running doesn't seem to >>>>know a message has arrived therefore the "onMessage" method does not >>>>get invoked!! When Im sending messages through code I am connecting to >>>>Hermes: >>>> >>>> >>>> >>>>http://10.143.84.130:8080/MSH (local machine) >>>> >>>> >>>> >>>>Messages that are sent to me come down the following channel: >>>> >>>> >>>> >>>>https://10.143.84.130:443/MSH <https://10.143.84.130/MSH> >>>> >>>> >>>> >>>>Could it be that the message listener will only listen on port 8080 >>>>and not 443? If so then how can I send my messages connecting to port >>>>443 because I get an error: >>>> >>>> >>>> >>>>java.io.IOException: HTTPS hostname wrong: should be <10.143.84.130> >>>> >>>> >>>> >>>>Any help would be appreciated as I am really confused (again)!! >>>> >>>> >>>> >>>>Thanks >>>> >>>> >>>> >>>>Wahid >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>-- __--__-- >>> >>>_______________________________________________ >>>ebxmlms-develop mailing list >>>ebx...@li... >>>https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop >>> >>> >>>End of ebxmlms-develop Digest >>> >>> >>>------------------------------------------------------- >>>SF.Net email is Sponsored by the Better Software Conference & EXPO >>>September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>> >>> >Practices > > >>>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >>>Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >>>_______________________________________________ >>>ebxmlms-develop mailing list >>>ebx...@li... >>>https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop >>> >>> >>> >>> >>> >>> >> >>-- __--__-- >> >>_______________________________________________ >>ebxmlms-develop mailing list >>ebx...@li... >>https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop >> >> >>End of ebxmlms-develop Digest >> >> >>------------------------------------------------------- >>SF.Net email is Sponsored by the Better Software Conference & EXPO >>September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >>Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >>_______________________________________________ >>ebxmlms-develop mailing list >>ebx...@li... >>https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop >> >> >> >> > > > >--__--__-- > >_______________________________________________ >ebxmlms-develop mailing list >ebx...@li... >https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop > > >End of ebxmlms-develop Digest > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >ebxmlms-develop mailing list >ebx...@li... >https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop > > > |