Skip to content

Multiple Concurrent Peppol Senders #110

Answered by phax
simon-temple asked this question in Q&A
Discussion options

You must be logged in to vote

@simon-temple please make sure the WebScopeManager.onGlobalBegin (MockServletContext.create ()); (and the respective shutdown call) is only calles once per Java application.

So if you run the sender in multiple threads, see for example this code snippet as an example:
https://github.com/phax/phase4/blob/master/phase4-peppol-client/src/test/java/com/helger/phase4/peppol/receivers/MainSendInParallelHelger.java
It refers to MainPhase4PeppolSenderHelger.send for the main action.

hth

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@simon-temple
Comment options

Answer selected by simon-temple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants