I found a solution extending StaxEventItemWriter e rewriting the methods open and close. Before write itens, I called createStartElement in open method (if the job is not restarted) to write the...
Type: Posts; User: fabianosuet; Keyword(s):
I found a solution extending StaxEventItemWriter e rewriting the methods open and close. Before write itens, I called createStartElement in open method (if the job is not restarted) to write the...
Until now, I haven't solved this problem. I have thought if I can solve this using JAXB marshaller instead XStream. I don't know if this works, but I'll try....
Someone can help me?
Thanks a...
Hello,
I want to write itens with STAX writer into specific element of XML file, according to XSD. For example:
<root>
<header></header>
<itens>
<!-- I WANT TO WRITE ITENS HERE -->
...
Guys, the proposed solution works fine! I really liked that!
In my case, I had to implement the fixed commit interval too, but it worked well!
Thanks!!!
Hi, thanks for reply.
I will try to explain my doubt. I need to control the chunks commits depending on the input, before process and after read. I will study the Completion Policy to know if it...
Hello,
I'm using spring batch for data extraction tasks, in the most of cases, from XML to DB. I have one situation that i need to control the commit interval manually.
Example: The...
Thank you for reply. I just solved the problem which was related about isolation level configuration on MySQL DB and some transaction attributes of JUnit class.
Hello Guys,
I have a problem with chunk commit. I'm using MySQL in my tests. My Job consists in a read of a thousand of registers from XML File and write to DB. Each file contais about 100.000...
Okay! Thank you very much!
I'm going to implement some tests!!!
Thank you for reply!
I undestand you, but the configuration allows only one fragmentRootElementName. Because of that, i can't map other element type at the same reader.
I have some Spring Batch...
Hello everbody,
Can i incrementally write results of different steps in the same XML file without overwrite the existing file?
I realized that if the parameter "overwriteoutput" of itemWriter...
Dear Friends,
I need to read multiple types of elements from XML input and bind to objects. I believe that is possible using StaxEventItemReader, but i don't know how.
If it's not possible,...