|
From: Patrick Y. <kc...@ce...> - 2005-11-22 09:00:38
|
Hi,
If you register two application contexts, one with wildcard (*) and one=20
with some values, to Hermes. Hermes will deliver the message to the=20
handler with exact value. In case no matched application context are=20
registered, Hermes will in turn deliver the message to the wildcard one.=20
So in your case, are you having both application contexts registered?
Regards,
Patrick Yee
Center for E-Commerce Infrastructure Development
Making E-Commerce Everyday Commerce
Gannholm Torbj=F6rn wrote:
>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 wro=
ng?
>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 =3D "HTTP";
> String toMshUrl =3D "http://host:8080/msh/ <http://host:8080=
/msh/>
>";
>
> String cpaID =3D "20040510:SE2021000969:SE9876543210";
> String service =3D
>"urn:sfti:services:documentprocessing:BasicInvoice";
> String action =3D "incomingBasicInvoice";=20
>
> ApplicationContext ac =3D new ApplicationContext(
> cpaID, "*", service, action);
>
> try {
> Request mshReq =3D 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();
> }
>
> }
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by:
>Tame your development challenges with Apache's Geronimo App Server. Down=
load
>it for free - -and be entered to win a 42" plasma tv or your very own
>Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
>_______________________________________________
>ebxmlms-develop mailing list
>ebx...@li...
>https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
> =20
>
|