Matt, Thank you very much for your answer it was really helpful!
On Feb 14, 1:36 pm, Matt Burton <[email protected]> wrote: > In your configuration you can specify whether your endpoint is > transactional or not - see here: > > http://hibernatingrhinos.com/open-source/rhino-service-bus/config > > What this means, however, is that you will no longer have a safety net > should your message processing fail - the message will simply be lost > - it will not go back in the queue or get moved to the error queue. > (this is by design as you are no longer in a deterministic state) If > you want to have transactional queues, but simply ignore the ambient > transaction when talking to your database then another alternative is > to wrap each of your database calls in a TransactionScope that > suppresses the current transaction: > > using (new TransactionScope(TransactionScopeOption.Suppress) > { > //database code... > > } > > Another, more cross-cutting way would be to encapsulate this behavior > in a message module - creating the EF object context upon receipt of a > message while suppressing the transaction on the new database > connection. I've done it before with NHibernate - wound up having to > delist the underlying ADO.NET connection itself - ugly and fortunately > short lived while DTC/firewall configuration issues were worked out. > > HTH, > MattOn Mon, Feb 14, 2011 at 5:22 AM, Varholl <[email protected]> wrote: > > Hi everyone! we are using Entity Framework with MySQL and Rhino > > service bus in between, our problem is once we consume a Message (we > > are sending a message not publishing it) the Consumer gets the > > message, but when we try to add a new object to the entity framework > > Context it fails because of a DTC transaction not supported exception. > > > As far as I Know, mySql does support DTC transactions, but the .Net > > Connector doesn't. Is there any way to tell Rhino Service Bus to Not > > use a trasaction to send and receive the message? > > > Did anyone had any problem like this? > > > Thanks! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Rhino Tools Dev" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/rhino-tools-dev?hl=en. -- You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en.
