Saturday, October 15, 2011

Tip1. Java using OTDs

Tip1 : Java With OTD and Big File Handling For JCAF
Somebody asks me why you like JCAPS. One of things is Java and OTD.
If you know Java, you can easily include any JCAPS OTD into your java program. If I have really complex interface, I always use this approach.
Big advantage with this approach is that ‘Your development cycle will be shortened with a couple of times faster’ and ultimately it saves a lot of money for your IT.
I will reuse jcdFileMappingExample collaboration in ‘Example2. Batch Transaction Type article.’ If you don’t have it, please refer to the following URL to download files.
http://commonserviceframework.blogspot.com/2011/10/ex2-batch-transaction-type.html

Java program will be tested with small and big file.
Big file will be generated with batch script called GenerateSampleFile.bat under $JCAPS_COMMON_ROOT\utilities directory.
Total Elpased time with FileMappingExample.java is 366531 milliseconds (6 minutes 6 seconds 531 milliseconds).

Input File
Output File
One Record Size
176 Bytes
205 Bytes
Total File Size
1,780,000,000 Bytes
(1.66 GB)
2,070,000,000 Bytes (1.93 GB)

For the detailed setup and test scenarios, refer to the below document and sample zip file.
Tip1_JavaWithOTD_BigFileHandling_For_JCAF.doc
Tip1_JavaWithOTD_BigFileHandling.zip

No comments:

Post a Comment