Search:

Type: Posts; User: bassegio14; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Reading Multiple Files / Writing Single File

    I have the following configuration :



    <bean id="dataItemReader" class="org.springframework.batch.item.xml.StaxEventItemReader" scope="step">
    <property name="fragmentRootElementName"...
  2. Create...

    Create http://jira.springframework.org/browse/BATCH-1563
  3. Replies
    3
    Views
    1,582

    I don't think I can use Spring's...

    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...
  4. Replies
    3
    Views
    1,582

    Already found the solution. Using the container...

    Already found the solution.
    Using the container property of jms:inbound-gateway and setting the receiveTimeout for the container.
  5. Replies
    3
    Views
    1,582

    Wait interval for Message Driven JMS

    I have the following Spring Config


    <bean id="mainConnectionFactory"
    class="com.ibm.mq.jms.MQXAConnectionFactory">
    <property name="channel" value="${queue.main.channel}" />
    <property...
  6. XStreamMarshaller does not support unmarshalling using SAX XMLReaders

    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...
  7. MDC and Spring Integration mutually exclusive?

    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...
  8. Replies
    2
    Views
    2,096

    Hi, Has it become possible to define your own...

    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...
  9. I'm reading text messages from a jms queue. This...

    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...
  10. Replies
    1
    Views
    1,189

    Problem using CompositeItemWriter

    I was only using a single FlatItemWriter like in the example:



    <bean id="itemWriter" class="org.springframework.batch.item.file.FlatFileItemWriter">
    <property name="resource"...
  11. Replies
    2
    Views
    1,252

    This is my config:

    This is my config:



    <bean id="jmsContainer"
    class="org.springframework.jms.listener.DefaultMessageListenerContainer">
    <property name="connectionFactory" ref="connectionFactory" />...
  12. Replies
    2
    Views
    1,252

    Returning value instead of JaxbElement

    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...
  13. I have create the following unit test: ...

    I have create the following unit test:


    import java.util.HashMap;

    import org.springframework.batch.core.Job;
    import org.springframework.batch.core.JobParameter;
    import...
  14. Dave, The second of the three configuration...

    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...
  15. I was using 2.0.0. With the latest 2.0.1 release...

    I was using 2.0.0.
    With the latest 2.0.1 release it works correctly.
  16. Concat of two Job Parameters with late binding

    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...
  17. I managed to resolve both the IDE issue and...

    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...
  18. Dave, I have created a tottaly new workspace...

    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)...
  19. With the 2.0.1 snapshot I get the following...

    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...
  20. I have created a very basic example illustrating...

    I have created a very basic example illustrating my problem :

    The Java code :




    public class PropertyPlaceholderTest {

    private String placeHolder;
  21. The method name is correct. As I stated in my...

    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...
  22. The xml from the last post was :

    The xml from the last post was :


    <job id="SampleJob" restartable="false">
    <step id="step">
    <tasklet ref="SampleTasklet" />
    </step>
    </job>

    <beans:bean id="SampleTasklet"...
  23. Adding this scope attributes to this POJO causes...

    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:...
  24. Problem using Late binding of Step Attributes

    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...
  25. Replies
    4
    Views
    3,723

    persistence.xml + Placeholders

    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...
Results 1 to 25 of 52
Page 1 of 3 1 2 3