Comments (11)
I looked at the code, but I think the _resend
you are mentioning simply does nothing. Will investigate.
from as2-lib.
It does nothing because by default nTries
delivers -1
(IProcessorSenderModule.DEFAULT_RETRIES
) which is handled in doResend
as don't resend.
Anyway I added the possibility to specify the retry count to the AS2ClientSettings
.
Update: when specifying a retry count at the client, an NPE because of the missing MessageProcessor pops up.
from as2-lib.
Hi Philip,
Is this option of resending also settable in the partnership or config file in as2-server?
Thanks,
Michael
from as2-lib.
No. As far as I remember this is a setting of the sender module... Please file a separate issue to make this configurable per partnership. Anyway resending currently does not work when using the standalone client.
Am 01. September 2015 15:26:18 MESZ, schrieb Michael Reinig [email protected]:
Hi Philip,
Is this option of resending also settable in the partnership or config
file in as2-server?Thanks,
Michael
Reply to this email directly or view it on GitHub:
#7 (comment)
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
from as2-lib.
Yes, there's an additional problem: -1 is treated as "don't retry" but "documented" as "retry forever" in IProcessorSenderModule
.
However, I'm talking about something else. If the message could not be sent after the specified number of retries (which can also be 0), IMHO this should be an error condition and thus throw an exception. Currently. this seems to be ignored.
By the way, I don't use AS2Client*
, I'm working with AS2Message
and AS2SenderModule
directly. AS2Client
doesn't work well if you start from the payload and a Partnership
.
from as2-lib.
Okay, I changed the resend documentation now in a way so that "0" means no retries. I also added an "in-memory" resender module (InMemoryResenderModule
) which also uses the polling mechanism but does not store the items to disk.
Additional I think that the retries happened forever and would never stop. Now, if the number of retries is exceeded, an exception is thrown.
Next thing to come is a synchronous resender that does not use polling but will resend in the same thread as the failed message.
from as2-lib.
I now added an ImmediateResenderModule
resender module that immediately tries to resend the message without persisting it on disk. If the retry count is exceeded the original exception is thrown.
from as2-lib.
Sounds good, thank you. I'll try to test this soon, I'm currently quite busy with other things.
from as2-lib.
I just gave it a spin, works fine. Thanks. Is there already a schedule for 2.2.0? :-)
from as2-lib.
Excellent - good to hear.
There is no real schedule but I'd like to resolve phax/as2-server#15 before the relase. Even though it is a tricky one I'm quite optimistic that we can do it this week. Hope that's okay for you.
from as2-lib.
Sure, take your time. Thanks for the estimate.
from as2-lib.
Related Issues (20)
- Performance issues in AS2 servlet when transferring files HOT 2
- unable to send file to AS2 server from AS2-LIB HOT 5
- getting started HOT 9
- Can AS2DirectoryPollingModule run with as2-lib-spring-demo HOT 7
- Disposition isn't correct when using servlet HOT 14
- "Invalid HTTP Request" Error with Servlet-based Demo-Web-App HOT 8
- java.lang.IllegalStateException: unable to create shared stream: java.io.FileNotFoundException: /tmp/as2-lib-res-16551011638687829143.tmp (No such file or directory) HOT 7
- Spring boot: possible to make custom handler a spring managed bean? HOT 3
- partnership attribute: remove_cms_algorithm_protection_attrib HOT 2
- Error receiving from chunked transfer encoding HOT 11
- MIC calculation on outgoing AS2 is incorrect when using compress before signing HOT 9
- Question : Does AS2 includes standard HTTP headers and custom generated headers for communication between 2 systems interacting using AS2 protocol. HOT 1
- Cant' send files to distant client using "MainSendToMendelsonTestServer.java" HOT 2
- Trying to use RSASSA_PKCS1_V1_5_WITH_SHA3_256 signing alg results in IllegalArgumentException: Unknown signature type requested: RSASSAPSS HOT 13
- latest certificates from keystore is not fetching when service is running HOT 2
- Advice on creating documentation HOT 7
- Can't work with AS2 version 5.0 with bc-fips HOT 4
- NoClassDefFoundError: javax/mail/internet/MimeBodyPart HOT 2
- Private Key is Null for public key HOT 4
- bcMail temporary files not deleted when compression is used (as2-lib 5.1.2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from as2-lib.