Does the Neuron API support topic/pub/sub/etc creation? I think that should be possible, but I can’t find any documentation or examples that show me how to do it. Could you please reply with some examples and brief explanations of the object model and API used to do so.
Tags: API, Publisher, Subscriber, Topic
sure does.....I'll put together a sample and post it
Ok...here's an absolutely crazy looking Pizza Application that was built a few years back. Just upgraded it for Neuron ESB 3.0. Shows how to use some of our admin APIs to create Topics, Publishers, Subscribers, subscriptions with conditions...etc....
just create a new solution with 3.0...make it active and go online. Run the Pizza App, create a new store....order a pizza, and you'll see all the topics and other artifacts get created in the online solution. you may have to refresh the Explorer by selecting close and and then connect again....but it will all be there
Works like a charm. Thanks for the slice!
Okay, so I'm using the Neuron API to create topics. I'm using the net/msmq channel type.
Is there an easy way to set the ESBTopic.ChannelProperties using the settings from a system.serviceModel/netMsmqBinding/binding element in web.config?
I'd rather not write my own config section handler for this.
I ended up using system.servicemodel and netMsmqBinding.
Since I couldn't find a way to directly use the C# NetMsmqBinding object, I started with Neuron MsmqChannelProperties and set a few specific properties according to the values I put in the service model binding definition.
Not being able to provide a C# base class binding object to a topic, however, keeps me from doing full auto discovery/configuration of topic transports via the system service model binding in web.config.
Food for thought...
That's a very helpful bit of code — thanks!
I'm writing a script to automate the deployment of custom adapters to Neuron using the classes in the Neuron.Esb.Administration namespace. Are you able tell me how I can get a list of the adapters that are registered with the neuron runtime? I.e., the adapter assemblies that exist in the Neuron ESB\<Instance Name>\Adapters directory and appear in the 'Adapter' drop-down when configuring the properties of an adapter in NeuronExplorer? I want to be able to validate that a new/updated adapter is correctly registered with the runtime before I try and set properties for it. (We're running Neuron 2.6.)
Neuron ESB Product Support Forums and Communities
© 2024 Created by Neuron Admin. Powered by