× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



What happens when you have multiple users in this solution?  How do you make
sure that you read the right entry out of the data queue and no somebody
else's?  Maybe I am missing something here. . .

Aaron Bartell

-----Original Message-----
From: David Gibbs [mailto:david@xxxxxxxxxxxx]
Sent: Saturday, April 12, 2003 10:04 AM
To: Java Programming on and around the iSeries / AS400
Subject: Re: Java Dropdown Window from with RPG program


At 09:50 PM 4/11/2003, you wrote:
>You made mention to data-queues. Do you have any source code example you
can
>refer me to that might be doing this type of work. Eventually I would like
>to convert the old "green screen" programs to all GUI when I get a handle
on
>what I need to do this.

Nothing specific ... but you can find plenty of examples of using data 
queues in the archives, I think.

Your basic logic would be this ...

Start Java program which will listen on the incoming data queue.

Start the RPG program ... which sends a entry to the incoming data queue 
and waits for a entry on the outgoing dataqueue.

Java program receives the entry from the incoming data queue, displays 
pop-up box, accepts selection, and sends the results to the outgoing
dataqueue.

RPG program receives entry from outgoing dataqueue and processes it.

You may want to use a keyed dataqueue and use the workstation id or IP 
address of the client as the key.

Another approach would be to use TCPIP sockets ... which is what dataqueue 
support in Java actually uses under the covers ... but that's a lot more 
complex (more flexible too, but that comes with the complexity).

I would not recommend starting a new thread for each popup, as the user 
could get confused by all the entries.  A single thread that reads & 
processes the incoming data queue will work fine.

david


_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (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-Ups:

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

This mailing list archive is Copyright 1997-2024 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.