在设置一个简单的 Streaminsight 应用程序时,我遇到了 server.create() 工作而 server.connect() 失败的问题。我不确定潜在的原因是什么。
编辑:源代码在这里: http://pastebin.com/XigdxXLd
我的设置:
- 的私有 msmq
- 客户端发送数据服务器 使用输入适配器读取此 msmq 并将输出生成到文本文件
通过上述设置,如果我创建 Streaminsight 服务器的内存实例(使用 server.create("MyInstance")
,它会消耗 msmq 中的所有消息并且工作正常(应用程序退出之前大约需要一分钟,因为它喜欢在 server.dispose() 调用上等待一段时间)
。
Server.Connect(
new EndpointAddress(@"http://localhost/StreamInsight/MyInstance")
);
一条消息,并且应用程序在 application.Delete()
一分钟后超时(其中应用程序是 MS.CEP.application)。
它仅消耗 msmq的 我和我能成为的人做错了吗?
另外,我最近尝试打开 StreamInsightHost.exe.config 文件,但记事本和 Visual Studio 都不让我打开它,不确定这是否会影响任何内容,但我只是认为我'会把它放在那里。
In setting up a simple streaminsight app, I am running into the issue where server.create() works and server.connect() fails. I am not sure what could be a potential cause.
EDIT: Source code here: http://pastebin.com/XigdxXLd
My setup:
- private msmq where clients send data
- server reads this msmq using the input adapter and yields output to a text file
With the above setup, if I create an in-memory instance of streaminsight server (using server.create("MyInstance")
, it consumes all the messages in the msmq and works fine (it takes about a minute before the app exits, since it likes to sit on server.dispose() call for a while).
If I switch to server.connect using the following:
Server.Connect(
new EndpointAddress(@"http://localhost/StreamInsight/MyInstance")
);
it only consumes one message of the msmq and the app never completes. The project times out after a minute on application.Delete()
(where application is the MS.CEP.application).
Can someone please help me with what I could be doing wrong ?
Also, I tried opening the StreamInsightHost.exe.config
file recently, but neither notepad nor Visual studio would let me open it. Not sure if this can influence anything, but I just thought I'll put it out there.
发布评论
评论(1)
如果有人来到了黑巫毒魔法之地,这里有一种药水可以帮助你渡过难关:
解决方案位于:http://social.msdn.microsoft.com/Forums/en-US/streaminsight/thread/6972a647-73b1-4fbf-9d85-c88b66304316?prof=required
If anyone lands up in the land of black voodoo magic, here is the potion that will sail you through:
Solution at: http://social.msdn.microsoft.com/Forums/en-US/streaminsight/thread/6972a647-73b1-4fbf-9d85-c88b66304316?prof=required