locked
Registering Sources in Standalone StreamInsight RRS feed

  • Question

  • Hi,

    I want to create sources (esp. WFC) and register them in a standalone StreamInsight server. I am using:

    var observableWcfSource = app.DefineObservable(() => new WcfObservable());

    but it does not register the source in StreamInsight with a name (so other apps cannot use the source). When i browse my Application with Event Flow Debugger, i see no source!! How can i register the source with a name.

    Wednesday, August 13, 2014 9:55 AM

Answers

  • The Rx model in StreamInsight doesn't have something that corresponds to query templates in the adapter model. You're getting the two models mixed up - not hard to do. You'd want to provide your own encapsulation of Processes with attachable/configurable sources and sinks and then an API to allow users to manipulate it. If you look at the StreamInsight Foundation on my blog, the Process Provider provides the encapsulation of the processes.

    DevBiker (aka J Sawyer)
    Microsoft MVP - Sql Server (StreamInsight)


    Ruminations of J.net


    If I answered your question, please mark as answer.
    If my post was helpful, please mark as helpful.

    Wednesday, August 20, 2014 11:11 PM
    Moderator

All replies

  • You should be able to deploy it to the server with a unique name. That will let you use it in other queries.

    observableWcfSource.Deploy("MyNewObservable");
    

    More information is available here on MSDN: Deploying StreamInsight Entities to a StreamInsight Server

    • Proposed as answer by TXPower125 Tuesday, August 19, 2014 3:54 AM
    Wednesday, August 13, 2014 3:22 PM
  • Thanks for your help. What about Queries? can i deploy queries in StreamInsight and see it using Event Flow Debugger (Queries tab)?

    Saturday, August 16, 2014 11:21 AM
  • Yes. This is also covered in the Deploying StreamInsight Entities to a StreamInsight Server MSDN article. If you are using the Rx-centric approach of StreamInsight 2.1+, a named process is created when you bind a source to a sink and call Run().
    Saturday, August 16, 2014 3:08 PM
  • This is different. How can i deploy a query (as a template) in StreamInsight server so others can instantiate processes based on it. I read somewhere it is possible but i cannot find how!!?

    Sunday, August 17, 2014 4:32 AM
  • The Rx model in StreamInsight doesn't have something that corresponds to query templates in the adapter model. You're getting the two models mixed up - not hard to do. You'd want to provide your own encapsulation of Processes with attachable/configurable sources and sinks and then an API to allow users to manipulate it. If you look at the StreamInsight Foundation on my blog, the Process Provider provides the encapsulation of the processes.

    DevBiker (aka J Sawyer)
    Microsoft MVP - Sql Server (StreamInsight)


    Ruminations of J.net


    If I answered your question, please mark as answer.
    If my post was helpful, please mark as helpful.

    Wednesday, August 20, 2014 11:11 PM
    Moderator