Search:

Type: Posts; User: symanco; Keyword(s):

Search: Search took 0.04 seconds.

  1. Replies
    5
    Views
    649

    I don't know why but I do know from experience...

    I don't know why but I do know from experience that spring batch's transaction manager must be named "transactionManager" as I stated above. If you have another transaction manager defined elsewhere...
  2. It probably is not a spring batch issue at all....

    It probably is not a spring batch issue at all. It sounds more like you have non-deamon Threads running even after your main thread has finished executing.
  3. Replies
    5
    Views
    649

    Try changing the name of the bean from...

    Try changing the name of the bean from "jobTransactionManager" to "transactionManager"



    <bean id="jobRepository"...
  4. StaxEventItemWriter can only write to a file....

    StaxEventItemWriter can only write to a file. However, you can easily solve your problem by taking the following steps -

    First step: Use StaxEventItemWriter to write to a file.
    Second step: Use...
  5. Try using FieldSet.readString() instead of...

    Try using FieldSet.readString() instead of FieldSet.readDouble().
    Once you have read the string, you can construct a Double by passing the string as constructor argument.
  6. The most likely cause is that you annotated your...

    The most likely cause is that you annotated your Lot class with @XmlRootElement(name="lot") and at the same time, as I can see, your rootTagName is set to "lot".
    That's why you see lot twice in the...
  7. It sounds like you have some unwanted characters...

    It sounds like you have some unwanted characters (most probably the BOM) in your xml file. To verify this, I suggest you manually create a simple XML file that resembles your actual input. Then use...
  8. Replies
    2
    Views
    702

    This should be pretty easy to do with JAXB...

    This should be pretty easy to do with JAXB marshaller. I would suggest you create a composite reader which will have a header reader (which should be read only once) and an item reader. For header...
  9. It is very unlikely to go out of memory with...

    It is very unlikely to go out of memory with StaxEventItemReader and commit-interval of just 1. I suspect the problem lies elsewhere but it's difficult to suggest anything without looking at the code...
  10. Replies
    4
    Views
    797

    Is the put(String, Object) method in...

    Is the put(String, Object) method in ExecutionContext not good enough for your use case?
    The only requirement to use this method is that the object must be serializable.
  11. Thanks for your reply. That's exactly what I have...

    Thanks for your reply. That's exactly what I have done.
  12. Replies
    1
    Views
    1,541

    As you can see, the exception clearly states that...

    As you can see, the exception clearly states that the delegate writer is unable to open the file before writing in to it.
    According to spring batch 2.1.8 doc, you can easily solve this problem by...
  13. You can run spring batch without using database...

    You can run spring batch without using database backed job repository. Take a look at the MapJobRepositoryFactoryBean class.
    Javadoc is here...
  14. Question about fragmentRootElementName for StaxEventItemReader

    I have an XML file which contains the following



    <FragData asOfDate="01/01/2010">
    <FragSet>
    <FragData> <!-- This is the fragment root, I want to read -->
    ...
  15. has anyone here had any luck with skip-limit on...

    has anyone here had any luck with skip-limit on XML input or am I just asking a stupid question?
  16. Question regarding the use of Skip limit and StaxEventItemReader

    Is it possible to have skip-limit when the reader is StaxEventItemReader? I have tried this combination without any luck. Basically, as soon as the reader encounters a validation error in my XML...
Results 1 to 16 of 16