|
From: Ng C. Y. [Cyng] <cy...@cs...> - 2003-06-17 03:31:16
|
Hi,
> Specifically, I'm trying to use the "File system operation - I" mode where
> the MSH writes to a location on the file system where I can poll for new
> messages (presumably by just doing directory listings. Supposedly the
> location in the file system is the "TrustedRepository" variable defined in
> msh.properties.xml? That property takes a delimited list of locations.
> How does this work, and how is it enabled? I put in a value for the Trusted
> Repository, but nothing ever seems to be written there.
If you are using polling mode to write files, you have to supply
a ClientMessageListenerImpl (with URL being file) to Request or you can
implement your own MessageListener with your own onMessage() (with URL being
null) and supply it to Request. Of course, your client, i.e., Request object,
has to be alive in order to poll received message.
However, if you want to use the trustedRepository mode, you have to
supply a MessageListenerImpl() (with URL being trusted file repository) to
Request. This MessageListenerImpl is submitted to MSH server and MSH server
checks to see this file repository can be trusted according to the property
file. That means, if you supply a MessageListenerImpl but the URL is not
trusted by MSH server (due to a mismatch with property file), there will be
an exception. Hope this help.
Regards,
CY
----------------------------------------------------------------------------
Ng Chi Yuen, CY. cy...@ce... http://www.cecid.hku.hk/
Technology Officer,
Centre for E-Commerce Infrastructure Development,
The University of Hong Kong
----------------------------------------------------------------------------
|