Ah. Just realised that I'm using the JobRepositoryFactoryBean, which already handles the transactional stuff. Feel free to ignore me ;-)
Type: Posts; User: nullPainter; Keyword(s):
Ah. Just realised that I'm using the JobRepositoryFactoryBean, which already handles the transactional stuff. Feel free to ignore me ;-)
PS. Despite the manual saying that it's essential to configure the transactional behaviour if not using the Spring Batch namespace (which I'm not doubting), the Spring Batch examples don't appear to...
Hi,
I am using Spring Batch with Hibernate/JPA and SQL Server 2005 and all is working happily. In the course of troubleshooting a deadlock issue in my code, I discovered that I wasn't using the...
Absolutely; I will do this in the morning.
M
An an aside - the MinMaxPartitioner is found in the test code for Spring Batch. It is a naive implementation (it doesn't handle situations where grid size is larger than total records, for instance,...
Have worked it out; as suspected, my haziness regarding partitioning and naive implementation of SimpleStepExecutionSplitter (only!) was to blame. For others who are confused, take a look at the...
Hi,
I have a single Job containing a single Step and multiple ItemProcessors. For performance reasons (the job is processing ~50Tb of data), I am using a partition handler. Processing is handled...
Thanks Stéphane; much appreciated. I thought that was the case but just wanted to clarify as both Spring Batch and the whole notion of middleware is new territory for me.
M
Hi,
I am writing a one-shot migration tool to transfer critical data from a legacy system. The tool will be processing around 2 million files of around 50Tb total.
Because the anticipated...
This problem has now been resolved. For anyone experiencing a similar issue, it appears that because the method was already in a transaction the timeout attribute was being disregarded.
I changed...
Hi,
I'm having an issue overriding the default transaction timeout specified in jboss-service.xml for the JBoss transaction manager.
I have the following code:
<bean...
Hi,
I am very occasionally getting the following exception thrown when redirecting to a tiles-based JSP page from my Spring form controller:
09:41:39,806 ERROR [Engine]...
Do you have good reasons for wanting to avoid interfaces and therefore cglib proxying? Using interfaces does tend to make things a lot more flexible in the long run if you're developing a...
You can't; the bean is no longer of type StudentDAO as it's been replaced by a proxy class (hence the ClassCastException).
What I would suggest is that you provide an interface for each concrete...
Hi,
I've just experienced and resolved the exact same issue of the type converter unable to convert java.util.List to java.util.ArrayList. My code also worked in Spring 1.2.7 and broke in Spring...
Hi Steve O,
I love your optimistic solution to just 'use a good browser'; unfortunately some things are regrettably out of my control!
My problem is different to yours; in mine, the data is...
I've just had a similar issue in my application where two views of the form controller are possible.
The solution is similar to msqr's, but to avoid having to re-code my JSPs to account for the...
Hi,
I'm currently struggling with working around the cursed Internet Explorer caching bugs with sending the browser file attachments from my Spring-based application.
Searching forums result in...
Thanks Andreas, that worked. Much appreciated.
Regards,
Matt
Hi,
How does one make messages.properties accesible from JUnit tests?
I have a /WEB-INF/classes/messages.properties file which is loaded from ResourceBundleMessageSource.
In addition to...