|
Ashish Kulkarni wrote:
but there is a draw back to this process, it canonly
handle one request at a time, unless you usethreads
in java to handle multiple request at a time,
i do not like to use it is a absolute must.
Threads aren't very difficult at all ... I use them
all the time.
so i would like to know more about this tcp/ipissue
solution how does it work, does it have the same
as data queue, or it can handle multiple requestget
can you provide some pointers or place where i can
some information with code sample
i m pretty comfortable with both the languages.
Well, the issue with handling multiple requests has
nothing to do with
the way the request is sent from the RPG to the Java
... if you want to
handle multiple requests at one time you'll need to
use threads ... or
multiple processes.
TCP/IP is less straight forward than using a data
queue ... but,
possibly, more efficient. I haven't really
researched the difference much.
One of the advantages of the TCP/IP technique is
that abandoned
transactions are easy to manage. With a data queue
(assuming you use a
keyed data queue), you really need to keep track of
what transactions
are active and which are not. With TCP/IP if the
transaction is
abandoned, the connection is lost and you handle it
programatically.
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 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.