|
From: David RR W. \(XML\) <da...@dr...> - 2006-09-07 13:09:28
|
<div>Arnstein,</div> <div> </div> <div>Yeah - there's a trick to this - but I cannot remember what it turned out to be! It's been a couple of years since we did this - but I remember the same thing till we figured out how to get the confirm messages back...</div> <div> </div> <div>Hope someone else can remember! It's always the stupid details that are the toughest!!</div> <div> </div> <div>Cheers, DW</div> <DIV id=wmMessageComp name="wmMessageComp"><BR><BR> <BLOCKQUOTE style="PADDING-LEFT: 8px; MARGIN-LEFT: 8px; BORDER-LEFT: blue 2px solid">-------- Original Message --------<BR>Subject: Re: [ebxmlms-general] Hermes servlet problem<BR>From: "Arnstein Vestad" <ar...@ki...><BR>Date: Thu, September 07, 2006 9:03 am<BR>To: "General discussions" <ebx...@li...><BR><BR>Thanks for the clarification - then I don't know why I couldn't get it to work, I'm quite sure my smtp config was correct as I was able to send messages trough hermes, just not deliver ack's. <BR>It's not so important for me any more - but if someone can see what's wrong from the following log transcript I'd be happy to know about it:<BR><BR>I've been trying to set up Hermes to recieve messages from the ebMail client application, and send read acknowledgements, but it looks like Hermes isn't sending the requested acks. <BR>I check off "request read reciept" in ebMail (using the default PO example plugin). Looking at the message repository for Hermes, it seems like Hermes is preparing the acknowledgements, it just doesn't seem like it gets sent. Am I missing something...?<BR>Here is some of the log data for the reception of the message: <BR>> <BR>>-18 11:47:35,556 DEBUG [Thread-12]: polling mail server for messages<BR>>2005-11-18 11:47:35,556 DEBUG [Thread-12]: => Mail.receive<BR>>2005-11-18 11:47:35,556 INFO [Thread-12]: Receiving pop3 messages from <BR>>pop3.domeneshop.no<INBOX><BR>>2005-11-18 11:47:38,748 DEBUG [Thread-12]: <= Mail.receive<BR>>2005-11-18 11:47:38,748 DEBUG [Thread-12]: got 1 messages<BR>>2005-11-18 11:47:38,748 INFO [Thread-12]: Received a message from SMTP<BR>>2005-11-18 11:47:38,748 DEBUG [Thread-12]: => <BR>>MessageServiceHandler.onMessage<BR>>2005-11-18 11:47:38,748 DEBUG [Thread-12]: => <BR>>MessageServiceHandler.dispatchMessage<BR>>2005-11-18 11:47:38,748 DEBUG [Thread-12]: => <BR>>MessageServiceHandler.hasSignature<BR>>2005-11-18 11:47:38,748 DEBUG [Thread-12]: <= <BR>>MessageServiceHandler.hasSignature<BR>>2005-11-18 11:47:38,748 DEBUG [Thread-12]: validating incoming ebXML <BR>>message<BR>>2005-11-18 11:47:38,758 DEBUG [Thread-12]: validation of incoming <BR>>message ok<BR>>2005-11-18 11:47:38,768 DEBUG [Thread-12]: => MessageServer.hasReceived<BR>>2005-11-18 11:47:38,768 DEBUG [Thread-12]: => <BR>>DbConnectionPool.getConnection<BR>>2005-11-18 11:47:38,768 DEBUG [Thread-12]: <= <BR>>DbConnectionPool.getConnection<BR>>2005-11-18 11:47:38,768 DEBUG [Thread-12]: <= MessageServer.hasReceived<BR>>2005-11-18 11:47:38,768 DEBUG [Thread-12]: message has an AckReq<BR>>2005-11-18 11:47:38,768 DEBUG [Thread-12]: => MessageServer.hasReceived<BR>>2005-11-18 11:47:38,768 DEBUG [Thread-12]: <= MessageServer.hasReceived<BR>>2005-11-18 11:47:38,768 DEBUG [Thread-12]: message has not been <BR>>received previously<BR>>2005-11-18 11:47:38,768 DEBUG [Thread-12]: final sequence number in <BR>>store: -9998<BR>>2005-11-18 11:47:38,768 DEBUG [Thread-12]: => MessageServer.store<BR>>2005-11-18 11:47:38,768 DEBUG [Thread-12]: Message haven't persisted<BR>>2005-11-18 11:47:38,768 DEBUG [Thread-12]: Try to persist to <BR>>R0000\message32784<BR>>2005-11-18 11:47:38,778 DEBUG [Thread-12]: Message Persisted to <BR>>R0000\message32784 on persitence handler<BR>>2005-11-18 11:47:38,778 DEBUG [Thread-12]: insert into messagestore <BR>>database<BR>>2005-11-18 11:47:38,778 DEBUG [Thread-12]: <= MessageServer.store<BR>>2005-11-18 11:47:38,778 DEBUG [Thread-12]: => <BR>>MessageServiceHandler.generateAcknowledgment<BR>>2005-11-18 11:47:38,818 DEBUG [Thread-12]: <= <BR>>MessageServiceHandler.generateAcknowledgment<BR>>2005-11-18 11:47:38,818 DEBUG [Thread-12]: => Transaction.commit (txID: <BR>>#7)<BR>>2005-11-18 11:47:38,818 DEBUG [Thread-12]: => <BR>>DbConnectionPool.freeConnection<BR>>2005-11-18 11:47:38,818 DEBUG [Thread-12]: <= <BR>>DbConnectionPool.freeConnection<BR>>2005-11-18 11:47:38,818 DEBUG [Thread-12]: <= Transaction.commit<BR>>2005-11-18 11:47:38,818 DEBUG [Thread-12]: final sequence number in <BR>>store: -9999<BR>>2005-11-18 11:47:38,818 DEBUG [Thread-12]: => MessageServer.store<BR>>2005-11-18 11:47:38,818 DEBUG [Thread-12]: insert into reftomessage <BR>>database<BR>>2005-11-18 11:47:38,818 DEBUG [Thread-12]: => <BR>>DbConnectionPool.getConnection<BR>>2005-11-18 11:47:38,818 DEBUG [Thread-12]: <= <BR>>DbConnectionPool.getConnection<BR>>2005-11-18 11:47:38,818 DEBUG [Thread-12]: Message haven't persisted<BR>>2005-11-18 11:47:38,818 DEBUG [Thread-12]: Try to persist to <BR>>R0000\message32785<BR>>2005-11-18 11:47:38,828 DEBUG [Thread-12]: Message Persisted to <BR>>R0000\message32785 on persitence handler<BR>>2005-11-18 11:47:38,828 DEBUG [Thread-12]: insert into messagestore <BR>>database<BR>>2005-11-18 11:47:38,828 DEBUG [Thread-12]: <= MessageServer.store<BR>>2005-11-18 11:47:38,828 DEBUG [Thread-12]: Ack replied synchronously<BR>>2005-11-18 11:47:38,828 DEBUG [Thread-12]: => <BR>>MessageServer.logReceivedMessage<BR>>2005-11-18 11:47:38,828 DEBUG [Thread-12]: <= <BR>>MessageServer.logReceivedMessage<BR>>2005-11-18 11:47:38,828 DEBUG [Thread-12]: <= <BR>>MessageServiceHandler.dispatchMessage<BR>>2005-11-18 11:47:38,828 DEBUG [Thread-12]: => Transaction.commit (txID: <BR>>#7)<BR>>2005-11-18 11:47:38,828 DEBUG [Thread-12]: => <BR>>DbConnectionPool.freeConnection<BR>>2005-11-18 11:47:38,828 DEBUG [Thread-12]: <= <BR>>DbConnectionPool.freeConnection<BR>>2005-11-18 11:47:38,828 DEBUG [Thread-12]: <= Transaction.commit<BR>>2005-11-18 11:47:38,828 DEBUG [Thread-12]: <= <BR>>MessageServiceHandler.onMessage<BR>>2005-11-18 11:47:47,452 INFO [http-8080-Processor25]: Process command: <BR>>Get message (32)<BR>>2005-11-18 11:47:47,452 DEBUG [http-8080-Processor25]: => <BR>>MessageServiceHandler.processCommand<BR>>2005-11-18 11:47:47,452 DEBUG [http-8080-Processor25]: => <BR>>MessageServiceHandler.getMessage<BR>>2005-11-18 11:47:47,452 DEBUG [http-8080-Processor25]: => <BR>>MessageServiceHandler.getNextUndeliveredMessage<BR>>2005-11-18 11:47:47,452 DEBUG [http-8080-Processor25]: => <BR>>MessageServer.getUndeliveredMessages<BR>>2005-11-18 11:47:47,452 DEBUG [http-8080-Processor25]: => <BR>>DbConnectionPool.getConnection<BR>>2005-11-18 11:47:47,452 DEBUG [http-8080-Processor25]: <= <BR>>DbConnectionPool.getConnection<BR>>2005-11-18 11:47:47,462 DEBUG [http-8080-Processor25]: <= <BR>>MessageServer.getUndeliveredMessages<BR>>2005-11-18 11:47:47,462 DEBUG [http-8080-Processor25]: => <BR>>MessageServer.setFileDeliveryStatus<BR>>2005-11-18 11:47:47,462 DEBUG [http-8080-Processor25]: <= <BR>>MessageServer.setFileDeliveryStatus<BR>>2005-11-18 11:47:47,462 DEBUG [http-8080-Processor25]: => <BR>>MessageServer.getMessageFromDataSource<BR>>2005-11-18 11:47:47,533 DEBUG [http-8080-Processor25]: <= <BR>>MessageServiceHandler.getNextUndeliveredMessage with messageId: <BR>>20051118-104728257-PO.po.PO.2@192.168.1.27 <BR>><http://service.com/%3Ca%20href=> " <BR>>target="_new">http://service.com/po.PO.2@192.168.1.27 <BR>><mailto:po.PO.2@192.168.1.27%3C/a> ><BR>>2005-11-18 11:47:47,533 DEBUG [http-8080-Processor25]: => <BR>>Transaction.commit (txID: #8)<BR>>2005-11-18 11:47:47,533 DEBUG [http-8080-Processor25]: => <BR>>DbConnectionPool.freeConnection<BR>>2005-11-18 11:47:47,533 DEBUG [http-8080-Processor25]: <= <BR>>DbConnectionPool.freeConnection<BR>>2005-11-18 11:47:47,533 DEBUG [http-8080-Processor25]: <= <BR>>Transaction.commit<BR>>2005-11-18 11:47:47,543 DEBUG [http-8080-Processor25]: <= <BR>>MessageServiceHandler.getMessage<BR>>2005-11-18 11:47:47,543 DEBUG [http-8080-Processor25]: <= <BR>>MessageServiceHandler.processCommand<BR>><BR>><BR><BR>-----Opprinnelig melding-----<BR>Fra: ebx...@li... [mailto:ebx...@li...] På vegne av Patrick Yee<BR>Sendt: 7. september 2006 14:45<BR>Til: General discussions<BR>Emne: Re: [ebxmlms-general] Hermes servlet problem<BR><BR>Hello,<BR><BR>It seems that there are some confusions here, so I have checked and <BR>traced the source code once again. And here is my finding:<BR><BR>1. I found that the ACK over SMTP does work. So I apologize for I have <BR>given out wrong information to the list before.<BR><BR>2. The reason why the line 464 of MessageServiceHandler.java ignores the <BR>returned ACK is that, the returned message would only be processed in <BR>the case of SYNC_REPLY. In SMTP case, all messages are sent in <BR>asynchronous mode. Therefore, in our mail handling method, we ignore the <BR>message generated for synchronous response, and the message generated <BR>for asynchronous response will be processed before the return of the <BR>onMessage() method.<BR><BR>3. Like DW has said, we don't recommend to use it when it is deployed in <BR>an open environment, where the latency of the network is too unpredictable.<BR><BR>Hope this removes the confusion caused. Sorry about that, again.<BR><BR>Regards, -Patrick<BR><BR><BR><BR>Arnstein Vestad wrote:<BR>> That's very interesting to hear - it all seemed very strange when I tried it and I researched both on this list and by contacting the developers who seemed to confirm my findings that acknowledgement messages was generated and persisted locally, but never transmitted over the SMTP. When I researched the problem I also got this message from Patrick: <BR>><BR>> <BR>>> This probably is a bug. Hermes cannot handle well of the ACK message when >working with SMTP protocol. For details, please see line 464 of >MessageServiceHandler.java in the latest source tree. The handler simply >ignore the ACK message generated.<BR>>><BR>>> Regards, -Patrick<BR>>> <BR>><BR>> We're currently not planning to implement hermes again - but if we do I'll give you a call, always nice working with you!<BR>><BR>><BR>> -----Opprinnelig melding-----<BR>> Fra: ebx...@li... [mailto:ebx...@li...] På vegne av Torsten Kirschner<BR>> Sendt: 7. september 2006 13:23<BR>> Til: 'General discussions'<BR>> Emne: Re: [ebxmlms-general] Hermes servlet problem<BR>><BR>> Hi again,<BR>><BR>> those are two different statements, "Hermes1 doesn't support ebxml reliable<BR>> messaging over the SMTP protocol" and "we certainly couldn't get it<BR>> working".<BR>> The first is incorrect, while I take your word for the second.<BR>><BR>> I do not know what Patrick means by "a complete acknowledgement mechanism on<BR>> SMTP". The ebXML reliable messaging in Hermes1 is transport-agnostic. The<BR>> SMTP/POP transport adapter is certainly very simple, but then again, so are<BR>> these protocols. Altogether it just works. There is no "problem".<BR>><BR>> We have it running in production, interoperable with different ebXML MS<BR>> implementations.<BR>> If You are interested, I could show You how it's done. <BR>><BR>> best regards<BR>> Torsten<BR>><BR>> -----Opprinnelig melding-----<BR>> Fra: ebx...@li...<BR>> [mailto:ebx...@li...] På vegne av Arnstein<BR>> Vestad<BR>> Sendt: 7. september 2006 10:03<BR>> Til: General discussions<BR>> Emne: Re: [ebxmlms-general] Hermes servlet problem<BR>><BR>><BR>> <BR>>> Torsten Kirschner<BR>>> Sendt: 7. september 2006 08:17<BR>>> Til: 'General discussions'<BR>>> Emne: Re: [ebxmlms-general] [SPAM] - Hermes servlet problem<BR>>> <BR>> -BayesianFilter >detected spam<BR>><BR>> <BR>>> Hi Arnstein,<BR>>><BR>>> I think You might be wrong here. <BR>>><BR>>> Hermes1 does support reliable messaging, and if I recall correctly,<BR>>> <BR>> this is<BR>> <BR>>> implemented in a transport-agnostic way. <BR>>><BR>>> Anyway, I have seen Hermes1 both send and receive acknowledgement<BR>>> <BR>> messages,<BR>> <BR>>> as well as re-send messages if an acknowledgement was not received in<BR>>> <BR>> time.<BR>> <BR>>> All over SMTP.<BR>>> <BR>><BR>> Well - we certainly couldn't get it working, and this is all very strange,<BR>> as I had confirmation of the problem from the developers as well as an offer<BR>> of paid consulting work to fix it:<BR>><BR>><BR>> <BR>>>>> -----Opprinnelig melding-----<BR>>>>> Fra: Patrick Yee [mailto:kc...@ce...]<BR>>>>> Sendt: 20. januar 2006 03:51<BR>>>>> Til: Arnstein Vestad<BR>>>>> Kopi: 'ope...@ce...'<BR>>>>> Emne: Re: Smtp-fix for Hermes 1<BR>>>>><BR>>>>> Hi Arnstein,<BR>>>>><BR>>>>> Thanks for using Hermes.<BR>>>>><BR>>>>> We did not implement a complete acknowledgment mechanism on SMTP. <BR>>>>> <BR>> [...]<BR>><BR>><BR>> -------------------------------------------------------------------------<BR>> Using Tomcat but need to do more? Need to support web services, security?<BR>> Get stuff done quickly with pre-integrated technology to make your job easier<BR>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<BR>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<BR>> _______________________________________________<BR>> ebxmlms-general mailing list<BR>> ebx...@li...<BR>> https://lists.sourceforge.net/lists/listinfo/ebxmlms-general<BR>><BR>> -------------------------------------------------------------------------<BR>> Using Tomcat but need to do more? Need to support web services, security?<BR>> Get stuff done quickly with pre-integrated technology to make your job easier<BR>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<BR>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<BR>> _______________________________________________<BR>> ebxmlms-general mailing list<BR>> ebx...@li...<BR>> https://lists.sourceforge.net/lists/listinfo/ebxmlms-general<BR>><BR>> <BR><BR><BR>-- <BR>Regards,<BR>Patrick Yee<BR>Center for E-Commerce Infrastructure Development<BR><BR>Making E-Commerce Everyday Commerce<BR><BR><BR>-------------------------------------------------------------------------<BR>Using Tomcat but need to do more? Need to support web services, security?<BR>Get stuff done quickly with pre-integrated technology to make your job easier<BR>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<BR>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<BR>_______________________________________________<BR>ebxmlms-general mailing list<BR>ebx...@li...<BR>https://lists.sourceforge.net/lists/listinfo/ebxmlms-general<BR><BR>-------------------------------------------------------------------------<BR>Using Tomcat but need to do more? Need to support web services, security?<BR>Get stuff done quickly with pre-integrated technology to make your job easier<BR>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<BR>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642<BR>_______________________________________________<BR>ebxmlms-general mailing list<BR>ebx...@li...<BR>https://lists.sourceforge.net/lists/listinfo/ebxmlms-general </BLOCKQUOTE></DIV> |