The batch context :
...
<!-- ##### import du contexte commun batchs ##### -->
<import resource="classpath:xxx-batch.xml"/>
<!-- ##### import du contexte de la couche service ##### -->...
Type: Posts; User: tstebut; Keyword(s):
The batch context :
...
<!-- ##### import du contexte commun batchs ##### -->
<import resource="classpath:xxx-batch.xml"/>
<!-- ##### import du contexte de la couche service ##### -->...
Hello,
On a recent project, I wrote a Spring batch with 2.0.0.RC1 made of 3 steps.
1rst : a tasklet
2nd : a multi resource reader, a custom processor and a custom writer
3rd step : a tasklet...
Hello,
Running on JBOSS-5.0.0.GA, I'm facing the same kind of problem :
Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-2.5.xsd', because 1) could not...
Hello !
I'm using Spring onErrorInStep method to exit a custom status :
/**
* méthode exécutée en cas d'erreur dans le step (Reader ou Writer)
*/
public ExitStatus...
Thanks....My jar were corrupted.
Oh well,
Are you sure its not your local resource it returns ?? Remove it from your project if you have one. Because I took your piece of code, and still got a FileNotFoundException at...
hmmmmm...
Well I think it's a "fake" Resource instance that you got from the jar : now try to read it...
I agree. This might be a bug, or lack of documentation, thanks.
What else ? I need to use wildcards across all jars included in the classpath. So I think I'll have to make my own PatternResolver...
Sure...well I think you should try it at your own, putting one property file in src/main/resources, and another (named differently, but respecting the pattern) in a jar to include in the classpath...
I allready tried all this...but the problem is that it does not see any jar that are explicitely in the classpath.
I'm affraid it does not help, because I put the property file is in root of the jar.
Furthermore, when debugging, it appears that the absolute classpath root dir is computed by the...
---------------->{:)}<-----------------
Ok then ! Plus it's in the Reference guide, thanks.
THanks for your replies, but it doesn't help.
I tried "jar:<whatever>" but it's not correct.
And I also tried "classpath*:<rootdir>/**/test-*.properties" but it doesn't work, whatever I put in...
I have a jar included in the classpath, which contains a property file, but I can't get this file with PathMatchingResourcePatternResolver...
Resource[] resources = new...
Hi,
Got a simple problem :
In some java piece of code, how can I get ExitStatus after a job having thrown an exception ?
Explanation :
I want to test ExitStatus translation, so I run my...
Hello, I have two questions :
First, why does some Spring Batch Interfaces, like ItemWriter and its write() method, use throws clause with Exception, against commonly known good practices ? How...
Hello,
I need to use a JdbcCursorItemReader, and for each red item, call a second SQL request and iterate again. (knowing that using a single request with join would be a waste because of...
All right, I suppose I can catch this exception in onErrorInStep() (instanceOf) method of a StepExecutionListener and then return ExitStatus 0, but how do I abort the job then since there are some...
Hello !
Something that's look quite simple doh :)
When launching a job with any writer, an IllegalStateException is thrown and batch fails when specified input resource does not exist.
So...
Thx +++++++
I'm afraid it doesn't.
XmlAnyType from org.apache, or any XmlBean generated type have too complex equals and/or hashCode methods, which returns false all the time, and even on the same physical...
Thanks, I'm working on it.
Las time I was trying to skip bad records with HibernateCursorItemReader but the items were just not skipped.
Actually, implemantation of equals and hashCode methods solve the problem.
But now...
When parsing a big document with StaxEventItemReader, when the moveCursorToNextFragment() method is called by the framework, an OutOfMemoryError is thrown :/
Inside moveCursorToNextFragment(), a...