ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MQseries and C# help

Post new topic  Reply to topic
 MQseries and C# help « View previous topic :: View next topic » 
Author Message
Yars13
PostPosted: Fri Oct 01, 2004 11:28 am    Post subject: MQseries and C# help Reply with quote

Novice

Joined: 27 Sep 2004
Posts: 21

I'm not sure if this is the correct forum to post on, but here's my question. I am trying to develop code to put and get messages from queues and handle disasters with grace. Maybe someone can suggest some techniques or point me in the right direction, i've never used MQseries before and can only do simple Puts/Gets at this point.

I'm using C#, MQSeries 5.3 client and server, SQL Server. First the Put. I need to get some data from the DB, formatt it, put on the queue, then update the DB, in that order and make sure that if there is some disaster somewhere in the middle, then nothing gets updated or put on the queue.

Similarly, when i get the message from the queue. I need to get the message, formatt it and then put it in the database, in that order. Here i need to make sure that in order not to lose anything, if there is a disaster and the database doesn't get a chance to get updated, then the message doesn't get taken off the queue and lost forever. So i need it to stay on the queue until i can come back and try to get it again.

If anyone has any suggestions on how this can be done i would really appreciate it. Thanks in advance.

Yars
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Oct 01, 2004 11:34 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

read the MQ Series .NET manual (pdf ? ) delivered with the installation of the MQ Series .NET client.

It will tell you everything as well as the way to do a 2phase commit.

Enjoy
Back to top
View user's profile Send private message Send e-mail
.NETDeveloper
PostPosted: Thu Oct 21, 2004 2:56 am    Post subject: Reply with quote

Newbie

Joined: 21 Oct 2004
Posts: 2

fjb_saper wrote:
read the MQ Series .NET manual (pdf ? ) delivered with the installation of the MQ Series .NET client.

It will tell you everything as well as the way to do a 2phase commit.

Enjoy


I didn't find information about two-phase commit and the .NET client.
Are you sure that this is possible?

Thanks!
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Oct 21, 2004 4:36 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

.NETDeveloper wrote:
I didn't find information about two-phase commit and the .NET client.
Are you sure that this is possible?

Thanks!


If you did a quick search for "two-phase" and "client", you'd find any of the likely thousand other messages that say "You can't do two-phase commit with a Client. Except if it's the Extended Transactional Client".
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQseries and C# help
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.