I am reading a flat file and do some business logic before writing into table. Some of the records are rejected in reader side and few in writer side as per my business. If any record is rejected, my...
Type: Posts; User: Shahul; Keyword(s):
I am reading a flat file and do some business logic before writing into table. Some of the records are rejected in reader side and few in writer side as per my business. If any record is rejected, my...
Thanks Lucas & Litius....
If we need to configure more than one listeners, how can we configure those in our context file?
<property name="listeners" ref="stepExecutionStatusListener,batchStatusLoggerListener" />
Please...
Thanks.. Lucas.
I have properly override equals method and hashcode method. It is working as expected.
But if one write error is encountered just after read error, the batch is calling...
Yes...almost.
Actually my step is skipLimitStep, not retryStep. This is my requirement .
If any record is incorrect as per business, it should throw a exception and log that details into...
Hi,
My batch is reading from a file and writing to database after applying some business rule. While applying business rule, the system is creating new fieldset with updated tokens. I am using...
sorry for late reply...
I implemented JobExecutionListener, not CompositeExecutionJobListener.
I implemented ItemReadListener, ItemWriteListener and extended CompositeExecutionJobListener in one class(BatchStatusLoggerListener) and that class is using for track the total number of processed...
I have to process fixed, delimited XML files. Coming files contain millions of records. So if we go through the file only for getting the total number of records, impact system performance. So I am...
HI,
I want to know the total number of records in a file just before the batch starts to process the first record, to show the status of job something like total records, processed records, failed...
Thanks Lucas and Robert for your valuable suggestions...
Lucas,
I think above method also change the fieldset indirectly by creating new fieldset using updated values. Is it ok? I took the suggestion of Robert. Please guide me.
Thanks Lucas for your valuable suggestion. I will put a abstraction between fieldset and map such that create a new instance of fieldset using updated values in original instance of fieldset.
I...
Yes Lucas, We can alter the values in map. But I want to segregate that functions with creation of map. Because the alteration is little bit trickier. More of that, according to some values, i need...
I am not using any specific VO classes, instead we are using map.
I have two options.
One is, alter the values just after creating tokens of fields but before creating fieldset. So we can...
Hi,
I want to read from a file and checks some conditions on record and do some changes on few fields then after write to database.
Do to this, first I thought read record and do the verification...
Ram,
Can you please explain about commons-vfs, because I am new to this.
Thanks,
Shahul
Hi,
I want to download file from a remote FTP server then continue the upload into database. For this, I think the first step of my job will download the file and second step will do the reading...
Hey Parimal,
I am working in a Quartz-Spring batch project. Please log your refined questions, we will discuss.
Thanks,
Shahul
Thanks Robert....solved this issue. Here I am scheduling same jobs more than once. so we have to change job detail name and trigger name for each scheduling...
Hi,
My batch is scheduled through a web application. I am using Quartz for scheduler. I have only one batch to run, but i have to schedule same batch as multiple jobs. For example one job should...
Thanks Lucas its working....:)
Hey,
i am facing same issue in my project.
So we can access jobparameter using jobExecution.getJobInstance().getJobParameters()...
But how can we get that instance of jobExecution in...
Yes.. we can use StepExectionListener to create the object which contains format configuration from the database. But here I want to access that object in itemReader and itemWriter to read the...
Let me refine my requirement
We have more than 60 jobs which are scheduled on daily, monthly etc.
Application has UI to configure incoming source files. Once it is configured and triggered that...