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



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



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.