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


  • Subject: Re: AS/400 Program Call
  • From: "Dave Wall" <dawall@xxxxxxxxxx>
  • Date: Thu, 10 May 2001 15:13:09 -0500
  • Importance: Normal


Could you lock the object before running the program?  A 'transaction'
becomes use command call to allocate (lock) an object, run the program then
use command call to deallocate (unlock) the object.  The allocate command
has a timeout so you could wait for the object to be freed or fail right
away.  If you wait, the lock could still fail then you re-try or put up an
error message.

David Wall
AS/400 Toolbox for Java


Duane Kehoe <dkehoe@weycogroup.com>@midrange.com on 05/10/2001 01:47:51 PM

Please respond to JAVA400-L@midrange.com

Sent by:  owner-java400-l@midrange.com


To:   JAVA400-L@midrange.com
cc:
Subject:  AS/400 Program Call



Hello,
     I have a program, that resides on a server and is called by serveral
clients. Further one thread of this program calls programs on an AS/400
that create a file, do some work, and returns to the java thread. My
problem is this: I need to use the same file for all instances of the
program calls on the AS/400 and I can not have more than 1 client
calling the AS/400 programs at once as the file can not be overwritten
by client 2 while client 1 is running the AS/400 programs. I have
syncronized the method of the thread but do not feel like this is
sufficient. Does anyone have a suggestion. Thanks in advance.

--
____________________________________________________________
Long live the Penguin!!!

Duane Kehoe                             Phone # 414.908.1814
Programmer/Analyst                        Fax # 414.908.1814
Weyco Group, Inc.               Email: dkehoe@weycogroup.com

+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---



+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

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.