Skip to content

Add support <transactional/> sub-element for <service-activator>, <transformer>, <outbound-channel-adapter> etc. [INT-2481] #6433

Closed

Description

@spring-operator

Artem Bilan opened INT-2481 and commented

There are many scenarios when it will be necessary to enclose <service-activator> invocaction into transaction.
Now it can be posible

  1. With transactional poller, but only when input-channel is queue
  2. Via @Transactional, but only when our <service-activator> uses POJO method.
  3. Via ProxyFactoryBean around MethodInvokingMessageProcessor or ExpressionEvaluatingMessageProcessor

However it may be more interest to have such config:

<channel id="mergeChannel"/>

<service-activator input-channel="mergeChannel" ref="entityManager" method="merge">
<transactional propagation="REQUIRES_NEW"/>
</service-activator>

When my entityManager bean is real instance of JPA EntityManager.


Issue Links:

Activity

  1. spring-operator commented on Aug 27, 2012

    @spring-operator
    ContributorAuthor

    Artem Bilan commented

    Closed as 'Won't Fix', because it is superssed by linked issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: corestatus: declinedtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions