Below is the sample applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"...
Type: Posts; User: kamath_sv; Keyword(s):
Below is the sample applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"...
i tried option3 - bean definition lazy
When i start eclipse in debug mode & check the contents of writer object before i access them, i find the objects fully loaded(looks like properties are...
Thanks dlmiles for so much information.
the one thing which is still not clear to me is
"Is using FactoryBean same as implementing factory Design pattern using factory-method".
Hi all,
I have a factory which can creates instances of some classes. I can create instances using new operator. I can even autowire(which is better approach as container will manage it).
...
I found an example in some blog and implemented the following.
public class WriterFactory implements FactoryBean {
@Autowired
private TextItemWriter textWriter;
@Autowired
private...
I am using JdbcCursorItemReader and FlatFileItemWriter both of which i think are not thread safe. Might this be the cause of my problems ?
<bean id="taskExecutor" class="org.springframework.scheduling.concurrent.ConcurrentTaskExecutor">
<property name="concurrentExecutor" ref="threadPoolExecutor"/>
</bean>
<bean...
I have a spring batch Scheduling project which is running as executable jar. I have a requirement where i need to run few jobs using CommandlineJobRunner(using batch files). I am using the below...
<bean id="taskExecutor" class="org.springframework.scheduling.concurrent.ConcurrentTaskExecutor"/>
I am using ConcurrentTaskExecutor to run the multiple tasks at the same time. I was expecting...
I am not sure about your complete requirement, but what i can get from your statements is you want to carry out some processing after writing some data.
Reader->Processor->Writer->Another Processor...
This is my complete configuration.
<context:component-scan base-package="myPackage" />
<context:annotation-config />
<bean id="dataSource"...
My application is standalone application running as executable jar(not Web application), using spring batch, hibernate, SQLServer2005.
My job writes a file by getting data from database.
I am...
Due to time constraints i have dropped the plan to use AOP instead of traditional way of logging for time being. Will revisit this soon.
My requirement is : in many places i will be executing the...
note: My application is not a web application so doesn't contain any web container.I should run the application as executable jar
Following the example in...
http://static.springsource.org/spring/docs/3.0.5.RELEASE/reference/aop.html#aop-introduction-defn
As advised in previous reply i tried aspectj(full-blown AOP solution) by referring the springs...
In many blogs we can find examples of logging using @Aspectj(AOP).
Spring document states
1. Any given pointcut will be matched against public methods only.
2. We recommend the use of the Spring...
i want clarification on few more things.
1. Will commandLineJobLauncher support taskexecutors other than syncTaskExecuotor(Default) like AsyncTaskExecutor, ConcurrentTaskExecutor coz those two are...
I am using CommandLineJobRunner to run the jobs.
<bean id="jobRegistry" class="org.springframework.batch.core.configuration.support.MapJobRegistry" />
<bean id="jobRepository"...
<job id="job">
<step id="stepA">
<next on="FAILED" to="failureStep" />
<next on="*" to="stepB" />
</step>
<step id="stepB">
<next on="FAILED" to="failureStep" />
<next on="*"...
thanks for the solution...
Thanks i tried Method invoking tasklet & passed values through latebinding ( using #{jobExecutionContext['currentRunningJob']} )
it worked as a charm... :D
...//batch:job
...//batch:step
...//batch:tasklet
<batch:chunk reader="itemReader" writer="writerFactory" commit-interval="10" />
...//batch:tasklet
...//batch:step
...//batch:job
<bean...
<batch:job id="extract">
<!-- Step One is to Create the File & store it locally -->
<batch:step id="generateFile" >
<batch:tasklet>
<batch:chunk reader="reader" writer="writer"...
Hi,
Atlast, After so many days i am able to run the Sample greenpages application in STS(Springsource Tool Suite):D
I am using
STS2.5.1
springsource-dm-server-1.0.2.SR02
...
when i start the dm-server-1.0.2 i am getting the following error
Mandatory reference '&controlExporter' in bundle 'com.springsource.server.deployer.core' version '1.0.2.SR02' is waiting for...