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...
Type: Posts; User: aldosilva; Keyword(s):
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...
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.
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...
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...
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...
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.
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...
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.
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:...
The class ItemReader:
public class CategoriaTarifariaItemReader implements ItemReader<CategoriaTarifaria>
public CategoriaTarifaria read() throws Exception,
UnexpectedInputException,...
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 -...
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...
Yeap, you are right, my ItemWrite is:
public class CategoriaTarifariaItemWrite implements ItemWriter<List<CategoriaTarifaria>>{
public void write(List<? extends List<CategoriaTarifaria>> items)...
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...