You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
|
Dec
(21) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(22) |
Feb
(41) |
Mar
(100) |
Apr
(113) |
May
(70) |
Jun
(89) |
Jul
(79) |
Aug
(17) |
Sep
(16) |
Oct
(9) |
Nov
(7) |
Dec
(22) |
| 2004 |
Jan
(42) |
Feb
(2) |
Mar
(20) |
Apr
(35) |
May
(18) |
Jun
(14) |
Jul
(12) |
Aug
(3) |
Sep
(5) |
Oct
(3) |
Nov
|
Dec
(1) |
| 2005 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
(1) |
May
(3) |
Jun
(9) |
Jul
(18) |
Aug
(10) |
Sep
(12) |
Oct
(4) |
Nov
(4) |
Dec
(9) |
| 2006 |
Jan
(10) |
Feb
(2) |
Mar
(3) |
Apr
(3) |
May
(4) |
Jun
(9) |
Jul
(1) |
Aug
(1) |
Sep
(10) |
Oct
(29) |
Nov
(27) |
Dec
(14) |
| 2007 |
Jan
(9) |
Feb
(23) |
Mar
(3) |
Apr
(9) |
May
(21) |
Jun
(24) |
Jul
(21) |
Aug
(22) |
Sep
(11) |
Oct
(5) |
Nov
(3) |
Dec
(4) |
| 2008 |
Jan
(2) |
Feb
(5) |
Mar
(3) |
Apr
(22) |
May
(18) |
Jun
(14) |
Jul
(27) |
Aug
(20) |
Sep
(16) |
Oct
(17) |
Nov
(26) |
Dec
(48) |
| 2009 |
Jan
(37) |
Feb
(14) |
Mar
(39) |
Apr
(66) |
May
(140) |
Jun
(127) |
Jul
(78) |
Aug
(26) |
Sep
(24) |
Oct
(34) |
Nov
(10) |
Dec
(20) |
| 2010 |
Jan
(6) |
Feb
(7) |
Mar
(51) |
Apr
(49) |
May
(71) |
Jun
(57) |
Jul
(42) |
Aug
(53) |
Sep
(21) |
Oct
(4) |
Nov
|
Dec
(1) |
| 2011 |
Jan
|
Feb
(1) |
Mar
(4) |
Apr
(2) |
May
(3) |
Jun
|
Jul
(2) |
Aug
(5) |
Sep
(1) |
Oct
(2) |
Nov
(2) |
Dec
|
| 2012 |
Jan
(2) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(3) |
Jun
(1) |
Jul
|
Aug
(2) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
| 2014 |
Jan
(2) |
Feb
(2) |
Mar
|
Apr
|
May
(4) |
Jun
(2) |
Jul
(4) |
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(2) |
Dec
(6) |
| 2015 |
Jan
(1) |
Feb
(4) |
Mar
(11) |
Apr
(15) |
May
(12) |
Jun
(13) |
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(3) |
Nov
(5) |
Dec
(15) |
| 2016 |
Jan
(8) |
Feb
(1) |
Mar
(3) |
Apr
(1) |
May
(4) |
Jun
(2) |
Jul
(1) |
Aug
(1) |
Sep
(1) |
Oct
(2) |
Nov
|
Dec
|
| 2017 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
(1) |
Jun
(6) |
Jul
(15) |
Aug
|
Sep
(1) |
Oct
(3) |
Nov
(3) |
Dec
(7) |
| 2018 |
Jan
(6) |
Feb
(8) |
Mar
(12) |
Apr
(6) |
May
(5) |
Jun
(3) |
Jul
(4) |
Aug
(6) |
Sep
(1) |
Oct
(2) |
Nov
|
Dec
(2) |
| 2019 |
Jan
(5) |
Feb
(5) |
Mar
|
Apr
|
May
(5) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(3) |
Dec
|
| 2021 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2022 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(9) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
|
Mar
(4) |
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Gait B. <gai...@ti...> - 2002-12-19 13:23:28
|
Hi, while doing some internal testing in preparation for the = interoperability tests in Europe (within CEN), I found some issues with = the MSH. First issue is with the Service element, which, according to section = 3.1.4.1 of the ebMS 2 spec must be a URI unless a type attribute is = present. AFAICT, the MSH does not check this. Second is with multiple Errors: The API does not allow for adding = multiple errors to an ebXML message. The only function to add an Error = is the addErrorList function, which will add an ErrorList element with = one Error. I suggest that the ebxmlMessage class is augmented with an = addError function, which creates the ErrorList when needed. Alternative = is to allow for the creation of an empty ErrorList, and open up the = addError in the ErrorList class. The third issue is related to DuplicateElimination. I set up two Monitors talking to each other. One Monitor repeatedly = sends a message with a fixed message id and time stamp, and duplicate = elimination (DE) turned on. However, all messages are received by the = other Monitor. After adding some additional logging to = MessageServer.hasReceived, I found that the record for the corresponding = message is never retrieved from the database. I also noticed that = hasReceived queries against a set of application context parameters and = the message id, which I believe to be wrong, at least for DE. For DE, = checking should be done on the parameters passed in from the message, = since we want to check for duplication of the message itself. Did I miss something in the configuration that might break proper DE = handling? Could it be that it does not work because I'm looping back on = the same MSH, and the sending Monitor actually updates the DB in between = calls? thnx, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Gait Boxman Manager Advanced Technology & Standards TIE Product Development BV Amsterdam, The Netherlands Tel: +31 20 658 9091 Fax: +31 20 658 9945 E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2aWNlLg0KDQpSZWdhcmRzLA0K V0sNCg== |
|
From: Jason v. Z. <ja...@ze...> - 2002-12-12 07:50:24
|
On Thu, 2002-12-12 at 01:17, Patrick Yee wrote: > Dear Ciju, > > I am sorry that the classes you mentioned are those proprietary > libraries provided by our center. So no source code is available in > the public. However, we can give you more information about the > classes if you have special need on the library. So, would you please > tell us about your case and so that we can provide appropriate > assistance? Proprietary libraries used in an open source project? Will the sources ever be released? Hermes is an open source project, yes? > Thanks a lot. > > Regards, -Patrick > -- > Patrick Yee > System Architect > Center for E-Commerce Infrastructure Development (CECID) > Dept. of Computer Science and Information Systems > The University of Hong Kong > Tel: (852) 22415674 > Fax: (852) 25474611 > > ----- Original Message ----- > From: Ciju Kurian > To: ebx...@li... > Cc: ebx...@li... > Sent: Thursday, December 12, 2002 1:27 PM > Subject: [ebxmlms-general] SourceCode Missing > > > > > > > Hi All, > > > > In the below mentioned import statements, I am not able to > locate the source code nor the documentation for > AuthenticationManager, Logger and Property classes in the > extracted hermes_ebms2_all_in_one_0920.zip file. > > > > Could any body tell me where to find the source code, or is > there any link to get these source codes. > > > > import hk.hku.cecid.phoenix.common.util.AuthenticationManager; > > import hk.hku.cecid.phoenix.common.util.Logger; > > import hk.hku.cecid.phoenix.common.util.Property; > > > > Thanks in advance, > > > > Regards, > > Ciju -- jvz. Jason van Zyl ja...@ze... http://tambora.zenplex.org In short, man creates for himself a new religion of a rational and technical order to justify his work and to be justified in it. -- Jacques Ellul, The Technological Society |
|
From: Patrick Y. <kc...@ce...> - 2002-12-12 06:18:12
|
Dear Ciju, I am sorry that the classes you mentioned are those proprietary = libraries provided by our center. So no source code is available in the = public. However, we can give you more information about the classes if = you have special need on the library. So, would you please tell us about = your case and so that we can provide appropriate assistance? Thanks a lot. Regards, -Patrick -- Patrick Yee System Architect Center for E-Commerce Infrastructure Development (CECID) Dept. of Computer Science and Information Systems The University of Hong Kong Tel: (852) 22415674 Fax: (852) 25474611 ----- Original Message -----=20 From: Ciju Kurian=20 To: ebx...@li...=20 Cc: ebx...@li...=20 Sent: Thursday, December 12, 2002 1:27 PM Subject: [ebxmlms-general] SourceCode Missing =20 =20 Hi All, =20 In the below mentioned import statements, I am not able to locate the = source code nor the documentation for 'AuthenticationManager', 'Logger' = and 'Property' classes in the extracted hermes_ebms2_all_in_one_0920.zip = file. =20 Could any body tell me where to find the source code, or is there any = link to get these source codes. =20 import hk.hku.cecid.phoenix.common.util.AuthenticationManager; import hk.hku.cecid.phoenix.common.util.Logger; import hk.hku.cecid.phoenix.common.util.Property; =20 Thanks in advance, =20 Regards, Ciju |
|
From: Ciju K. <cij...@ua...> - 2002-12-12 05:30:46
|
Hi All, In the below mentioned import statements, I am not able to locate the source code nor the documentation for 'AuthenticationManager', 'Logger' and 'Property' classes in the extracted hermes_ebms2_all_in_one_0920.zip file. Could any body tell me where to find the source code, or is there any link to get these source codes. import hk.hku.cecid.phoenix.common.util.AuthenticationManager; import hk.hku.cecid.phoenix.common.util.Logger; import hk.hku.cecid.phoenix.common.util.Property; Thanks in advance, Regards, Ciju |
|
From: Jason v. Z. <ja...@ze...> - 2002-12-12 01:57:49
|
-- jvz. Jason van Zyl ja...@ze... http://tambora.zenplex.org In short, man creates for himself a new religion of a rational and technical order to justify his work and to be justified in it. -- Jacques Ellul, The Technological Society |
|
From: Frankie L. <fr...@mi...> - 2002-10-25 01:54:38
|
Dear Anthony,
It's great to drill in the source code =3D). The code that I am =
referring to is the current version in CVS source tree (pre-0.9.2.0).
The subtlety of message delivery lies on the fact that the message =
listener that an application register with the Request object is never =
called directly by MSH. For the message polling approach, the message =
listener of the client application is called by the Request object if it =
receives any new message from MSH. If the application is using trusted =
repository, although the message listener seems to be unchanged as =
stated in the following block, the MSH actually has no implementation of =
the client message listener, and it results in a ClassNotFoundException =
error. Therefore, in the trusted repository approach, the only correct =
way is to use the =
hk.hku.cecid.phoenix.message.handler.MessageListenerImpl.
if (this is a file protocol && client url returning a path that is _not_ =
in
trusted repository) {
... =20
}
else {
>>>> - use this clientURL to do registration directly
}
Hope this helps.
--
Frankie Lam
Assistant Technology Officer
Center for E-Commerce Infrastructure Development (CECID)
Dept. of Computer Science and Information Systems
The University of Hong Kong
Tel: (852) 22415737
Fax: (852) 25474611
----- Original Message -----=20
From: ant...@re...=20
To: 'Frankie Lam'=20
Cc: ebx...@li...=20
Sent: Friday, October 25, 2002 7:22 AM
Subject: RE: [ebxmlms-develop] URL and File base document receipt
Sorry to keep drilling at this but...
What version of the code are you looking at? From the downloaded 914 =
version
the deliverToApplication() in MessageServiceHandler
has only the following code
private synchronized void deliverToApplication(ApplicationContext
appContext, EbxmlMessage ebxmlMessage)
throws MessageServiceHandlerConnectionException {
final MessageServiceHandlerConnection mshConnection =3D
(MessageServiceHandlerConnection) mshConnectionTable.
get(appContext);
if (mshConnection =3D=3D null) {
final String errorMessage =3D "Unknown application =
context: "
+ appContext.toString() ;
throw new =
MessageServiceHandlerConnectionException(errorMessage);
}
final MessageListener messageListener =3D mshConnection.
getMessageServiceHandlerConfig().getMessageListener();
messageListener.onMessage(ebxmlMessage);
}
it doesn't have any isDelivered checks as you described below.
which basically means that the only thing that deliverToApplication =
does is call the onMessage of the message listener, I can't see the code =
that you have provided anywhere? Is there a new version since 914, 913 =
has the same code that I described above.
-----Original Message-----
From: ebx...@li... =
[mailto:ebx...@li...]On Behalf Of Frankie =
Lam
Sent: Thursday, October 24, 2002 7:48 PM
To: ant...@re...
Cc: ebx...@li...
Subject: Re: [ebxmlms-develop] URL and File base document receipt
Hi Anthony,
The skeleton of the code in register() is like this:
if (this is a file protocol && client url returning a path that is =
_not_ in
trusted repository) {
- get message listener repository from the properties file
if (appcontext supplied has not been registered) {
- use our directory to store messages
}
else {
- use directory name of previously registered connection =
object
}
- use our default MessageListenerImpl with the directory name =
returned
above
- register using this MessageListenerImpl and application =
contexts
supplied by user
}
else {
// this is either a URL that is using file protocol and =
returning a
trusted repository,
// or http URL etc.
- use this clientURL to do registration directly
}
Then in method deliverToApplication():
final boolean isDelivered =3D ((clientUrl !=3D null && =
clientUrl.
getProtocol().equals(MessageListener.PROTOCOL_FILE) &&
trustedListenerRepository.contains(clientUrl.getPath()) =
=3D=3D
false) ?
false : true);
if (stored) {
...
}
else if (!isDelivered) {
=
messageServer.setDeliveryStatus(ebxmlMessage.getMessageId(),
false);
}
That means
isDelivered =3D (there is a client URL, based on the file =
protocol, and it
is in trustedRepository).
So we can divide it into three cases:
1) File URL + using trustedRepository
2) File URL + not using trustedRepository
3) URL based on other protocols
For case (1), isDelivered =3D true. Thus the message is marked as =
"delivered"
in the database and cannot be polled by the application through =
Request
object. This means that the client actually needs to monitor =
consistently
the trusted repository for any new messages.
For case (2), isDelivered =3D false. The client can poll the MSH for =
new
messages through the request object.
For case (3), the application should not poll for new messages =
through the
request object, since the messages are delivered directly to the =
specified
URL.
Note that the onMessage() method of the client application is called =
by
Request object only, so onMessage() would not be invoked for case =
(1) and
(3).
--
Frankie Lam
Assistant Technology Officer
Center for E-Commerce Infrastructure Development (CECID)
Dept. of Computer Science and Information Systems
The University of Hong Kong
Tel: (852) 22415737
Fax: (852) 25474611
----- Original Message -----
From: <ant...@re...>
To: <ebx...@li...>
Sent: Thursday, October 24, 2002 4:36 PM
Subject: RE: [ebxmlms-develop] URL and File base document receipt
> Hi all,
>
> Just an update that may interest some,
> I was still having trouble with this issue (of getting LoopBack to =
write
to
> the dir I wanted) and so jumped into the code a little - but I =
think I
> resolved it - either that or I have messed things up terribly.
>
> If getClientUrl() is set to return a file dir url in LoopBack.java
> (rather than returning null) the submitted file should get written =
to the
> directory supplied (according to the doco) but I still wasn't =
getting the
> file written to the dir I wanted it to (even after setting the =
trusted
> repository property).
>
> The code in MessageServiceHandler.register( )
> states...
> if =
(clientUrl.getProtocol().equals(MessageListener.PROTOCOL_FILE)
&&
> =
trustedListenerRepository.contains(clientUrl.getPath()) =3D=3D
> false)
> {
> blah blah blah
> set up MessageListenerImpl with the clientUrl you have set
> }
>
> Shouldn't the comparison be checking on 'true'
> if =
(clientUrl.getProtocol().equals(MessageListener.PROTOCOL_FILE)
&&
> =
trustedListenerRepository.contains(clientUrl.getPath()) =3D=3D
true)
>
> When I changed this to be =3D=3D true
> I was able to get the file written to the directory that I =
specified.
>
> If this wasn't the case, the MessageListener would always call
> LoopBack.onMessage() rather than calling the
> MessageListenerImpl.onMessage() - which is the one that will write =
to the
> file directory.
> If you don't do this then you have to have the file writing code =
in your
own
> onMessage() method, which defeats the purpose of having the =
getClientUrl()
>
> If I am totally out of whack here let me know, just an =
observation.....
>
>
> Ants
>
> PS. If what I have said is true - then there should be code in the
> register() method to do the same thing for HTTP protocol as well =
as file
> protocol as you can't submit to a HTTP port.
>
>
>
> -----Original Message-----
> From: ebx...@li...
> [mailto:ebx...@li...]On Behalf Of =
Gait
> Boxman
> Sent: Tuesday, October 22, 2002 6:29 PM
> To: ant...@re...
> Cc: ebx...@li...
> Subject: Re: [ebxmlms-develop] URL and File base document receipt
>
>
> Hi Anthony,
>
> the folder you specify needs to be listed as a trusted repository, =
which
is
> defined in the msh.properties.xml file at
> MSH/MessageListener/TrustedRepository.
> For starters, you could change the location to
> file://C:/tmp/ebxmlms/trustedRepository1 to see if it's working =
ok. Be
sure
> to create the folder.
>
> Gait.
> ----- Original Message -----
> From: <ant...@re...>
> To: <ebx...@li...>
> Sent: Tuesday, October 22, 2002 8:16 AM
> Subject: [ebxmlms-develop] URL and File base document receipt
>
>
> > I'm having a bit of trouble understanding how the URL and file =
based doc
> > receipt works.
> >
> > The documentation states that for MSH to post the received =
document to a
> URL
> > or file system, instead of using the onMessage function
> > to provide a URL in the getClientUrl function.
> >
> > Using the LoopBack Class as an example, if I return a Url such =
as
> > "file://C:/tmp" in the getClientUrl function, should the message =
that
the
> > loopback class has sent to itself be written to the directory =
that I
> > specified. I have tried this and it seems that this is not the =
case. It
> > still calls the onMessage function and there are no files =
written to the
> > directory I specified.
> >
> > Any info is appreciated,
> >
> > Thanks
> >
> > Anthony Ellis
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net emial is sponsored by: Influence the future of
> > Java(TM) technology. Join the Java Community Process(SM) =
(JCP(SM))
> > program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
> > http://www.sun.com/javavote
> > _______________________________________________
> > ebxmlms-develop mailing list
> > ebx...@li...
> > https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
>
>
>
> -------------------------------------------------------
> This sf.net emial is sponsored by: Influence the future of
> Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
> program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
> http://www.sun.com/javavote
> _______________________________________________
> ebxmlms-develop mailing list
> ebx...@li...
> https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
>
=
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavo=
te
> _______________________________________________
> ebxmlms-develop mailing list
> ebx...@li...
> https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
>
|
|
From: <ant...@re...> - 2002-10-24 23:28:15
|
Sorry to keep drilling at this but...
What version of the code are you looking at? From the downloaded 914 version
the deliverToApplication() in MessageServiceHandler
has only the following code
private synchronized void deliverToApplication(ApplicationContext
appContext, EbxmlMessage ebxmlMessage)
throws MessageServiceHandlerConnectionException {
final MessageServiceHandlerConnection mshConnection =
(MessageServiceHandlerConnection) mshConnectionTable.
get(appContext);
if (mshConnection == null) {
final String errorMessage = "Unknown application context: "
+ appContext.toString() ;
throw new
MessageServiceHandlerConnectionException(errorMessage);
}
final MessageListener messageListener = mshConnection.
getMessageServiceHandlerConfig().getMessageListener();
messageListener.onMessage(ebxmlMessage);
}
it doesn't have any isDelivered checks as you described below.
which basically means that the only thing that deliverToApplication does is
call the onMessage of the message listener, I can't see the code that you
have provided anywhere? Is there a new version since 914, 913 has the same
code that I described above.
-----Original Message-----
From: ebx...@li...
[mailto:ebx...@li...]On Behalf Of Frankie Lam
Sent: Thursday, October 24, 2002 7:48 PM
To: ant...@re...
Cc: ebx...@li...
Subject: Re: [ebxmlms-develop] URL and File base document receipt
Hi Anthony,
The skeleton of the code in register() is like this:
if (this is a file protocol && client url returning a path that is _not_
in
trusted repository) {
- get message listener repository from the properties file
if (appcontext supplied has not been registered) {
- use our directory to store messages
}
else {
- use directory name of previously registered connection object
}
- use our default MessageListenerImpl with the directory name returned
above
- register using this MessageListenerImpl and application contexts
supplied by user
}
else {
// this is either a URL that is using file protocol and returning a
trusted repository,
// or http URL etc.
- use this clientURL to do registration directly
}
Then in method deliverToApplication():
final boolean isDelivered = ((clientUrl != null && clientUrl.
getProtocol().equals(MessageListener.PROTOCOL_FILE) &&
trustedListenerRepository.contains(clientUrl.getPath()) ==
false) ?
false : true);
if (stored) {
...
}
else if (!isDelivered) {
messageServer.setDeliveryStatus(ebxmlMessage.getMessageId(),
false);
}
That means
isDelivered = (there is a client URL, based on the file protocol, and
it
is in trustedRepository).
So we can divide it into three cases:
1) File URL + using trustedRepository
2) File URL + not using trustedRepository
3) URL based on other protocols
For case (1), isDelivered = true. Thus the message is marked as
"delivered"
in the database and cannot be polled by the application through Request
object. This means that the client actually needs to monitor consistently
the trusted repository for any new messages.
For case (2), isDelivered = false. The client can poll the MSH for new
messages through the request object.
For case (3), the application should not poll for new messages through the
request object, since the messages are delivered directly to the specified
URL.
Note that the onMessage() method of the client application is called by
Request object only, so onMessage() would not be invoked for case (1) and
(3).
--
Frankie Lam
Assistant Technology Officer
Center for E-Commerce Infrastructure Development (CECID)
Dept. of Computer Science and Information Systems
The University of Hong Kong
Tel: (852) 22415737
Fax: (852) 25474611
----- Original Message -----
From: <ant...@re...>
To: <ebx...@li...>
Sent: Thursday, October 24, 2002 4:36 PM
Subject: RE: [ebxmlms-develop] URL and File base document receipt
> Hi all,
>
> Just an update that may interest some,
> I was still having trouble with this issue (of getting LoopBack to write
to
> the dir I wanted) and so jumped into the code a little - but I think I
> resolved it - either that or I have messed things up terribly.
>
> If getClientUrl() is set to return a file dir url in LoopBack.java
> (rather than returning null) the submitted file should get written to
the
> directory supplied (according to the doco) but I still wasn't getting
the
> file written to the dir I wanted it to (even after setting the trusted
> repository property).
>
> The code in MessageServiceHandler.register( )
> states...
> if
(clientUrl.getProtocol().equals(MessageListener.PROTOCOL_FILE)
&&
> trustedListenerRepository.contains(clientUrl.getPath()) ==
> false)
> {
> blah blah blah
> set up MessageListenerImpl with the clientUrl you have set
> }
>
> Shouldn't the comparison be checking on 'true'
> if
(clientUrl.getProtocol().equals(MessageListener.PROTOCOL_FILE)
&&
> trustedListenerRepository.contains(clientUrl.getPath()) ==
true)
>
> When I changed this to be == true
> I was able to get the file written to the directory that I specified.
>
> If this wasn't the case, the MessageListener would always call
> LoopBack.onMessage() rather than calling the
> MessageListenerImpl.onMessage() - which is the one that will write to
the
> file directory.
> If you don't do this then you have to have the file writing code in your
own
> onMessage() method, which defeats the purpose of having the
getClientUrl()
>
> If I am totally out of whack here let me know, just an observation.....
>
>
> Ants
>
> PS. If what I have said is true - then there should be code in the
> register() method to do the same thing for HTTP protocol as well as file
> protocol as you can't submit to a HTTP port.
>
>
>
> -----Original Message-----
> From: ebx...@li...
> [mailto:ebx...@li...]On Behalf Of Gait
> Boxman
> Sent: Tuesday, October 22, 2002 6:29 PM
> To: ant...@re...
> Cc: ebx...@li...
> Subject: Re: [ebxmlms-develop] URL and File base document receipt
>
>
> Hi Anthony,
>
> the folder you specify needs to be listed as a trusted repository, which
is
> defined in the msh.properties.xml file at
> MSH/MessageListener/TrustedRepository.
> For starters, you could change the location to
> file://C:/tmp/ebxmlms/trustedRepository1 to see if it's working ok. Be
sure
> to create the folder.
>
> Gait.
> ----- Original Message -----
> From: <ant...@re...>
> To: <ebx...@li...>
> Sent: Tuesday, October 22, 2002 8:16 AM
> Subject: [ebxmlms-develop] URL and File base document receipt
>
>
> > I'm having a bit of trouble understanding how the URL and file based
doc
> > receipt works.
> >
> > The documentation states that for MSH to post the received document to
a
> URL
> > or file system, instead of using the onMessage function
> > to provide a URL in the getClientUrl function.
> >
> > Using the LoopBack Class as an example, if I return a Url such as
> > "file://C:/tmp" in the getClientUrl function, should the message that
the
> > loopback class has sent to itself be written to the directory that I
> > specified. I have tried this and it seems that this is not the case.
It
> > still calls the onMessage function and there are no files written to
the
> > directory I specified.
> >
> > Any info is appreciated,
> >
> > Thanks
> >
> > Anthony Ellis
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net emial is sponsored by: Influence the future of
> > Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
> > program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
> > http://www.sun.com/javavote
> > _______________________________________________
> > ebxmlms-develop mailing list
> > ebx...@li...
> > https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
>
>
>
> -------------------------------------------------------
> This sf.net emial is sponsored by: Influence the future of
> Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
> program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
> http://www.sun.com/javavote
> _______________________________________________
> ebxmlms-develop mailing list
> ebx...@li...
> https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
>
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
> _______________________________________________
> ebxmlms-develop mailing list
> ebx...@li...
> https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
>
|
|
From: Frankie L. <fr...@mi...> - 2002-10-24 09:45:48
|
Hi Anthony,
The skeleton of the code in register() is like this:
if (this is a file protocol && client url returning a path that is _not_ =
in
trusted repository) {
- get message listener repository from the properties file
if (appcontext supplied has not been registered) {
- use our directory to store messages
}
else {
- use directory name of previously registered connection object
}
- use our default MessageListenerImpl with the directory name =
returned
above
- register using this MessageListenerImpl and application contexts
supplied by user
}
else {
// this is either a URL that is using file protocol and returning a
trusted repository,
// or http URL etc.
- use this clientURL to do registration directly
}
Then in method deliverToApplication():
final boolean isDelivered =3D ((clientUrl !=3D null && =
clientUrl.
getProtocol().equals(MessageListener.PROTOCOL_FILE) &&
trustedListenerRepository.contains(clientUrl.getPath()) =
=3D=3D
false) ?
false : true);
if (stored) {
...
}
else if (!isDelivered) {
messageServer.setDeliveryStatus(ebxmlMessage.getMessageId(),
false);
}
That means
isDelivered =3D (there is a client URL, based on the file protocol, =
and it
is in trustedRepository).
So we can divide it into three cases:
1) File URL + using trustedRepository
2) File URL + not using trustedRepository
3) URL based on other protocols
For case (1), isDelivered =3D true. Thus the message is marked as =
"delivered"
in the database and cannot be polled by the application through Request
object. This means that the client actually needs to monitor =
consistently
the trusted repository for any new messages.
For case (2), isDelivered =3D false. The client can poll the MSH for new
messages through the request object.
For case (3), the application should not poll for new messages through =
the
request object, since the messages are delivered directly to the =
specified
URL.
Note that the onMessage() method of the client application is called by
Request object only, so onMessage() would not be invoked for case (1) =
and
(3).
--
Frankie Lam
Assistant Technology Officer
Center for E-Commerce Infrastructure Development (CECID)
Dept. of Computer Science and Information Systems
The University of Hong Kong
Tel: (852) 22415737
Fax: (852) 25474611
----- Original Message -----
From: <ant...@re...>
To: <ebx...@li...>
Sent: Thursday, October 24, 2002 4:36 PM
Subject: RE: [ebxmlms-develop] URL and File base document receipt
> Hi all,
>
> Just an update that may interest some,
> I was still having trouble with this issue (of getting LoopBack to =
write
to
> the dir I wanted) and so jumped into the code a little - but I think I
> resolved it - either that or I have messed things up terribly.
>
> If getClientUrl() is set to return a file dir url in LoopBack.java
> (rather than returning null) the submitted file should get written to =
the
> directory supplied (according to the doco) but I still wasn't getting =
the
> file written to the dir I wanted it to (even after setting the trusted
> repository property).
>
> The code in MessageServiceHandler.register( )
> states...
> if =
(clientUrl.getProtocol().equals(MessageListener.PROTOCOL_FILE)
&&
> trustedListenerRepository.contains(clientUrl.getPath()) =
=3D=3D
> false)
> {
> blah blah blah
> set up MessageListenerImpl with the clientUrl you have set
> }
>
> Shouldn't the comparison be checking on 'true'
> if =
(clientUrl.getProtocol().equals(MessageListener.PROTOCOL_FILE)
&&
> trustedListenerRepository.contains(clientUrl.getPath()) =
=3D=3D
true)
>
> When I changed this to be =3D=3D true
> I was able to get the file written to the directory that I specified.
>
> If this wasn't the case, the MessageListener would always call
> LoopBack.onMessage() rather than calling the
> MessageListenerImpl.onMessage() - which is the one that will write to =
the
> file directory.
> If you don't do this then you have to have the file writing code in =
your
own
> onMessage() method, which defeats the purpose of having the =
getClientUrl()
>
> If I am totally out of whack here let me know, just an =
observation.....
>
>
> Ants
>
> PS. If what I have said is true - then there should be code in the
> register() method to do the same thing for HTTP protocol as well as =
file
> protocol as you can't submit to a HTTP port.
>
>
>
> -----Original Message-----
> From: ebx...@li...
> [mailto:ebx...@li...]On Behalf Of Gait
> Boxman
> Sent: Tuesday, October 22, 2002 6:29 PM
> To: ant...@re...
> Cc: ebx...@li...
> Subject: Re: [ebxmlms-develop] URL and File base document receipt
>
>
> Hi Anthony,
>
> the folder you specify needs to be listed as a trusted repository, =
which
is
> defined in the msh.properties.xml file at
> MSH/MessageListener/TrustedRepository.
> For starters, you could change the location to
> file://C:/tmp/ebxmlms/trustedRepository1 to see if it's working ok. Be
sure
> to create the folder.
>
> Gait.
> ----- Original Message -----
> From: <ant...@re...>
> To: <ebx...@li...>
> Sent: Tuesday, October 22, 2002 8:16 AM
> Subject: [ebxmlms-develop] URL and File base document receipt
>
>
> > I'm having a bit of trouble understanding how the URL and file based =
doc
> > receipt works.
> >
> > The documentation states that for MSH to post the received document =
to a
> URL
> > or file system, instead of using the onMessage function
> > to provide a URL in the getClientUrl function.
> >
> > Using the LoopBack Class as an example, if I return a Url such as
> > "file://C:/tmp" in the getClientUrl function, should the message =
that
the
> > loopback class has sent to itself be written to the directory that I
> > specified. I have tried this and it seems that this is not the case. =
It
> > still calls the onMessage function and there are no files written to =
the
> > directory I specified.
> >
> > Any info is appreciated,
> >
> > Thanks
> >
> > Anthony Ellis
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net emial is sponsored by: Influence the future of
> > Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
> > program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
> > http://www.sun.com/javavote
> > _______________________________________________
> > ebxmlms-develop mailing list
> > ebx...@li...
> > https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
>
>
>
> -------------------------------------------------------
> This sf.net emial is sponsored by: Influence the future of
> Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
> program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
> http://www.sun.com/javavote
> _______________________________________________
> ebxmlms-develop mailing list
> ebx...@li...
> https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
>
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavo=
te
> _______________________________________________
> ebxmlms-develop mailing list
> ebx...@li...
> https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
>
|
|
From: Frankie L. <fr...@mi...> - 2002-10-24 09:41:29
|
Hi Anthony,
The skeleton of the code in register() is like this:
if (this is a file protocol && client url returning a path that is _not_ in
trusted repository) {
- get message listener repository from the properties file
if (appcontext supplied has not been registered) {
- use our directory to store messages
}
else {
- use directory name of previously registered connection object
}
- use our default MessageListenerImpl with the directory name returned
above
- register using this MessageListenerImpl and application contexts
supplied by user
}
else {
// this is either a URL that is using file protocol and returning a
trusted repository,
// or http URL etc.
- use this clientURL to do registration directly
}
Then in method deliverToApplication():
final boolean isDelivered = ((clientUrl != null && clientUrl.
getProtocol().equals(MessageListener.PROTOCOL_FILE) &&
trustedListenerRepository.contains(clientUrl.getPath()) ==
false) ?
false : true);
if (stored) {
...
}
else if (!isDelivered) {
messageServer.setDeliveryStatus(ebxmlMessage.getMessageId(),
false);
}
That means
isDelivered = (there is a client URL, based on the file protocol, and it
is in trustedRepository).
So we can divide it into three cases:
1) File URL + using trustedRepository
2) File URL + not using trustedRepository
3) URL based on other protocols
For case (1), isDelivered = true. Thus the message is marked as "delivered"
in the database and cannot be polled by the application through Request
object. This means that the client actually needs to monitor consistently
the trusted repository for any new messages.
For case (2), isDelivered = false. The client can poll the MSH for new
messages through the request object.
For case (3), the application should not poll for new messages through the
request object, since the messages are delivered directly to the specified
URL.
Note that the onMessage() method of the client application is called by
Request object only, so onMessage() would not be invoked for case (1) and
(3).
--
Frankie Lam
Assistant Technology Officer
Center for E-Commerce Infrastructure Development (CECID)
Dept. of Computer Science and Information Systems
The University of Hong Kong
Tel: (852) 22415737
Fax: (852) 25474611
----- Original Message -----
From: <ant...@re...>
To: <ebx...@li...>
Sent: Thursday, October 24, 2002 4:36 PM
Subject: RE: [ebxmlms-develop] URL and File base document receipt
> Hi all,
>
> Just an update that may interest some,
> I was still having trouble with this issue (of getting LoopBack to write
to
> the dir I wanted) and so jumped into the code a little - but I think I
> resolved it - either that or I have messed things up terribly.
>
> If getClientUrl() is set to return a file dir url in LoopBack.java
> (rather than returning null) the submitted file should get written to the
> directory supplied (according to the doco) but I still wasn't getting the
> file written to the dir I wanted it to (even after setting the trusted
> repository property).
>
> The code in MessageServiceHandler.register( )
> states...
> if (clientUrl.getProtocol().equals(MessageListener.PROTOCOL_FILE)
&&
> trustedListenerRepository.contains(clientUrl.getPath()) ==
> false)
> {
> blah blah blah
> set up MessageListenerImpl with the clientUrl you have set
> }
>
> Shouldn't the comparison be checking on 'true'
> if (clientUrl.getProtocol().equals(MessageListener.PROTOCOL_FILE)
&&
> trustedListenerRepository.contains(clientUrl.getPath()) ==
true)
>
> When I changed this to be == true
> I was able to get the file written to the directory that I specified.
>
> If this wasn't the case, the MessageListener would always call
> LoopBack.onMessage() rather than calling the
> MessageListenerImpl.onMessage() - which is the one that will write to the
> file directory.
> If you don't do this then you have to have the file writing code in your
own
> onMessage() method, which defeats the purpose of having the getClientUrl()
>
> If I am totally out of whack here let me know, just an observation.....
>
>
> Ants
>
> PS. If what I have said is true - then there should be code in the
> register() method to do the same thing for HTTP protocol as well as file
> protocol as you can't submit to a HTTP port.
>
>
>
> -----Original Message-----
> From: ebx...@li...
> [mailto:ebx...@li...]On Behalf Of Gait
> Boxman
> Sent: Tuesday, October 22, 2002 6:29 PM
> To: ant...@re...
> Cc: ebx...@li...
> Subject: Re: [ebxmlms-develop] URL and File base document receipt
>
>
> Hi Anthony,
>
> the folder you specify needs to be listed as a trusted repository, which
is
> defined in the msh.properties.xml file at
> MSH/MessageListener/TrustedRepository.
> For starters, you could change the location to
> file://C:/tmp/ebxmlms/trustedRepository1 to see if it's working ok. Be
sure
> to create the folder.
>
> Gait.
> ----- Original Message -----
> From: <ant...@re...>
> To: <ebx...@li...>
> Sent: Tuesday, October 22, 2002 8:16 AM
> Subject: [ebxmlms-develop] URL and File base document receipt
>
>
> > I'm having a bit of trouble understanding how the URL and file based doc
> > receipt works.
> >
> > The documentation states that for MSH to post the received document to a
> URL
> > or file system, instead of using the onMessage function
> > to provide a URL in the getClientUrl function.
> >
> > Using the LoopBack Class as an example, if I return a Url such as
> > "file://C:/tmp" in the getClientUrl function, should the message that
the
> > loopback class has sent to itself be written to the directory that I
> > specified. I have tried this and it seems that this is not the case. It
> > still calls the onMessage function and there are no files written to the
> > directory I specified.
> >
> > Any info is appreciated,
> >
> > Thanks
> >
> > Anthony Ellis
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net emial is sponsored by: Influence the future of
> > Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
> > program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
> > http://www.sun.com/javavote
> > _______________________________________________
> > ebxmlms-develop mailing list
> > ebx...@li...
> > https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
>
>
>
> -------------------------------------------------------
> This sf.net emial is sponsored by: Influence the future of
> Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
> program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
> http://www.sun.com/javavote
> _______________________________________________
> ebxmlms-develop mailing list
> ebx...@li...
> https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
>
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
> _______________________________________________
> ebxmlms-develop mailing list
> ebx...@li...
> https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
>
|
|
From: <ant...@re...> - 2002-10-24 08:41:07
|
Hi all,
Just an update that may interest some,
I was still having trouble with this issue (of getting LoopBack to write to
the dir I wanted) and so jumped into the code a little - but I think I
resolved it - either that or I have messed things up terribly.
If getClientUrl() is set to return a file dir url in LoopBack.java
(rather than returning null) the submitted file should get written to the
directory supplied (according to the doco) but I still wasn't getting the
file written to the dir I wanted it to (even after setting the trusted
repository property).
The code in MessageServiceHandler.register( )
states...
if (clientUrl.getProtocol().equals(MessageListener.PROTOCOL_FILE) &&
trustedListenerRepository.contains(clientUrl.getPath()) ==
false)
{
blah blah blah
set up MessageListenerImpl with the clientUrl you have set
}
Shouldn't the comparison be checking on 'true'
if (clientUrl.getProtocol().equals(MessageListener.PROTOCOL_FILE) &&
trustedListenerRepository.contains(clientUrl.getPath()) == true)
When I changed this to be == true
I was able to get the file written to the directory that I specified.
If this wasn't the case, the MessageListener would always call
LoopBack.onMessage() rather than calling the
MessageListenerImpl.onMessage() - which is the one that will write to the
file directory.
If you don't do this then you have to have the file writing code in your own
onMessage() method, which defeats the purpose of having the getClientUrl()
If I am totally out of whack here let me know, just an observation.....
Ants
PS. If what I have said is true - then there should be code in the
register() method to do the same thing for HTTP protocol as well as file
protocol as you can't submit to a HTTP port.
-----Original Message-----
From: ebx...@li...
[mailto:ebx...@li...]On Behalf Of Gait
Boxman
Sent: Tuesday, October 22, 2002 6:29 PM
To: ant...@re...
Cc: ebx...@li...
Subject: Re: [ebxmlms-develop] URL and File base document receipt
Hi Anthony,
the folder you specify needs to be listed as a trusted repository, which is
defined in the msh.properties.xml file at
MSH/MessageListener/TrustedRepository.
For starters, you could change the location to
file://C:/tmp/ebxmlms/trustedRepository1 to see if it's working ok. Be sure
to create the folder.
Gait.
----- Original Message -----
From: <ant...@re...>
To: <ebx...@li...>
Sent: Tuesday, October 22, 2002 8:16 AM
Subject: [ebxmlms-develop] URL and File base document receipt
> I'm having a bit of trouble understanding how the URL and file based doc
> receipt works.
>
> The documentation states that for MSH to post the received document to a
URL
> or file system, instead of using the onMessage function
> to provide a URL in the getClientUrl function.
>
> Using the LoopBack Class as an example, if I return a Url such as
> "file://C:/tmp" in the getClientUrl function, should the message that the
> loopback class has sent to itself be written to the directory that I
> specified. I have tried this and it seems that this is not the case. It
> still calls the onMessage function and there are no files written to the
> directory I specified.
>
> Any info is appreciated,
>
> Thanks
>
> Anthony Ellis
>
>
>
> -------------------------------------------------------
> This sf.net emial is sponsored by: Influence the future of
> Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
> program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
> http://www.sun.com/javavote
> _______________________________________________
> ebxmlms-develop mailing list
> ebx...@li...
> https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future of
Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
http://www.sun.com/javavote
_______________________________________________
ebxmlms-develop mailing list
ebx...@li...
https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop
|
|
From: Gait B. <gai...@ti...> - 2002-10-22 08:27:28
|
Hi Anthony, the folder you specify needs to be listed as a trusted repository, which is defined in the msh.properties.xml file at MSH/MessageListener/TrustedRepository. For starters, you could change the location to file://C:/tmp/ebxmlms/trustedRepository1 to see if it's working ok. Be sure to create the folder. Gait. ----- Original Message ----- From: <ant...@re...> To: <ebx...@li...> Sent: Tuesday, October 22, 2002 8:16 AM Subject: [ebxmlms-develop] URL and File base document receipt > I'm having a bit of trouble understanding how the URL and file based doc > receipt works. > > The documentation states that for MSH to post the received document to a URL > or file system, instead of using the onMessage function > to provide a URL in the getClientUrl function. > > Using the LoopBack Class as an example, if I return a Url such as > "file://C:/tmp" in the getClientUrl function, should the message that the > loopback class has sent to itself be written to the directory that I > specified. I have tried this and it seems that this is not the case. It > still calls the onMessage function and there are no files written to the > directory I specified. > > Any info is appreciated, > > Thanks > > Anthony Ellis > > > > ------------------------------------------------------- > This sf.net emial is sponsored by: Influence the future of > Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) > program now. http://ad.doubleclick.net/clk;4699841;7576301;v? > http://www.sun.com/javavote > _______________________________________________ > ebxmlms-develop mailing list > ebx...@li... > https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop |
|
From: Frankie L. <fr...@mi...> - 2002-10-22 06:31:01
|
If you want the message to be written to the path specified in the URL, the path must also be specified exactly in the /Property/MSH/MessageListener/TrustedRepository, which is actually a list of paths delimited by semicolon. For example, if the URL returned by getClientUrl() is "file://C:/tmp", then "C:/tmp" should be specified in /Property/MSH/MessageListener/TrustedRepository. The reason for this design is to prevent any malicious programs from requesting the MSH to write messages to arbitrary locations, which can be a security threat if the MSH runs in a privileged user account. Best regards, Frankie ----- Original Message ----- From: <ant...@re...> To: <ebx...@li...> Sent: Tuesday, October 22, 2002 2:16 PM Subject: [ebxmlms-develop] URL and File base document receipt > I'm having a bit of trouble understanding how the URL and file based doc > receipt works. > > The documentation states that for MSH to post the received document to a URL > or file system, instead of using the onMessage function > to provide a URL in the getClientUrl function. > > Using the LoopBack Class as an example, if I return a Url such as > "file://C:/tmp" in the getClientUrl function, should the message that the > loopback class has sent to itself be written to the directory that I > specified. I have tried this and it seems that this is not the case. It > still calls the onMessage function and there are no files written to the > directory I specified. > > Any info is appreciated, > > Thanks > > Anthony Ellis > > > > ------------------------------------------------------- > This sf.net emial is sponsored by: Influence the future of > Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) > program now. http://ad.doubleclick.net/clk;4699841;7576301;v? > http://www.sun.com/javavote > _______________________________________________ > ebxmlms-develop mailing list > ebx...@li... > https://lists.sourceforge.net/lists/listinfo/ebxmlms-develop > |
|
From: <ant...@re...> - 2002-10-22 06:21:24
|
I'm having a bit of trouble understanding how the URL and file based doc receipt works. The documentation states that for MSH to post the received document to a URL or file system, instead of using the onMessage function to provide a URL in the getClientUrl function. Using the LoopBack Class as an example, if I return a Url such as "file://C:/tmp" in the getClientUrl function, should the message that the loopback class has sent to itself be written to the directory that I specified. I have tried this and it seems that this is not the case. It still calls the onMessage function and there are no files written to the directory I specified. Any info is appreciated, Thanks Anthony Ellis |