Solved

message queue, from VB.net to as400

Posted on 2012-04-05
1
828 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 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Title # Comments Views Activity
What is the proper method to reference javax.servlet on and AS/400? 5 150
RPGLE Uploading spreadsheet to AS400 5 119
iSeries DB2 - Query with Sub Query? 7 109
ODBC Informix Driver 11 129
The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

856 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