Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    558

    I agree to externalize as much as possible. If...

    I agree to externalize as much as possible. If you have a good scheduler that handles dependencies and successors, use it. We use JMS in some case to fire events on completion.
  2. Replies
    3
    Views
    558

    I haven't used it, but take a look at JobStep. I...

    I haven't used it, but take a look at JobStep. I typically use a Spring Integration message to kick off the next job.
  3. Replies
    2
    Views
    490

    The delimiter is only used to tokenize the...

    The delimiter is only used to tokenize the contents of the file you are reading. The "names" attribute of DelimitedLineTokenizer is a String[] of column names and you configure this in the...
  4. Have a look at this thread towards the bottom. ...

    Have a look at this thread towards the bottom.

    http://forum.springsource.org/showthread.php?48078-Using-2-different-datasources-with-Spring-Batch
  5. Replies
    4
    Views
    969

    The ItemProcessor is the way to go. You can...

    The ItemProcessor is the way to go. You can think of the ItemProcessor as a transformer. Take an object of one type and transform it into an object of another type. In this case the target object...
  6. Replies
    10
    Views
    790

    Sorry didn't catch that you were using the Spring...

    Sorry didn't catch that you were using the Spring provided CompositeItemProcessor. Normally anytime I am doing composites, I create my own ItemProcessor to do this. I think what you would need to...
  7. Replies
    4
    Views
    517

    I agree. I am in the middle of a project to move...

    I agree. I am in the middle of a project to move off the mainframe and Spring Batch is a key part of that.
  8. Replies
    4
    Views
    517

    I think you are going to need to create a custom...

    I think you are going to need to create a custom LineMapper and log then raw line in the mapLine method. If you don't like the idea of extending an existing line mapper, your custom LineMapper can...
  9. try version 2.0.1 of the integration jars.

    try version 2.0.1 of the integration jars.
  10. Replies
    10
    Views
    790

    Yeah, the delegates will not get registered via...

    Yeah, the delegates will not get registered via the annotation. What I usually end up doing is something like:



    @BeforeStep
    public void beforeStep(StepExecution stepExecution)
    {
    ...
  11. Replies
    10
    Views
    790

    In regards to holder objects, I really think that...

    In regards to holder objects, I really think that is what the ExecutionContext is for. There is a Step ExecutionContext and a Job ExecutionContext. Also remember that data in the ExecutionContext...
  12. Replies
    10
    Views
    790

    Add StepExecution as an attribute of your...

    Add StepExecution as an attribute of your ItemWriter (you can do the same with your ItemReader or ItemProcessor). Then add the following code to your ItemWriter.



    @BeforeStep
    public...
  13. Replies
    10
    Views
    790

    Put the aggregated data in the StepExecution...

    Put the aggregated data in the StepExecution ExecutionContext. The ExecutionContext stores its data in a ConcurrentHashMap.
  14. Tony, what does your custom writer look like? If...

    Tony, what does your custom writer look like? If you are are not batching inserts/updates I would look at doing that first. It can make a huge performance difference. Take a look at...
  15. Replies
    2
    Views
    377

    Hello Christian, In your particular use case,...

    Hello Christian,

    In your particular use case, I think you can get away with a single step using chunk processing:

    1) Use a FlatFileItemReader to read the the file.
    2) In in the init of your...
  16. You need a more current version Spring...

    You need a more current version Spring Integration. Try 2.0.1 or later.
  17. You can do something like the following in your...

    You can do something like the following in your reader, processor, or writer.



    @BeforeStep
    public void beforeStep(StepExecution stepExecution)
    {
    String params = (String)...
  18. Replies
    1
    Views
    561

    Try something like this where you write your own...

    Try something like this where you write your own line mapper. Notice I didn't add the FieldSetMappers. I just made up that the indicator in the header is the first few characters.



    public...
  19. Looks like the error is: Attribute 'cron' is not...

    Looks like the error is: Attribute 'cron' is not allowed to appear in element 'poller'

    What version of Spring Integration are you pulling in? It looks like the cron attribute was added in release...
  20. Replies
    2
    Views
    339

    Have a look at...

    Have a look at http://static.springsource.org/spring-batch/reference/html-single/index.html#multiLineRecords. Basically you end up delegating to a FlatFileItemReader to call read multiple times...
  21. What I am finding is that for most...

    What I am finding is that for most process/workflow types of things I am using a combination of Spring Integration and Spring Batch. I use Spring Integration for the inbound and outbound application...
  22. Depends on what you are writing, but sometimes...

    Depends on what you are writing, but sometimes you can determine the specific item that failed without doing something like using a chunk size of 1. For example, if you are doing Batch...
  23. Replies
    5
    Views
    1,187

    This is another area that I have used Spring...

    This is another area that I have used Spring Integration in combination with Spring Batch. If I need to trigger a another job execution from anywhere in a running job, I just dump a message to a...
  24. Replies
    2
    Views
    858

    OK, I think I am going to make an attempt at...

    OK, I think I am going to make an attempt at writing a Db2PagingQueryProvider that uses doesn't use the SqlWindowingPagingQueryProvider and does something similiar to the MySqlPagingQueryProvider,...
  25. Replies
    2
    Views
    1,078

    We use Spring Integration in combination with...

    We use Spring Integration in combination with Spring Batch which would accomplish what you are looking for. Spring Integration provides many options for allowing external triggering of Batch...
Results 1 to 25 of 65
Page 1 of 3 1 2 3