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.


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 ...


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,


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.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.