Search:

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

Search: Search took 0.01 seconds.

  1. Pass parameter with JdbcCursorItemReader

    Hi everybody.

    I'm with a problem when I pass parameter to class that extends JdbcCursorItemReader. I did the same class implementing the ItemReader interface and it worked, the problem is I need...
  2. Replies
    10
    Views
    1,749

    Sorry, I'm newbie in SpringBatch and I hadn't...

    Sorry, I'm newbie in SpringBatch and I hadn't watched in the documentation, but thanks for your help, I couldn't finish my job without your help.
  3. Replies
    10
    Views
    1,749

    I think I'm on the right way, my test class now...

    I think I'm on the right way, my test class now is:

    // Get the Bean with job
    Job appJob = (Job) appContext.getBean("categoriaTarifariaJob");
    // Get the Bean that execute the job...
  4. Replies
    10
    Views
    1,749

    Thanks for your reply, but I think you don't...

    Thanks for your reply, but I think you don't understand my question because I 'm not using flatfile, I tried to find examples of use the jobParameters for methods but I found nothing. I need to pass...
  5. Replies
    10
    Views
    1,749

    I meant when I call the method read() of the...

    I meant when I call the method read() of the ItemRead class.

    My main class:

    public static void main(String[] args) {
    // Leitura do arquivo de configuração do Spring...
  6. Replies
    10
    Views
    1,749

    Yeap, but I need to pass the parameters in...

    Yeap, but I need to pass the parameters in runtime, I can't configure this in .xml, I saw many examples that you configure the parameters in .xml but I need to pass the parameters when I call it.
  7. Replies
    10
    Views
    1,749

    ItemRead pass parameter

    Hi everybody.
    Anybody here know how can I pass the parameters to ItemRead?
    For example, I have a class that process the parameters and return a object that I use on the read() method to search on...
  8. Replies
    3
    Views
    1,830

    Yeap, the question is about Atomikos. I'm running...

    Yeap, the question is about Atomikos. I'm running the application with the warning, I looked at the site of Atomikos and saw that you need to configure a jta.properties but this is not mandatory.
  9. Replies
    0
    Views
    609

    JdbcTemplate close ResultSet

    Hi everybody,

    I have a problem when I execute a query that return many items the ResultSet close before return all items.

    On the console:
    org.springframework.jdbc.UncategorizedSQLException:...
  10. Replies
    5
    Views
    856

    The class ItemReader: public class...

    The class ItemReader:

    public class CategoriaTarifariaItemReader implements ItemReader<CategoriaTarifaria>
    public CategoriaTarifaria read() throws Exception,
    UnexpectedInputException,...
  11. Replies
    3
    Views
    1,830

    Configuration

    When I start to do the test of my application appears on the console some warnings:
    No properties path set - looking for transactions.properties in classpath...
    transactions.properties not found -...
  12. Replies
    5
    Views
    856

    Ok. Thank's. I solved my problem reading item by...

    Ok. Thank's. I solved my problem reading item by item instand of reading a list, because when I read a list the container put the list inside another list and when I wrote I couldn't converter the...
  13. Replies
    5
    Views
    856

    Yeap, you are right, my ItemWrite is: public...

    Yeap, you are right, my ItemWrite is:

    public class CategoriaTarifariaItemWrite implements ItemWriter<List<CategoriaTarifaria>>{

    public void write(List<? extends List<CategoriaTarifaria>> items)...
  14. Replies
    5
    Views
    856

    ClassCastException

    Hi guys, I'm a new developer in spring batch and when I execute the test in my application I get an exception. java.lang.ClassCastException: java.util.ArrayList the error appears when I terminate the...
Results 1 to 14 of 14