|
From: Frankie L. <fr...@mi...> - 2003-01-31 08:50:19
|
Hermes confugrationDear Peter,
There are currently three ways to receive a message in 0.9.2.0:
1. Trusted repository approach - the incoming message is saved as a =
file.
2. Client-side polling - the Request object constantly polls the MSH and =
see if there is new message.
3. URL approach - the incoming message is sent to the location =
specified, e.g. a mail account.
The key to choosing the approach to receive message is MessageListener =
and its URL parameter:
1. Trusted repository - URL points to a directory location, e.g. =
"file://tmp/ebxmlms/repository". This directory must be configured in =
MSH configuration file. "MessageListenerImpl" should be used instead of =
implementing an MessageListener interface by yourself, since it will =
never be called.
2. Client-side polling - URL should be "null", and you can implement =
MessageListener interface and pass "this" to the constructor.
3. URL approach - this is very similar to case 1. In fact, if the URL =
has a "file" protocol, it is regarded as a repository. Otherwise it is =
the destination address where the message should be sent.
I think your implementation is correct =3D)
Best regards,
Frankie
----- Original Message -----=20
From: Mayne, Peter=20
To: 'fr...@mi...'=20
Cc: Vijiaraj, Prabaharan=20
Sent: Friday, January 31, 2003 7:58 AM
Subject: Hermes confugration
I work with Prabaharan Vijiaraj at Spherion. We've been looking at the =
Hermes Message Service Handler V0.9.2.0. Praba says that you're the =
current support mechanism. 8-)
We set it up so the LoopBack test works. The documentation says that =
returning a URL from getCLientUrl() will make the server pass incoming =
messages to that URL. However, doing this just made the server =
instantiate a LoopBack object and call its onMessage() method.
To get the server to send an incoming message to a URL, we had to =
replace:=20
Request mshReq =3D new Request(ac, new URL(toMshUrl), this, =
transportType);=20
with:=20
MessageListener ml =3D new MessageListenerImpl(new =
URL("http://myWebServer/"));=20
Request mshReq =3D new Request(ac, new URL(toMshUrl), ml, =
transportType);=20
which bypasses the LoopBack client's getClientUrl completely.=20
Is this the correct way to send an incoming message to a URL?=20
Thanks.=20
PJDM=20
-- =20
Peter Mayne=20
Technology Consultant=20
Spherion Technology Solutions=20
Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602=20
T: 61 2 62689727 F: 61 2 62689777=20
The information contained in this email and any attachments to it:
(a) may be confidential and if you are not the intended recipient, any =
interference with,=20
use, disclosure or copying of this material is unauthorised and =
prohibited; and
(b) may contain personal information of the recipient and/or the sender =
as defined=20
under the Privacy Act 1988 (Cth). Consent is hereby given by the =
recipient(s) to=20
collect, hold and use such information and any personal information =
contained in a=20
response to this email, for any reasonable purpose in the ordinary =
course of=20
Spherion's=20
business, including forwarding this email internally or disclosing it to =
a third party. All=20
personal information collected by Spherion will be handled in accordance =
with=20
Spherion's Privacy Policy. If you have received this email in error, =
please notify the=20
sender and delete it.
(c) you agree not to employ or arrange employment for any candidate(s) =
supplied in=20
this email and any attachments without first entering into a contractual =
agreement with=20
Spherion. You further agree not to divulge any information contained in =
this document=20
to any person(s) or entities without the express permission of Spherion.
|