Hi All,
We started a Spring-batch job, but while the job was running, the Server were it was running on was restarted. The result of this is in the database:
STATUS: STARTED
EXIT_CODE:...
Type: Posts; User: Reijnemans; Keyword(s):
Hi All,
We started a Spring-batch job, but while the job was running, the Server were it was running on was restarted. The result of this is in the database:
STATUS: STARTED
EXIT_CODE:...
Sure I can I could enrich the header before putting it on de pub sub channel, so that solve that problem. but does this mean I could read the message B multiple times of a channel?
As result we...
Thx for the quick response.
The aggregation is over 2 message but it's done multiple times
Say we have input "A" an put this on the pub-sub-channel.
The splitter will take it and split it in...
Hi All,
I've some problems with my flow, I hope you could help me with this. The situation I want to achieve is describe in the attached image,
Functional: as input I've an event and which...
What I did is put my data into a threadLocal, but this is only possible with a single threaded job
Hi micheale,
Thanks for the explanation, it's clear for me.
@shiralkarprashant, sorry for messing up your post with my question
HI thanks for the responses,
Unfortunely I''m not able to post my code till after the weekend, but I also think this is not realy necessary because my reader is a staxEventReader. And my processor...
Hi,
I've the same problem, did you found a solution for the problem that the processor is called twice when an (skippable) exception is thrown?
Thanks
Hi,
I try to initialize an ItemWriterAdapter but I got an exception:
The creation of the bean looks as follow:
<bean scope="step" id="abstract-import-writer"...
Hi Javed,
For the XML-parsing you could take a look at:
* org.springframework.batch.item.xml.StaxEventItemReader
* org.springframework.batch.item.xml.StaxEventItemWriter
Cheers
If you add @Scope("step") to your reader it should work
You're right it's easier to Inject my own DAO or session factory, I only hoped that Spring-batch already had a class which was able to use the result of the first query in the second one. Thanks for...
Sorry I mixed up the ItemStream with the ItemStreamReader. So if I want to use my result from the query I have to write custom functionality and take care of the database actions myself?
At the...
Hi Dave, thanks for your response.
Could you tell me which read you mean the one of the stream or the reader?
Hi,
I'm trying to write a Composite HibernateCursorItemReader, where the stream will use some result values as input params. I wondering when the method "open" is called, because the "open" method...
Maybe I have to write all data to ThreadLocal, and when everything is read, create a reader on my ThreadLocal and write it to an xml file.
Correct I prefer not to.
This is maybe possible, but I'm not totally sure how a composite service is working. As I read a ItemReader is calling another ItemReader.
I've have to read one...
Thanks for your response tiger.spring.
Unfortunally it is not possible to write it in one query. I already looked at it. And a storedProcedure is not allowed.
Think the best thing is to have a...
Hi All,
Could you give me some advised how to setup the following case with spring batch:
I've have to read several types of objects from the database and I have to write those object to a...
Hi Don,
Thanks for your response, I your are right Link, I have to wait for the next release to use the self implemented annotation.
Reijnemans
Hi all I created for my web-app a custom annotation that reads a param from a session, however my resolver is never executed, putting a breakpoint in de resolveArgument method doens't help and...
Hi,
I've a problem with project references within STS. I've imported my maven project into STS but my web projects doesn't recognize my project references. When I build the project via...
Hi all,
When starting a new Roo project with STS, i've problems with downloading the (Spring) artifacts.
* Already tried to remove my whole maven repo, but that doesn't make any differents.
*...