Hi, Just adding onto my previous query….. I'm using me.getEndpoint() to get the destination endpoint and me.getProperty(JbiConstants.SENDER_ENDPOINT) to get the source endpoint where 'me' is the message exchange. For messages whose status is "Active", I'm able to get the source and destination endpoints correctly using the above code. However, for messages whose status is "Done", the source and destination endpoints are not updated and still show the old ones. My guess is that only the status is updated in the same message exchange instance and all other information is the same as that of the previous message exchange. Is my understanding correct? If yes, then the information about source and destination endpoints is highly confusing to the user and is not reliable.
Is there any other reliable way of getting the source and destination endpoints? Can anyone please reply to my query? I'm in urgent need of some help regarding this issue. Regards, Nandini >_____________________________________________ >From: Bhat, Nandini (NSN - IN/Bangalore) >Sent: Wednesday, May 12, 2010 12:38 PM >To: [email protected] >Subject: How to get the source and destination endpoints of a message >exchange > > >Hi, > >I'm writing a class that implements the ExhangeListener class and I need to >log the flow of messages between endpoints in the exchangeSent() method. >So I need to find a way to get the source and destination endpoints of a >message exchange. >Is there a way to do this? > >Regards, >Nandini
