Hi,
How can i use spring batch admin for spring batch2.0
i want to work on spring batch admin, can any one let me know what are the necessary changes to be done and its impact...
thanks,...
Type: Posts; User: ramesh.kasarla; Keyword(s):
Hi,
How can i use spring batch admin for spring batch2.0
i want to work on spring batch admin, can any one let me know what are the necessary changes to be done and its impact...
thanks,...
Hi,
Please provide solution for the given scenario::==
I am using MultiResourceItemReader to read multiple text files(assume more than 10 files), in each file i may have n number of batches(a...
Hi,
can any one help me out on this issue.
I am using multiresourceitemreader as delegate in my reader class and able to process multiple files.
In my processor class, i do validation and...
Hi,
I am using MultiResourceReader to read multiple files.
After successfull processing of each file, i want to move the files to other location.
Ex. if successfully processed file, want to...
Any help on file parsing, if i get empty fields in the expected values, the file should still be parsed , but the corresponding elements should have null value in the POJO
Thanks Dan,
I tried to retrive from setter method. I have FlatFileItemReader instance(setter), but Resource is PRIVATE in FlatFileItemReader, due to which i am unable to retreive the filename.
...
Hi,
My Input is a text file. I have used the file line tokenizer to divide the elements on the input lines.
I can get n number of lines in a file. and each line length will be 300characters, if...
Hi,
In jobs.xml i have configured filename to read.
How can i dynamically retreive the file name in any of my classes(reader or processor or writer).
please let me know piece of code.
...
Please update the xsi location accordingly in your application context, and then it should work fine
Thanks,
Ramesh Kumar Kasarla
Its working.
Thanks Garrette
Hi,
When i run a batchJob, a jobExecutionId will be generated in BATCH_JOB_EXECUTION table in DB, how can i retrieve this id(which is created now) dynamically.
I want this id to be retreived...
Thanks Garrette,
If i return null in processor, will all the exception records be available to ExceptionProcessing Service(means all bad records should go to this service).
And if suppose if i...
Hi,
My input file is flat file and i am doing validation(to check whether the input data is valid or not) in processor and invoking other service in writer class.
What is the best way to have...
Hi,
I am using SpringBatch2.0 and my input file is a flat file.
I am using FlatFileItemReader to read the input text file.
Can we read continuously and stop when the line is of different...
Thanks for ur reply,
The problem is not with the pattern, its to find whether we are reading a duplicate record or not. To read/identify a duplicate record, we don't need any pattern
Your...
Thanks Saravan,
my input file will be in this format
H:
T:
T:
H:
T:
H:
T: ....
Hi,
My Input source is text file, which has 2 types of records totally.
H: and T: with prefixes.
If i encounter a duplicate H: record again while reading the file, i should skip that set and...
Thanks Lucas,
its working fine...
Hi,
I want to log my job details in Database(oracle). We have 6 default tables with prefix BATCH_
when i run a job, i should be able to see its details in DB.
i have used the below...
Thanks Garette,
In my scenario, i will be reading a set of records(a batch), if i get exception, i need to write this batch into a seperate file.
I think custom line mapper will work if we are...
Hi Dan,
i have referred multilineOrderJob.xml for validating each field.
{ customer.registered : customer.businessCustomer = FALSE OR ? = TRUE : 'Business customer must be registered' :...
Thanks Garrrette,
can i have any piece of sample code... its getting complex day by day.
Don't we have any spring batch validation framework to validate a Batch.
Thanks,
Hi Dan,
i have used ValangValidator,
<beans:bean id="tradeValidator" class="org.springframework.batch.item.validator.SpringValidator">
<beans:property name="validator">
<beans:bean...
I tried using BeanWrapper, but using this i am unable to configure the each field type.
Example:-
H:2006092900000030000030100200000000000000000D00000000000400000D...
Thanks Garrette,
currently i am using default line mapper, can i have sample custom line mapper and writer code.
thanks for your time.