Results 1 to 2 of 2

Thread: StoredProcedureITemReader

  1. #1
    Join Date
    Jun 2010
    Posts
    15

    Default 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...

  2. #2
    Join Date
    Mar 2008
    Location
    India
    Posts
    12

    Default

    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
  •