Thanks Vito. The problem was with the path. I have a relative path, so it created the file in the root directory of the eclipse project that i was running this code from.
Anyway, the issue was...
Type: Posts; User: seshu_v; Keyword(s):
Thanks Vito. The problem was with the path. I have a relative path, so it created the file in the root directory of the eclipse project that i was running this code from.
Anyway, the issue was...
Put the file name in JobExecutionContext in step 1. you can access this in step 2 by implementing one of the listeners (StepExecutionListener).
something like:
...
Hi Vito,
I was already using FileSystemResource for fileLocator. Again, as i mentioned in my previous post, the issue was with the location of the file. :)
Thank you Ballistic. Actually, the issue was with the location of the fixed length file. It was writing to a different directory.
To your question of trimming and padding, I can see 2 quick...
I am trying to read from database and write to a file.
Here is the config i took from one of the samples:
<bean class="org.springframework.batch.item.file.FlatFileItemWriter"...
Thanks lucas. I was including two versions of ojdbc14.jar. That caused the conflict.
I was thinking the same too... that's the database version.
But I checked the version as per this link:
http://download.oracle.com/docs/cd/B10501_01/java.920/a96654/getsta.htm#1006402
Please...
Lucas, i tried the sql in toad, and the query works just fine.
I am trying to use JdbcCursorItemReader as a reader and then write to a flat file.
When i run the job, i get the following error:
...
Actually I am looking for a solution to the following problem:
http://forum.springframework.org/showthread.php?t=54679
I am not sure I got it Lucas. Here is my config, i took the delegatingReader example from multilineOrderItemJob
<bean id="staging" parent="simpleStep">
<property name="commitInterval"...
hey Lucas, how to access the same in a CustomReader that extends a DelegatingItemReader.
I tried implementing StepExecutionListener with no luck.
Oh, i almost forgot, the queue is just an ArrayList that holds the records from file and shared across by using ExecutionContext.
//Out of the box, there isn't anyway to process multiple steps simultaneously. You could put all 5 steps in separate jobs and launch them in parallel though.//
lucas,
we modified the...
Looks like i have to include the taglib declarations even in the inner tile... that's a bummer :(
Hi all,
I am trying to use Tiles with Spring.
Here's my tiles-def.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD...
it was classpath error. there were multiple versions of some library files.
HTH somone.
-S
I checked out the source code for JavascriptValidatorTag. The error being thrown is on the highlighted line:
Map vars = field.getVars();
// Loop through the field's...
Hello all,
I am trying to use spring modules' commons validations with Spring. Everything works fine when i do not use "vars" (Variables in form field validations).
I always get the following...