-
Jun 12th, 2010, 05:30 PM
#1
StoredProcedureITemReader
Hi,
I have written my custom itemreader and am using a new instance of storedprocedure item reader to read form a stored procedure and store the resultset values in a list.
public void readPolicies(StoredProcedureItemReader<Policy> p)
{
try{
ExecutionContext context = new ExecutionContext();
p.open(context);
Policy policy = null;
while((policy = p.read()) != null)
{
policies.add(policy);
p.open throws an error, cannot initialise reader. Can anyone tell me whats wrong...
-
Jun 17th, 2010, 07:40 PM
#2
Hello,
Make your reader scope as step and check other configurations for Job execution are your initializing them properly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules