Solved

message queue, from VB.net to as400

Posted on 2012-04-05
1
800 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
1 Comment
 
LVL 34

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

A procedure for exporting installed hotfix details of remote computers using powershell
Moving applications to the cloud or switching services to cloud-based ones, is a stressful job.  Here's how you can make it easier.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now