Solved

message queue, from VB.net to as400

Posted on 2012-04-05
1
831 Views
Last Modified: 2012-05-06
HI,
I know that exists a control which permit to connect a message queue in as400 from vb.net.
Someone have some code to show me in order to make this connection functions?
thanks
0
Comment
Question by:bobdylan75
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 35

Accepted Solution

by:
Gary Patterson earned 500 total points
ID: 37874181
Is Java an option instead of .NET?  Message queues are easy in Java, since IBM provides a MessageQueue class in the Java Toolbox (or open source JTOpen package):

http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Frzahh%2Fjavadoc%2Fcom%2Fibm%2Fas400%2Faccess%2FMessageQueue.html

If you have to do it from From .NET, I'd probably opt to create stored procedures to wrap the SNDMSG/RCVMSG commands or the QMHSNDM/QMHRCVM APIs.  Then you can just use the iSeries ADO.NET adapter that comes with Client Access to issue stored procedure calls to your stored procedures.

To send messages, you can always just use remote command support to execute a SNDMSG command.

Receiving is trickier.

I looked in the IBM i Access for Windows Programmer's Toolkit docs, and didn't see any non-Java tools for working with message queues, but I might've missed it - you should look yourself.  It isn't always installed by default, so you may have to locate your Client Access media and install it from there.

Another alternative might be to write a simple little AS/400 message queue monitor program, and run it as an auto-start job - have it watch the message queue you want to monitor, and push message information onto a data queue - it is pretty easy to watch a data queue from VB.

Maybe if you could tell me a bit more about your requirements, I could help with suggesting a solution.

- Gary Patterson
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
Read  the original post  on Monitis Blog. Hi.  My name is Erik Dietrich, and this is the first time I’ve posted on the Monitis blog.  By way of introduction, I thought it would make sense to talk about my initial experience with Monitis.   Befo…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question