Announcement Announcement Module
Collapse
No announcement yet.
StoredProcedureITemReader Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Hello,

    Make your reader scope as step and check other configurations for Job execution are your initializing them properly.

    Comment

    Working...
    X