|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Programming Against WebSphere MQ using .NET |
« View previous topic :: View next topic » |
Author |
Message
|
abiondo |
Posted: Thu Aug 30, 2007 12:48 pm Post subject: Programming Against WebSphere MQ using .NET |
|
|
 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 |
|
 |
jefflowrey |
Posted: Thu Aug 30, 2007 12:52 pm Post subject: |
|
|
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 |
|
 |
tleichen |
Posted: Fri Aug 31, 2007 1:25 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|