Used service activator with commons file utils ..., if anyone is interested
Type: Posts; User: sambaran; Keyword(s):
Used service activator with commons file utils ..., if anyone is interested
I looked into the sample but still did not find my answer. I know about the file name generator. I am using 'filename-generator', but the problem is not with the file name it is the directory name. I...
Hi Oleg I will take a look.
I will try to re-phase my question. What I want is, to get the directory values using Spel and get the header value (say FILE_DIR) from the message instead of a...
I want the directory info to pass it to the file outbound gately for writing. Is something liek this possible ? I do not see the file getting written
<
file:outbound-channel-adapter...
I had the same issue and had to spent 3 whole days before I came across the post. I did see the same behavior and i am using Spring 3.1. If you have greedy context scan if results in all non...
I do not think there is any magic formula.
The general advice is to took at your queries first and see if that can be tweaked.
If thats fine then use task executors for stateless processing.
Try...
What is ur commit interval ??
What kind of information do you want to share. The easiest way to save stuff which can be used across all steps will be to save it in the job execution context.
ItemWriteListener
Can you try this and let me know :
<bean id="jobRepository" class="org.springframework.batch.core.repository.support.JobRepositoryFactoryBean" >
<property name="databaseType" value="oracle"...
Use flows
http://static.springsource.org/spring-batch/reference/html/configureStep.html#split-flows
Now I am lil confused. Why are you using a FlatFileReader to parse XML ?
Look at
http://static.springsource.org/spring-batch/reference/html-single/index.html#itemReader
6.7. XML Item Readers and...
That is very interesting. Are you overriding any of the EXIT_STATUS'es using any listeners? May be the spring batch thinks that are are actually processing your business logic but in reality your are...
When you say it is not COMPLETED...how do you know it is not completed..did you look at the Spring Batch tables ? What is the exit code ? Do you see any exceptions ?
Any pointers to specific implementation will be hard to suggest since it will depend on your use case.
But in general if it is a stateless implementation you can use some of the multi threading...
I think it is a good approach. You have a XML that contains some meta data fro the job. But where are the job parameters you are going to use to run the job. I see that you have some user name...
See Spring Batch is a batch framework, don't confuse it with scheduling. Yes scheduling is indeed an intrinsic part of any batch framework but they are not tightly coupled.
The default...
This is a common question that has been asked in the forum...look around you will get a lot of information.
Yes you can run multiple jobs at the same time using task executors. Task executor again...
1. I have not used it personally.
2. You can code your own Readers and writers ..you know that right ?
What??????????????????????????????
OK. How about this.
Keep the quatz trigger mechanism the way it is.
Add a small web service snippet(CALLER SIDE) which will just contain a command START_JOB or something like that with job...
If I understand correctly..doesn't that mean you are loading two application contexts ? One for the admin WAR and another where you have your quatz code deployed ?
It sure looks like a version problem. I use this , and it works perfectly fine
<properties>
<java-version>1.6</java-version>...
If management of the scheduler is your issue why don't you use a managed thread from your application server ? Like the TimerManger in WAS .