Hi guys, I'm having problems calling my oracle function that returns a table of records/objects
FUNCTION get_cash_txns(p_client_id IN VARCHAR2)
RETURN pf_sett_led_records_tabtype
...
Type: Posts; User: pouncer; Keyword(s):
Hi guys, I'm having problems calling my oracle function that returns a table of records/objects
FUNCTION get_cash_txns(p_client_id IN VARCHAR2)
RETURN pf_sett_led_records_tabtype
...
<step id="stepTest" parent="faultTolerantStep">
<tasklet>
<chunk reader="testReader" writer="testWriter" skip-limit="1" commit-interval="1" retry-limit="0">
...
In our spring batch project, we have our functional tests in the src/main/test package
My problem is, there is a bit of code in one of our classes that is only needed for the functional tests
...
<bean id="customReader" class="org.springframework.batch.item.database.JdbcCursorItemReader">
<property name="dataSource" ref="dataSource" />
<property name="rowMapper">
...
Thanks for the continued support litius.
By this, do you mean that the job should contain 1 step only as we previously discussed?
Hi litius,
For the nature of our development, we must be able to rollback to the beginning of step1 if anything goes wrong during step2/step3. I do not want to skip or restart from step2, I need...
Hi litlius, it's because I'm not sure if this can be done within 1 step:
<step id="step1" parent="simpleStep">
<tasklet><chunk reader="itemReader" writer="itemWriter"/></tasklet>
<next...
What I stated above is incorrect. It seems a commit is actually being made.
Is there a way to configure it so the steps all run within 1 transaction?
Yep I guess I need to re-think the design then.
Just out of interest:
I have a step here, and within the tasklet I had a commit interval of 1.
I removed this commit interval, so it now looks...
The method takes 4 arguments, the last argument is causing me problems
public PortfolioDaoJdbcStoredProcWrapper(String schemaName, String pkg, String function, Class functionReturnClass)
...
Many thanks for the reply.
What if I was to set autoCommit to false on my datasource:
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property...
Hi guys, I have an issue. My job looks like this:
<job>
<step id="step1">
<tasklet ref="step1Tasklet"/>
</step>
Hi guys. I have a job and one of the steps is:
<step id="processBatchTxnsAndValuations">
<tasklet ref="txnsAndValuationsProcessor"/>
</step>
The tasklet ref bean is this:
I just realised that 'testBean' was another bean I had been messing around with. The code was infact working, I just had forgotten to remove the testBean!! Many thanks anish - implement Tasklet in...
Thanks for the reply Anish, I have made my class implement Tasklet and now get the following error:
<step id="testStep">
<tasklet ref="testBean2"/>
</step>
<bean id="testBean2" class="com.investmaster.util.batch.reader.BatchReaderServersideExecution">
</bean>
Hi guys, I have a job, and within the job is one of my steps:
<step id="stepTransferData">
<tasklet ref="processBatchTxnsTasklet"/>
<next on="COMPLETED"...
http://static.springsource.org/spring-batch/1.0.x/spring-batch-samples/index.html
I can't click on any of the examples, have they been moved?
Hi guys,
I have a job with 2 steps.
Step 1 has its own item reader, and many custom item writers.
In my step 2, within the item writer, I need to somehow call one of these custom item...
Hi guys. Hope someone can help me with the configuration of my steps.
In step3, after it has finished with the processRecon tasklet, i want to make it do step1/step2 again (once) - how can i do...
I've got a top level job that runs a number of steps like this:
<job id="feedEventJob" xmlns="http://www.springframework.org/schema/batch" parent="simpleJob">
<step...
I can't seem to find any sort of chunk documentation on xml spring beans for spring batch. For e.g, how do I know what elemennts we can define within a 'job' element, what about attributes within a...
Thanks for the reply bud. Is there an example in the spring docs that demonstrates this?
---------------------
-------------------------