简体   繁体   English

C# (Apache.NMS) 中的 ActiveMQ PooledConnectionFactory

[英]ActiveMQ PooledConnectionFactory in C# (Apache.NMS)

I am researching for the way to use PooledConnectionFactory in C#.Net (we are using Apache.NMS).我正在研究在 C#.Net 中使用PooledConnectionFactory的方法(我们使用的是 Apache.NMS)。 So far the documentation I found, eg:到目前为止,我找到的文档,例如:

Does not very much relate to .net development.与 .net 开发关系不大。

In.Net we are only given NMSConnectionFactory class with CreateConnection() method which doesn't seem to implement a pool of connection.在.Net 中,我们只获得了NMSConnectionFactory class 和CreateConnection()方法,该方法似乎没有实现连接池。

The reason I wanted to figure this out is that I don't want to create a connection each time the message is being sent.我想弄清楚这一点的原因是我不想在每次发送消息时都创建连接。

How do I use/configure connection pool in C# for activeMQ?如何在 C# 中为 activeMQ 使用/配置连接池?

The C# client doesn't currently provide a pooled version of the Connection factory like what the Java client provides. C# 客户端当前不提供连接工厂的池化版本,就像 Java 客户端提供的那样。 You could of course implement one and donate it to the project.您当然可以实施一个并将其捐赠给该项目。

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

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