I resolved this somewhat naively, by creating a ApplicationListener<ContextRefreshedEvent> implementation that only runs once (when the context is started). It loads all the "running" jobs (which in...
Type: Posts; User: deebo; Keyword(s):
I resolved this somewhat naively, by creating a ApplicationListener<ContextRefreshedEvent> implementation that only runs once (when the context is started). It loads all the "running" jobs (which in...
We have a long running spring context that is a part of our batch + integration system, if the container that runs batch features shuts down abnormally while a job is running ...
Shameless bump for this issue since Id like to avoid using @Transactional and cglib generated proxies instead of jdk interface proxies in my service activators
my scenario is similiar, a poller...
I have the following error handling scenarios in my context:
<i:channel id="errorChannel" />
<i:filter input-channel="errorChannel" ref="error-message-throttle"...
duh, I don't know how I managed to not look at the filter, its perfect for this...
I have the following scenario:
I get thousands of messages into a publish-subscribe channel, from which a router reroutes these based on payload type.
Now alot of these messages may fail in...
I don't if I can use @Transactional.
Wouldn't using HibernateTransactionManager as the only transaction manager require that i only have one DataSource though?
Currently I use two different...
Ok so after a bit of reading, the way spring should work is that I only have one transaction manager per context (or atleast my transactions from different managers shouldn't overlap?), and since we...
I use the AutomaticJobRegistrar to load my jobs, pretty much the same way it's used in Spring Batch Admin
Spring 3.0.3-RELEASE
Batch 2.1.2-RELEASE
root-context.xml (web app loads via...
http://www.theserverside.com/news/thread.tss?thread_id=49083
Java has a service provider interface to do just this
I have a VelocityEngineFactoryBean I use when sending emails in a web app thats a multimodule maven war project like this:
mywar.war
- WEB-INF/lib/
- core-0.1.jar
- components-0.1.jar
...
In Spring Batch you have the AutomaticJobRegistrar with which you can define one job per xml file and not worry about bean id conflicts etc.
But how to achieve this with Spring Integration?
I...
Check the version of your ojdbc14.jar, there are several versions for the oracle9 family, and they support different features.
I had similiar problems with oracle jdbc drivers recently, upgrading...
I have a "pipe" like this
inbound adapter -> direct channel -> splitter -> direct channel -> chain (header enricher - service activator)
The inbound adapter loads (via poller) 0-n objects...
Ok, I changed my approach a bit.
Now spring manages the SessionFactory, and I basically need to do the following:
@ServiceActivator
public void doSomething(Message<?> msg) {
...
Basically I'm just loading hibernate POJOS, evicting them from the session and sending them as payload in Messages.
Currently the system looks like this:
Inbound-adapter -> List<Pojo> ->...
My problem currently is that i need to start transactions for each of the method calls to a service activator, and a channel adapter. I have to use an existing hibernate configuration + DAO's, and...
Well as this will be an bi-hourly batch job over a vpn, I would prefer if it would retry a couple times in 5minute intervals so we can avoid getting notified about errors that might have been...
When a StoredProcedureItemReader fails due to a non existing connection, connection time out or similiar, the basic
<b:chunk reader="storedProcedureItemReader" writer="itemWriter"...
You should make a jira issue out of this, the PreparedStatementSetter gets a PreparedStatement parameter which you can cast to a CallableStatement and set the OUT parameters yourself, but...
My problem was using the wrong version of the Oracle JDBC driver
version 9.0.2.0 did not support IN parameter Cursors at all
I upgraded to 9.2.8.0 and everything works fine.
I've no idea how to get this to work, have spent hours looking around to no avail.
I'm trying to call a Oracle stored procedure with an optional IN cursor parameter, with little to no success...
...
OK since noone answered me, I went throught the listener interfaces and found that this job is better done via a JobListener anyhow
public void afterJob(JobExecution exec) {
if...
edit: hmpf can't edit the nonsensical thread title :)
I am using a StoredProcedureItemReader to read data from an Oracle stored procedure.
The problem is the connection will be over a vpn, and...
Setting the encapsulated Integer to:
Integer page = new Integer(0);
resolved the issue, weird it wasn't mentioned in 'Spring in action'.