Solved

message queue, from VB.net to as400

Posted on 2012-04-05
1
850 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

707 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