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 » Programming Against WebSphere MQ using .NET

Post new topic  Reply to topic
 Programming Against WebSphere MQ using .NET « View previous topic :: View next topic » 
Author Message
abiondo
PostPosted: Thu Aug 30, 2007 12:48 pm    Post subject: Programming Against WebSphere MQ using .NET Reply with quote

Novice

Joined: 30 Aug 2007
Posts: 21
Location: Philadelphia, PA

I am trying to write a generic wrapper class to handle puts and gets to MQ. I am sure someone is already doing this and can give me some information.

I have 1 class that handles business logic, 1 class that handles MQ Connections, GET w/ WAIT (INFINITE). I have a module that calls the MQ Class.

The module calls the MQ class, connects to MQ and gets all of the messages. I can not figure out how to pass the information back to my business logic class without adding the call within the MQ class?

I am sure someone has done this before, any help would be much appreciated.

thanks much,
Anthony

Anthony Biondo
Manager, Web Services
AmeriHealth Mercy
Back to top
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Thu Aug 30, 2007 12:52 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The way this kind of thing is typically done in other languages is to create a data container object ( a java bean, for example). Then it's this object that is passed back and forth.

One thing I've always struggled with in this area, though, is "how much of the options available in the MQ API do I need to expose"? At some point, the library starts resembling the MQ API in complexity and the value of using a separate library gets much smaller.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
tleichen
PostPosted: Fri Aug 31, 2007 1:25 pm    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

I did this years ago with the native MQI and encapsulated the building of the data structures (i.e., MD, GMO, PMO, etc.) for each of the functions. There were a few small features I added for convenience. But for the most part, my API made it easier to write MQ programs without needing to be an MQ programmer. If you try to do more than that, you could run into the problem that Jeff mentioned.
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
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 » Programming Against WebSphere MQ using .NET
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.