× 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: Madhavan <seawolf00@xxxxxxxxx>
  • Date: Thu, 10 May 2001 13:22:07 -0700 (PDT)

How about having a static variable that is updated to
"HELD" when client 1 is running and any other clients
start the process until the variable value is reset
back to "FREE". So process 2 sleeps until process 1 is
complete. 

--- Duane Kehoe <dkehoe@weycogroup.com> wrote:
> 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
> +---


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.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
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.