max3d
max3d

Reputation: 1507

Outbound Channel Adapter java configuration

Up to now, as far as I see, there is no annotation support for Outbound Channel Adapter.

<int:outbound-channel-adapter channel="channel" method="handle">
<beans:bean class="org.Foo"/>

One of the reasons for its absence could be functionality similar to the one provided by Service Activator.

It would be interesting to know, if there are plans to synchronize XML and Java configurations in the scope of Outbound Channel Adapter, as an explicit termination point of a processing pipeline?

Upvotes: 3

Views: 1381

Answers (1)

Gary Russell
Gary Russell

Reputation: 174494

Yes, you can simply use @ServiceActivator on a method that returns void; we didn't feel a separate annotation was necessary for this case.

Upvotes: 4

Related Questions