?
Solved

message queue, from VB.net to as400

Posted on 2012-04-05
1
Medium Priority
?
876 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 2000 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

This is a fine trick which I've found useful many times, when you just don't want to accidentally run a batch script or the commands needs administrator rights.
Introducing Priority Question, our latest feature.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

770 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