Skip to content

Conversation

@davidvoit
Copy link

The documentation would suggest that you can just use amqps:// uris with the nms.amqp provider, but sadly this doesn't work without a specific config file.

Secure amqps should work, and should not need extra work.

The documentation would suggest that you can just use amqps:// uris
with the nms.amqp provider, but sadly this doesn't work without
a specific config file.

Secure amqps should work, and should not need extra work.
@davidvoit davidvoit changed the title Support amqps uri schemas [AMQNET-851] Support amqps uri schemas Oct 31, 2025
@Havret Havret requested a review from Copilot November 2, 2025 21:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the amqps (AMQP over TLS) URI scheme to the NMS connection factory. The change maps the amqps scheme to the same Apache.NMS.AMQP provider used for the amqp scheme, enabling secure AMQP connections.

  • Added amqps scheme mapping to the schema provider factory map

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@davidvoit
Copy link
Author

Should I also add failover: uri support? If we only using "using Apache.NMS" this also doesn't work without nmsprovider-failover.xml config files.

failover: uris are also used by the amqp nms provider
new ProviderFactoryInfo("Apache.NMS.AMQP", "Apache.NMS.AMQP.ConnectionFactory");
schemaProviderFactoryMap["amqps"] =
new ProviderFactoryInfo("Apache.NMS.AMQP", "Apache.NMS.AMQP.ConnectionFactory");
schemaProviderFactoryMap["failover"] =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if someone wants to use failover with open-wire?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this be activemq:failover then? We could also implement a second level lookup if needed. look for tcp/ssl or amqp/amqps

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But failover: are currently so or so not working. I think it would be fine to conenect it to amqp and go with activemq:failover for openwire as the new default. What do you think, should we write some new uri parsind and decsision logick or would this new default be fine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants