-
Notifications
You must be signed in to change notification settings - Fork 50
Using Phase4 in a multi threaded environment #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @chamikaCN,
That's all I am aware of |
Thanks @phax |
Hi @phax, One thing I noticed regarding this issue is that |
I think the |
Will be part of ph-web 9.6.5 release |
thanks @phax |
Sorry I needed to tackle some other things so it is part of the ph-web 9.7.0 release and will be part of the phase4 1.4.0 release |
@chamikaCN Release 1.4.0 from https://github.com/phax/phase4/releases/tag/phase4-parent-pom-1.4.0 should fix the concurrency issue. Please note, that this version switched from Apache HttpClient v4 to v5 which might break existing integrations, so be careful. |
Thanks very much for the quick update and the advice as well 🙂 I'll make sure to take precautions prior to upgrading. |
Hi Phillip,
I need to run the phase4 project in a multi-threaded environment. I am using the
sendMessageAndCheckForReceipt()
method to send the AS4 message. But as you have noted, it isnon-thread-safe
, since theSignal Message Consumer
being modified inside the method. What would be the your suggestion to achieve my goal?PS- I am using phase4 with my own
SignalMessageConsumer
class, which implementsIAS4SignalMessageConsumer
, hence the null checkaOld == null
on line 706 ofAbstractAS4UserMessageBuilder.java
will always be false.The text was updated successfully, but these errors were encountered: