简体   繁体   English

JMS 提供程序使用 .bindings 连接到 AWS SQS

[英]JMS Provider to connect to AWS SQS using .bindings

We are looking for moving our solutions to start using AWS Simple Queue Service instead of Rabbit MQ.我们正在寻求移动我们的解决方案以开始使用 AWS Simple Queue Service 而不是 Rabbit MQ。

Now we are using JMS to connect to our queues using a.bindings file to configure the jndi context to connect.现在我们使用 JMS 连接到我们的队列,使用 .bindings 文件配置 jndi 上下文进行连接。

Is it possible to use a.bindings file to configure the connection to AWS Simple Queue Service configuring the region, using a profile as parameters, all configured inside the.bindings file?是否可以使用 a.bindings 文件来配置与配置区域的 AWS 简单队列服务的连接,使用配置文件作为参数,所有这些都在 .bindings 文件中配置?

If yes do you have any example on how to do that?如果是,您有任何关于如何做到这一点的例子吗?

The reason the RabbitMQ JMS client uses .bindings is because it relies on com.sun.jndi.fscontext.RefFSContextFactory as the InitialContextFactory implementation. RabbitMQ JMS 客户端使用.bindings的原因是因为它依赖com.sun.jndi.fscontext.RefFSContextFactory作为InitialContextFactory实现。

From what I can tell the Amazon SQS JMS client has no support for JNDI at all.据我所知,Amazon SQS JMS 客户端根本不支持 JNDI。 There are no references or examples in the documentation that use JNDI.文档中没有使用 JNDI 的参考或示例。 They all use programmatic creation.他们都使用程序化创作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM