JRecord was not specifically designed to be thread safe.
There are section that will be thread safe (or nearly so). For records / lines you can use your own records / lines using a provider (or builder class).
What exactly is your planned use ???
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Bruce,
The requirement is to read a set of vendor files(copy book formatted data files) concurrently and create xml or java objects using the data in them.
I am currently using the ioProvider.getLineReader() method to read the records, however when multithreads access this method, I get an error which is "The file "parser.dat" is either missing or corrupted"
Thanks
Vimesh
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Problem is occurring in the initial parsing of the Cobol Copybook. This only happens once. I will put a synchronize around the relavent sections of code
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Bruce,
I would like to know the possibility of accessing JRecord concurrently. So was it designed to use in a thread safe manner.
Thanks
Vimesh
JRecord was not specifically designed to be thread safe.
There are section that will be thread safe (or nearly so). For records / lines you can use your own records / lines using a provider (or builder class).
What exactly is your planned use ???
Hi Bruce,
The requirement is to read a set of vendor files(copy book formatted data files) concurrently and create xml or java objects using the data in them.
I am currently using the ioProvider.getLineReader() method to read the records, however when multithreads access this method, I get an error which is "The file "parser.dat" is either missing or corrupted"
Thanks
Vimesh
Problem is occurring in the initial parsing of the Cobol Copybook. This only happens once. I will put a synchronize around the relavent sections of code
I have updated JRecord to add a Synchronize around Reading Cobol-Copybooks. See