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



Am Montag, 18. März 2002 15:28 schrieben Sie:
> >rpg programmers don't know anything about multi-threading and therefor I
> >never would call any rpg programm or procedure synchronous via jni. I
> >wouldrecommend to use stored procedures for programs and UDFs for
> >subprocedures.
>
> I'm confused.  Are you suggesting that the RPG programmer can't learn to
> have synchronous JNI methods?

The problem is not calling a JNI method, the problem is to avoid deadlocks in
serialized methods and rpg modules have to be serialized. Using stored
procedures or UDFs SQL handles this on connection level.

>
> Wouldn't one or two nasty bugs be a sufficient teacher?
>
One or two nasty bugs ... did you ever have problems with deadlocks in
multithreaded applications???
The only way is to avoid this problems and there are only two rules:
- if you nest serialized blocks, bring the semaphores into an order
- never use a nonfinal method or an unknown method in a synchronized block

and the second rule applies to rpg - java - rpg calls.

>
> Larry W. Loen  -   Senior Linux, Java, and iSeries Performance Analyst
>                           Dept HP4, Rochester MN
>
>
> _______________________________________________
> This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
> mailing list To post a message email: JAVA400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
> or email: JAVA400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.

--
mfG

Dieter Bender


DV-Beratung Dieter Bender
Wetzlarerstr. 25
35435 Wettenberg
Tel. +49 641 9805855
Fax +49 641 9805856
www.bender-dv.de



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.