Search:

Type: Posts; User: harit.dhiman; Keyword(s):

Search: Search took 0.02 seconds.

  1. Reading seriialized java objects using FlatFileItemReader

    Is it possible to read java objects directly using FlatFileItemReader. I have a flat file which contains serialized java objects. One on each row. There are around 10 objects of this type in given...
  2. Using own FlatFileItemWriter, footer not getting printed

    We have written our own flat file item writers which we are calling from writer itself. We are using Spring batch 2.0. Pplease find attached code snippet for your reference.

    We are able to write...
  3. Reading multiple sections of same format

    How we can read multiple sections of same format( Please find attachment)
    Example:
    In the attachment,
    Row 1 Starts with 1
    Row 2 to 5 starts with 2
    Row 6 starts with 9.

    There can exist...
  4. Replies
    16
    Views
    1,714

    There is a bit progress. Now i am not getting...

    There is a bit progress. Now i am not getting mesage 'Stream already closed' because now i am creating reference of FileItemWriter in the write() method itself, opening it, writing data to it and...
  5. Replies
    16
    Views
    1,714

    My main intention to open and close the FFIW is...

    My main intention to open and close the FFIW is to make sure each and every time a new file is getting generated. is there any other way to achieve the same.
  6. Replies
    16
    Views
    1,714

    Please find attached snippet of modified writer....

    Please find attached snippet of modified writer. I have configured batch in order to have 1 writer and print only AttribA list. But my requirement is each List of AttribA should get printed in...
  7. Replies
    16
    Views
    1,714

    I modified the code. Used one writer...but still...

    I modified the code. Used one writer...but still i am getting same error...Stream already closed. Is it a bug in Spring framework that we cannot have multiple out put files....Please suggest?
  8. Replies
    16
    Views
    1,714

    I tried above changes but still i am getting the...

    I tried above changes but still i am getting the error message. Please find attached
    1) error.txt for error message.
    2) writer.txt - Containing writer snippet.
    3) xml snippet.txt - Step...
  9. Replies
    16
    Views
    1,714

    Thanks...I will check this out and update you...

    Thanks...I will check this out and update you respectively.
  10. Replies
    16
    Views
    1,714

    I dont have code right now. I can try to explain...

    I dont have code right now. I can try to explain what we are doing -
    1) DTO has List<attribsA>, attribB. Now in order to print List<AttribsA> we have a FlatFileItemWriter. And in order to print...
  11. Replies
    16
    Views
    1,714

    The output file needs to be created dynamically....

    The output file needs to be created dynamically. Its not that i am having 2 FlatFileItemWriter and data should be printed to these file. File should be created dynamically. I am using my own...
  12. Replies
    16
    Views
    1,714

    Writing data to Multiple file

    I have one scenario-
    1) Reader read
    a) Company data from database.
    b) Add this data to CompanyDTO.
    c) Add this DTO to ListItemReader.

    This CompanyDTO is then sent to writer one by...
  13. Replies
    7
    Views
    2,627

    Multiple writers, writing to same file.

    Hi,

    We have one scenario to print the file with header, details and footer.
    Header will consist of details something like identifier,date.
    Identifier length is 9 chars.
    Date Length is 8 chars....
  14. Issue:Appending string with leading Zero

    We are using FlatFileItemWriter to write output to a file. Following is the code snippet.

    Please find attached code snippet.


    Presently we are tring to print two values
    1) identifier
    2) date...
  15. Thanks for the reply. Issue got solved with this...

    Thanks for the reply. Issue got solved with this late binding feature.
  16. Creating file name dynamically while writing.

    We have a scenario where we have to write the data to a File. Presently we are using FlatFileItemWriter in order to write data to flat file using xml tag. PFA snippet from our xml file.


    Where ...
  17. Replies
    2
    Views
    1,002

    Please find attached sample code which we are...

    Please find attached sample code which we are using in reader. With commit interval as 1, corresponding to each Parent record if there are 3 records returned by child table and if we add these items...
  18. Replies
    4
    Views
    1,183

    Thanks, the solution which was provided it...

    Thanks, the solution which was provided it worked.
    I implemented ItemStream in writer and added jasper compile logic in open method and added writing to report logic in close() method. Modified...
  19. Replies
    4
    Views
    1,183

    We are using jasper report in order to print pdf...

    We are using jasper report in order to print pdf file.

    My Reader code is something like this -

    private ListItemReader<XXXSummary> delegate;
    private List<XXXSummary> notWrittenXXX;
    public...
  20. Replies
    2
    Views
    1,002

    Reading data from Parent/Child table.

    I have one Scenario,

    ->Read Data from Parent table.
    -> Corresponding to data read from Parent Table selected ID's(List of Id's), read corresponding entry from child table.
    -> Child Table will...
  21. Replies
    4
    Views
    1,183

    Reading/Writing Approach.

    We have one scenario mentioned below -

    Reader will read data from Database using dataService. This dataService will return ArrayList of objects.



    What is the good approach to be followed in...
Results 1 to 21 of 21