|
From:
<tor...@tu...> - 2005-11-07 16:52:35
|
Hi all,
I found a tip in the archives that a parameter "*" may be put instead of any
parameter in the ApplicationContext to signify that I don't care which
particular value it has.
However this doesn't work for me, so I wonder if I am doing anything wrong?
Using hermes 1.0.0.1 (the latest download)
As soon as I put a "correct" value for conversationID, the message is
received...
Thanks,
/tobe
Code:
public void run() {
String transportType = "HTTP";
String toMshUrl = "http://host:8080/msh/ <http://host:8080/msh/>
";
String cpaID = "20040510:SE2021000969:SE9876543210";
String service =
"urn:sfti:services:documentprocessing:BasicInvoice";
String action = "incomingBasicInvoice";
ApplicationContext ac = new ApplicationContext(
cpaID, "*", service, action);
try {
Request mshReq = new Request(ac, new URL(toMshUrl), this,
transportType);
mshReq.enablePoller(true);
System.out.println("Sleep for 60 seconds then quit...");
Thread.sleep(60000);
} catch (RequestException e) {
e.printStackTrace();
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
|