Neuron ESB User Network

The Service Bus for the Connected Business

I'm attempting to create a Service Connector with transactions enabled. The point being I would like messages only to be popped from Neuron queues when a 200 is received from the Service Endpoint.

At the moment, i can only set the binding setting Message Pattern to Datagram with its corresponding service endpoint configured for one-way - with this however as you can image there is no transactional integrity. If i set it to Request-Reply the message never gets delivered.

I'd like to set my Service Connector to  "Request-Reply" and corresponding endpoint to two-way. Does anybody know if this is possible?

Views: 43

Reply to This

Replies to This Discussion

Hi John,

if you use Neuron transactions set to enabled on a service connector, then if the service connector binding supports transactions, it will be enlisted in the underlying topic.

if you are using net.msmq bindings, this would restrict you to datagram, rather than request/reply as that's the limitation of the WCF binding, but you will still have the transaction support.

I think we may need to see exactly what you're doing though.....there really isn't enough info in your post to provide you with a solution.

we can setup a live meeting later today to assist you.

kind regards,

Marty

Hi Marty,

Thanks for your time last week.

As per our call, I've changed the bindings on Service endpoint to allow for the transactions to work. However, I am having trouble publishing to the endpoint. 

My question is do i have my binding set up correctly (below), and does Neuron wire up the internals of the service to the MSMQ for WAS? 

My Client connector  URL is defined as : net.msmq://myserver.mydomain.com:9000

And i use the following code to connect to it

using (var chan = new ChannelFactory<IOutputChannel>(

     new NetMsmqBinding(NetMsmqSecurityMode.None), new EndpointAddress(_endpoint)))
{
     var proxy = chan.CreateChannel();

     using (xmlReader = XmlReader.Create(

          new System.IO.MemoryStream(System.Text.Encoding.UTF8.GetBytes(_msg))))
     {
          using (reqMsg = Message.CreateMessage(chan.Endpoint.Binding.MessageVersion, _topic, xmlReader))
          {
               proxy.Send(reqMsg);
               reqMsg.Close();
          }
          xmlReader.Close();
     }
     proxy.Close();
     chan.Close();
}

RSS

Neuron ESB Product Support Forums and Communities

Latest Activity

Nick Novotny posted a discussion

Script to stop/restart service connectors

Is there a way to turn on and off service connectors through the neuron api?  Right now I need to go to Endpoint Health in Activity, and right click to stop and restart service connectors, I would like to have a script to do this.  Is this possible? Thanks,-Nick NSee More
May 11
Profile Iconsuresh datla and Mahboob joined Neuron ESB User Network
Apr 24
Nick Novotny posted a discussion

Msmq network transport error logging

We have multi-casting one way messaging through a remote msmq server using wcf services for our system. One day one of our many environments got a message to multicast…and didn’t send anything out.  We have a pipeline step to audit the incoming message, topic properties to move msmq messages to a dead letter queue after a specific amount of time, and a service policy to move messages to the failed neuron db table after a specific amount of time/retries (matching the msmq network properties to…See More
Apr 13
Stas Makutin posted a discussion

Load-balancing using Neuron

I want to implement following scenario using Neuron ESB:- get big list of working items from somewhere (let's say some database)- split this list to small "batches" of working items- send these batches each to particular instance of specific subscriber (Worker), so each that instance will process assigned batch in parallel with other instances- collect feedback (is processing complete/failed) + implement some fail-over mechanism (resend failed batches, monitor if batches weren't processed…See More
Apr 11
Profile IconStas Makutin, Bjorn Thomsen and Steve Harclerode joined Neuron ESB User Network
Apr 11
MH is now a member of Neuron ESB User Network
Mar 29
Profile IconCraig Muir and mehnaz joined Neuron ESB User Network
Mar 12
John Ryan posted a discussion

Trouble creating a net.msmq Client Connector

Has anyone successfully created a Client Connector using Net.msmq?I'm trying as many different configurations as i can to post a message to a Client Connector but i get the following error on my client app:"The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state."It looks as though my client connector endpoint is not binding to the WAS correctly.If anyone has any ideas, i'd love to hear them.Here are my Client…See More
Mar 6

Badge

Loading…

© 2012   Created by Neuron Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service