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



Hi,

Your reason to use Java for connecting to MQ was apparently inspired by not 
having MQ on the source system itself (it's a shame there's no native client).  
While I had the same issue in the past, I solved this by using a remote 
dataqueue so that the "copy" job could run on the system where MQ was 
available. (and no Java was needed)

The problem is that both yours and my solution destroy the advantage of using 
MQ since a network failure will finally cause the dataqueue to overflow and 
probably crash the initial program or at least loose messages.

Kind regards,
Paul

----- Oorspronkelijk bericht -----
Van: McCully, Keith (RBS Insurance) [mailto:Keith.McCully@xxxxxxxxx]
Verzonden: vrijdag, augustus 11, 2006 04:27 PM
Aan: ''Java Programming on and around the iSeries / AS400''
Onderwerp: RE: Differences between calling Java from Qshell and RPG?

Doh! I'd been doing all my testing from an interactive session.

I followed Simon's suggestion of submitting the job with ALWMLTTHD(*YES)and
it worked!
Thanks Simon.

Also, a big thank you to all who responded with special mention to Barbara
for her continued assistance.

This means that I can launch a continuous RPG server job that:
1. Initialises MQ & JDBC connection (just once)
2. Receives requests from an iSeries DTAQ and hands off these requests to
another system via JNI calls to Java MQ methods.
3. Closes down on receipt of a 'special' DTAQ message. 

Thanks,

Keith







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