SalesforceFactory factory = new BaseSalesforceFactory(clientid, clientSecret);
Salesforce template = factory.create(username, password, secretToken);
I saw this in one of your examples. But Once...
Type: Posts; User: Sanjeevkumar; Keyword(s):
SalesforceFactory factory = new BaseSalesforceFactory(clientid, clientSecret);
Salesforce template = factory.create(username, password, secretToken);
I saw this in one of your examples. But Once...
Thanks Sidhartha Your solution works
Currently i am skipping records for any exception that is thrown. However I was trying to see what happens when the database connection or connectivity is lost during the write process.
What i...
I agree with you. But each job instance might have multiple job executions. say a job fails today and restarted the next day, the new job execution will have that date as the start date. However we...
I feel it would be good to have a creation date in BATCH_JOB_INSTANCE table. We are actually trying to figure out the schedule date based on the job instance creation date to generate reports. One...
Where to download Spring Module Version 0.92 or 0.93? Could somebody pass me the link or dependencies.
Thanks
nopes I cannot do that. I am calling some external apis to insert into the database. So it is quiet possible that these apis might throw exceptions due to various reasons like data integrity etc.
...
Yes the error is happening in the writer.
I am encountering a strange problem during the job restart. This is happening in one of the strange scenarios and i am not able to figure out the root cause of the problem.
I am reading from a...
Hi Dave,
I have an insert and a delete call insider write method
public void write()
throws Exception {
a.insert();
b.delete();
}
However problem in the delete method of...
In my current implementation my item writer nests transactions. So problem in the call of the second method does not cause the rollback of the first method transaction.
However exception thrown by...
If i create two steps, step2 will execute only after step1. Does this mean
that i will have to read the file all over again or the entire data is cached in memory during the execution of step2.
...
Hi,
I have a requirement where i have to read from a file and insert them to a table after processing the read records. Also at the same time it has to delete from another table.
The deletion...
Hi,
I have developed some components using Spring Framework. These are reuasbale and hence anybody should be able to plugin and use them directly.Currently this is available as jar file and i do...
Hi,
I am currently doing some validations in the ItemProcessor and i try to skip the record when the validation fails. At the same time i also have configured a SkipListener which needs to log...
Hi,
For Every Exception that happens during the write() process i have written a listener that implements ItemWriteListener. In the onWriteError() i capture the record information with other...
Hi,
I have a requirement of writing to three different tables in the write process. Let us presume for a sec that these are three different web service calls.
Transactions is not very important...
Hi,
We have a requirement of reading the data from a Stored Procedure rather than plain SQL. Since there is no readily available Reader to read the data from Stored Procedure, I have a thought of...
I have one interface and two implementations of the interface. Example as shown below.
public interface A{
public void foo();
}
public class B implements A{
public void foo();
}
What i actually meant was i got this problem when i ran the sample using STS or SPring Source tool Suite which is of course built over eclipse i suppose.
Thanks a lot, strict works great.
I do have a file which have many records or columns in a single row. This file is being used across multiple systems. Hence not all fields are required for my requirement. Hence if i set only a...
Thanks a lot Robert. When i launch this from eclipse, it worked fine. It only seems to be the problem when i happen to run it with Spring IDE.
When i try to run the Spring Batch Sample using CommandLineJobRunner i am getting the below exception. Is it a classpath issue?
2:59:57,490 INFO main XmlBeanDefinitionReader:323 - Loading XML...
Is there a way in Spring Batch in which i can get the list of all skipped records once the step has executed.
Say i have five records and two were skipped because of some formatting issues.
It...