[Migrated content. Thread originally posted on 28 August 2006]
Hi,I have got the wonderful task to create a Java program that has to access to contents in our Cobol Vision files via a client server connection.
To do that I created a vision file access object factory object in Java that is kept in an RMI container on the server. The container also includes a CVM object. Both objects are instanciated only one time when the RMI container starts up and remain there until I shut down the RMI container.
Every time I need generic access to the vision files on the server the client sends a request to the file access class factory which creates an access object for the matching file on the server. It is kept there as long as the Java program uses it. All access mechanisms to the vision files are done with I$IO calls.
Running that sort of "rich client - server" combination I came to the following unsatisfying results:
1. The access is very slow. It takes more than two minutes to read 4000 records.
2. The amount of data that gets processed varies from 400 to 900 records before my RMI access mechanism comes back with an odd error message. I couldn't figure out the reasons why this happens for there is almost no information about it.
I already tried several solutions to tune the access to the files and I am getting pretty desperate about the thing.
I have got the feeling that the CVM object causes some memory violation issues while it is bound into the RMI container. Also the cobol wrapping and the access mechanisms seem to be very slow.
Is there anybody who has made similar experiences? I would really appreciate some support if there is any,
Chefdecuisine



