救命啊!C#通过NMS调用activemq问题!!!
用NMS调用activemq4.1程序到了ISession session = connection.CreateSession();
就挂起了。。。。晕死。。又没有高手知道阿。。。。跪求中 --------------------编程问答-------------------- 帮你顶上去,让高手看见! --------------------编程问答-------------------- 没用过...
学习....
友情帮顶... --------------------编程问答-------------------- 谢谢。。楼上。。。又没有能帮帮忙阿。。我用java调用是正常的。
I checked out the ActiveMQ-dotnet trunk from:
https://svn.apache.org/repos/asf/incubator/activemq/activemq-dotnet/trunk
出错的代码在
IConnectionFactory factory = new ConnectionFactory(new Uri("tcp://serendipity:61616"));
using (IConnection connection = factory.CreateConnection())
{
connection.ExceptionListener += new ExceptionListener(connection_ExceptionListener);
ISession session = connection.CreateSession(); --就是这句被挂起了
}
Exception Message: Object reference not set to an instance of an object.
Exception Stack: at ActiveMQ.Transport.WireFormatNegotiator.OnCommand(ITransp
ort sender, Command command) in D:\activemq-dotnet\src\main\csharp\ActiveMQ\Tran
sport\WireFormatNegotiator.cs:line 75
补充:.NET技术 , C#