I've never used user queues, so I looked them up. There's a good article here that shows reasons and examples for preferring user queues or data queues.
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=%2Fapis%2FExTaskDataque.htm
One difference I notice is that user queues must be in the user domain. Data queues generally are in the system domain. User queues can be manipulated only by MI instructions; no system API's. JT400 will abstract the MI so you won't notice much, but there will be restrictions. As David noted, you'll only be able to use the user queue will have to be on the same machine as the JVM.
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Rusu Boca, Ionut
Sent: Friday, October 19, 2012 4:20 AM
To: java400-l@xxxxxxxxxxxx
Subject: Using com.ibm.as400.access.UserQueue ...
Hello,
I would like to write a java program that would run on os400 and would extract some messages from a user queue, process them, and dumps them back into another user queue.
I would like to kindly ask you if the jt400 class com.ibm.as400.access.UserQueue would accomplish this task, namely :
1. Create/open new/existing user queue
2. Read the user queue content one by one - if the queue is not empty; if empty, block until it becomes non-empty, again
3. Write messages to the user queue.
Thank you,
Ionut.
This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at
http://www.jpmorgan.com/pages/disclosures/email.
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.