I have the following configuration :
<bean id="dataItemReader" class="org.springframework.batch.item.xml.StaxEventItemReader" scope="step">
<property name="fragmentRootElementName"...
Type: Posts; User: bassegio14; Keyword(s):
I have the following configuration :
<bean id="dataItemReader" class="org.springframework.batch.item.xml.StaxEventItemReader" scope="step">
<property name="fragmentRootElementName"...
Create http://jira.springframework.org/browse/BATCH-1563
I don't think I can use Spring's CachingConnectionFactory for the following reasons :
1/ I'm using JOTM as JTA transaction manager, because in the same transaction I'm inserting stuff in a...
Already found the solution.
Using the container property of jms:inbound-gateway and setting the receiveTimeout for the container.
I have the following Spring Config
<bean id="mainConnectionFactory"
class="com.ibm.mq.jms.MQXAConnectionFactory">
<property name="channel" value="${queue.main.channel}" />
<property...
I'm getting this error when update from spring 2.5.6 to 3.0.1.
After the update I could remove spring-ws-1.5.6-all.jar from my classpath , because it is contained in the new Spring release, but I...
If you want to configure your logging using the parameters set in de MDC this creates problems using Spring Integration. Because if I understand correctly MDC are threadlocal. However one of the...
Hi,
Has it become possible to define your own formatter or something?
Because instead of one single line, I would like to xml to be cut into pieces of 20K. I can do the same thing by defining an...
I'm reading text messages from a jms queue. This sting is actually an xml. Which is unmarshalled using a si-xml:marshalling-transformer.
However when the xml fails validation, the error is directly...
I was only using a single FlatItemWriter like in the example:
<bean id="itemWriter" class="org.springframework.batch.item.file.FlatFileItemWriter">
<property name="resource"...
This is my config:
<bean id="jmsContainer"
class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="connectionFactory" ref="connectionFactory" />...
I'm reading messages from a JMS queue using a jms:inbound-gateway.
These messages have a xml payload, so I use a si-xml:unmarshalling-transformer to transform them to domain objects.
However what...
I have create the following unit test:
import java.util.HashMap;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobParameter;
import...
Dave,
The second of the three configuration files has a step scope on the PropertyPlaceholderTest and it didn't work. Or do you mean something else by "your PropertyPlaceholderTest is not in step...
I was using 2.0.0.
With the latest 2.0.1 release it works correctly.
If I pass the separate jobparameters using the CommandLineRunner is there a way to concat them in a single variable?
For example if both the directory and the file in the name of the file are...
I managed to resolve both the IDE issue and runtime issue by downloading the jars from the last snapshot.
However the original problem has returned. It works when you use a concrete Tasklet, however...
Dave,
I have created a tottaly new workspace in the lastest stable release of STS.
The only jars on the classpath are :
spring (2.5.6.SEC01)...
With the 2.0.1 snapshot I get the following error:
25-mei-2009 14:54:23 org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing...
I have created a very basic example illustrating my problem :
The Java code :
public class PropertyPlaceholderTest {
private String placeHolder;
The method name is correct.
As I stated in my first post, everythings works like it should but if fails to replace #{jobParameters[input.file.name]} with the actual directory.
When I add the step...
The xml from the last post was :
<job id="SampleJob" restartable="false">
<step id="step">
<tasklet ref="SampleTasklet" />
</step>
</job>
<beans:bean id="SampleTasklet"...
Adding this scope attributes to this POJO causes the following error:
2009-05-18 16:18:35,851 [main] DEBUG - Truncating long message before update of StepExecution, original message is:...
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import...
I'm using JPA to access a datasource.
I have read the documtation and the persistence.xml always has to be in the META-INF directory. It would however like to use this code at various places using...