× 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 Andres,

> It´s a good idea. ¿how run java program in a listen mode?¿it´s efficient?

    Yes.  We usually loop until a terminate message is sent and also use a
shutdown hook.  After processing all available messages, the program sleeps
for a soft-coded length of time, wakes up and rechecks.  By using a message
queue, messages can even be sent manually and graceful shutdown is assured.

> ¿can i use only one JVM in several jobs?

    Yes.  That's the great thing about asynch procesing:  everything is
decoupled except the rendezous point and that can be soft-coded as well.
We've been talking about a single process, but you could also have a
centralized controller.  I haven't gone to this extent yet for Java apps,
but a long time ago we did similar with APPC.  The main program collected
requests and, based on what it was, called the appropriate program to
process it.  Even the calls were soft, so anything could be added.


                                                         Joe Sam

Joe Sam Shirah -        http://www.conceptgo.com
conceptGO       -        Consulting/Development/Outsourcing
Java Filter Forum:       http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International?    http://www.jguru.com/faq/I18N
Que Java400?            http://www.jguru.com/faq/Java400


----- Original Message ----- 
From: "ANDRES COLODRERO LEHMANN" <andres@xxxxxxxxxx>
To: <java400-l@xxxxxxxxxxxx>
Sent: Tuesday, June 14, 2005 4:10 AM
Subject: RE: Insert from DB2 to oracle using Java


It´s a good idea. ¿how run java program in a listen mode?¿it´s efficient?

If i call to java programm interactivelly , ¿each job create a new JVM?. I
think that each job is one JVM.
In this case, not it´s good idea., although i can submit rpg program that
call to java program insert in Oracle.
¿can i use only one JVM in several jobs?



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.