spring-integration-splunk icon indicating copy to clipboard operation
spring-integration-splunk copied to clipboard

Is there a way to configure adapters via Java code

Open aprajshekhar opened this issue 7 years ago • 5 comments

Hi In the sample, the configuration is done via XML. Is there a way to do the same via Java code? It would be a great help if you could direct me to the correct docs, please.

aprajshekhar avatar Jan 29 '18 10:01 aprajshekhar

The best documentation about Java Configuration in Spring Integration is here: https://docs.spring.io/spring-integration/docs/5.0.0.RELEASE/reference/html/overview.html#programming-tips.

You should just follow those recommendations and configure the @InboundChannelAdapter for the SplunkPollingChannelAdapter and @ServiceActivator for the SplunkOutboundChannelAdapter, respectively.

The SplunkExecutor bean has to be injected in both cases.

artembilan avatar Jan 29 '18 17:01 artembilan

Does it mean that this repo is still good for spring-integration 5.0.0?

chenrui333 avatar Feb 21 '18 17:02 chenrui333

I think so. Do you see any problems?

This repository has been without love for a while though: no requests - no activity.

artembilan avatar Feb 21 '18 17:02 artembilan

I did try out yet, but just happened to find it when doing the search.

I agree, there seems not that much love for it, unfortunately.

chenrui333 avatar Feb 21 '18 17:02 chenrui333

Well, there is just no any feedback from the community and any requests or bug reports. This your one is the first for last two years: https://github.com/spring-projects/spring-integration-splunk/pull/5. Therefore we don't invest effort and evangelism to the feature out of use from the Community.

Although we are always open to chat like this and won't mind to fix the issue or accept the contribution!

artembilan avatar Feb 21 '18 17:02 artembilan