-
Notifications
You must be signed in to change notification settings - Fork 32
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
Adding Jakarta Messaging 3.0 support #674
Conversation
jakarta/src/main/scala/org/apache/pekko/stream/connectors/jakarta/SendRetrySettings.scala
Outdated
Show resolved
Hide resolved
838b8b8
to
e620c47
Compare
@@ -0,0 +1,34 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the Apache header as this is has been written by me.
e620c47
to
33aabf1
Compare
43cc1b2
to
7429ac0
Compare
...ms/src/main/scala/org/apache/pekko/stream/connectors/jakartams/ConnectionRetrySettings.scala
Show resolved
Hide resolved
...st/scala/org/apache/pekko/stream/connectors/jakartams/scaladsl/CachedConnectionFactory.scala
Outdated
Show resolved
Hide resolved
jakartams/src/main/scala/org/apache/pekko/stream/connectors/jakartams/AcknowledgeMode.scala
Show resolved
Hide resolved
val maxRetries: Int) { | ||
|
||
/** Time allowed to establish and start a connection. */ | ||
def withConnectTimeout(value: scala.concurrent.duration.FiniteDuration): ConnectionRetrySettings = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This API is intended for users to use, and usually user level parameters should be fully named instead of using value
. The same goes for other places, such as c
for config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@laglangyue Thanks for spotting this. I have updated please let me know if my understanding is right.
The same goes for other places, such as c for config
I'm not sure I follow. What's c
for config are you referring to?
...ms/src/main/scala/org/apache/pekko/stream/connectors/jakartams/ConnectionRetrySettings.scala
Outdated
Show resolved
Hide resolved
ea201d1
to
8ac95e7
Compare
@samueleresca is this PR complete? I'm hoping to start a discussion about a Pekko Connectors 1.1.0-M1 release. This can be delayed until after that release if that suits you better. |
There is a comment @laglangyue that I need to address, apart from that it is ready. It would be great to merge this for Pekko Connectors 1.1.0-M1. |
@samueleresca This is the last PR blocking the release. Again, I'm happy to move on with the M1 release without this and to have it merged prior to the full 1.1.0 release. |
@pjfanning The PR is ready apart few minor comments that I think shouldn't block the merge. So I'm happy to get the approval and get this merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
See: #483
Few notes regarding the PR after spending some time on this:
5.16.7
because the later versions don't support Java 8.JmsProducer should retry sending on network failures
The JMS Transactional Connectors ensure no message loss or starvation when exceptions occur in a stream missing commits