LSF 9 upgrade question

 1 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
aswinsivaram445
New Member
Posts: 2
New Member
    Hello All
    I would like to know if it is possible to customize & introduce multi threading with the standard Lawson supplied Java program (like ABATN.java, MA95F.java). So that, each thread can handle specified set of data range.
    For example, MA95F.java is customized to handle 5 threads and...
    Thread 1 handles xx rows based on COMPANY key value from 1..100
    Thread 2 handles yy rows based on COMPANY key value from 101..200
    Thread 3 handles zz rows based on COMPANY key value from 201..300
    Thread 4 handles aa rows based on COMPANY key value from 301..400
    Thread 5 handles bb rows based on COMPANY key value from 401..500

    Thanks in advance
    aswinsivaram445
    New Member
    Posts: 2
    New Member
      For the benefit of everyone...
      I found that its not possible to perform multithreading with standard Java programs supplied by Lawson as the Java API's reads all the records sequentially even though an index is being used and a range is being specified. The Java API reads all the records from 1 to last & process the ones that falls in the specified range.