|
From: Patrick Y. <kc...@ce...> - 2003-12-17 09:55:20
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
HK,<br>
<br>
If I understand that correctly, you are setting up 2 clients, one
called Loopback and the other called Client. And you want to send a
message from LoopBack to Client, right?<br>
<br>
In this case, Loopback will register AppContext as ("A", "B", "C",
"D"), and Client will register as ("*", "*", "*", "*"). Now, a message
comes to the Hermes server, with AppContext as ("A", "B", "C", "D"),
because it is sent by Loopback. It seems that the message matches with
both AppContexts. But Hermes server will resolve to match the more
specific AppContext first, i.e. ("A", "B", "C", "D"). Therefore,
Loopback, instead of Client, will be expected to receive the message.<br>
<br>
Regards, -Patrick<br>
<br>
<br>
Han Kim NGO wrote:<br>
<blockquote type="cite"
cite="mid004f01c3b9b2$9632e160$aa3...@sd...">
<meta content="text/html; " http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 6.00.2800.1276">
<style></style>
<div><font size="2" face="Arial">Hi CY,</font></div>
<div> </div>
<div><font size="2" face="Arial">Thanks for your answer. I tried the
ApplicationContext("*","*","*","*") and it didn't work out. Here's what
I did. Maybe you can tell me what I did wrong or at least give me a
hint.</font></div>
<div><font size="2" face="Arial">I made a copy of the LoopBack class
and and renamed it to Client. So the CPAId and others values are still
the same as in the original LoopBack class. I just ask the class to
print the timestamp before sending the message.</font></div>
<div><font size="2" face="Arial">Then I slightly changed the LoopBack
class by changing the ApplicationContext to ("*","*","*","*") and I
deleted the part that sends a message. (From "AttachmentDataSource ads
..." till "mshReq.send(message); "). I also changed the 10000 value in
the sleep method to 50000 and ask the MessageListener to print the
timestamp.</font></div>
<div><font size="2" face="Arial">I started the Loopback in one window
and run the Client class in another window.</font></div>
<div><font size="2" face="Arial">I don't get anything in the LoopBack
window. But when I turn the ApplicationContext to its original value, I
do get an answer in the LoopBack window saying that a message was
received and the timestamp printed in that window is the same as the
one in the client window.</font></div>
<div><font size="2" face="Arial">That's why I asked is the
("*","*","*","*") was to receive all the messages.</font></div>
<div><font size="2" face="Arial">Do you see anything wrong in the way
I proceed? Did I miss anything?</font></div>
<div> </div>
<div><font size="2" face="Arial">Thanks again for your time.</font></div>
<div> </div>
<div><font size="2" face="Arial">Regards,</font></div>
<div> </div>
<div><font size="2" face="Arial">HK</font></div>
</blockquote>
<br>
</body>
</html>
|