Search:

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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. I resolved this somewhat naively, by creating a...

    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...
  2. Recovering from abnormal shutdown (with a persistent database)

    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 ...
  3. Shameless bump for this issue since Id like to...

    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...
  4. Message handling problem in 1.0.4, works in 2.0.0 M5

    I have the following error handling scenarios in my context:



    <i:channel id="errorChannel" />
    <i:filter input-channel="errorChannel" ref="error-message-throttle"...
  5. duh, I don't know how I managed to not look at...

    duh, I don't know how I managed to not look at the filter, its perfect for this...
  6. If queue channel is/has been full recently, reroute messages?

    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...
  7. I don't if I can use @Transactional. Wouldn't...

    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...
  8. Ok so after a bit of reading, the way spring...

    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...
  9. AutomaticJobRegistrar problem with @Transactional

    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...
  10. http://www.theserverside.com/news/thread.tss?threa...

    http://www.theserverside.com/news/thread.tss?thread_id=49083

    Java has a service provider interface to do just this
  11. classpath*: resource path not working with a VelocityEngineFactoryBean

    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
    ...
  12. Load several integration contexts as child contexts?

    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...
  13. Replies
    1
    Views
    1,132

    Check the version of your ojdbc14.jar, there are...

    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...
  14. Direct channels loose remaining messages if ones handling throws exception?

    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...
  15. Ok, I changed my approach a bit. Now spring...

    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) {
    ...
  16. Basically I'm just loading hibernate POJOS,...

    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> ->...
  17. Service activators and channel adapters in their own threads?

    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...
  18. Well as this will be an bi-hourly batch job over...

    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...
  19. How to retry failing StoredProcedureItemReader connections?

    When a StoredProcedureItemReader fails due to a non existing connection, connection time out or similiar, the basic



    <b:chunk reader="storedProcedureItemReader" writer="itemWriter"...
  20. You should make a jira issue out of this, the...

    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...
  21. My problem was using the wrong version of the...

    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.
  22. StoredProcedureItemReader and Oracle SYS_REFCURSOR as an IN parameter?

    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...
    ...
  23. OK since noone answered me, I went throught the...

    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...
  24. How to catch failing connections in a StoredProcedureItemReader?

    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...
  25. Replies
    1
    Views
    892

    Setting the encapsulated Integer to: Integer...

    Setting the encapsulated Integer to:


    Integer page = new Integer(0);

    resolved the issue, weird it wasn't mentioned in 'Spring in action'.
Results 1 to 25 of 26
Page 1 of 2 1 2