Spring MVC 3.2.8: FtpInboundFileSynchronizer

Hey just try this configuration setup for FTP connection. Hope it will solve your problem. import java.util.List; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.integration.annotation.MessagingGateway; import org.springframework.integration.annotation.ServiceActivator; import org.springframework.integration.channel.DirectChannel; import org.springframework.integration.channel.interceptor.WireTap; import org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway.Option; import org.springframework.integration.ftp.gateway.FtpOutboundGateway; import org.springframework.integration.ftp.session.DefaultFtpSessionFactory; import org.springframework.integration.handler.LoggingHandler; import org.springframework.integration.handler.LoggingHandler.Level; import org.springframework.messaging.MessageChannel; @Configuration public class FtpConfiguration { @ServiceActivator(inputChannel = “ftpLS”) @Bean public FtpOutboundGateway getGW() { FtpOutboundGateway … Read more

Using a request scoped bean outside of an actual web request

For Spring 4 Frameworks add servletContext.addListener(new RequestContextListener()); public class WebApplicationInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { @Override protected Class<?>[] getRootConfigClasses() { return new Class[] { RootConfiguration.class }; } @Override protected Class<?>[] getServletConfigClasses() { return new Class[] { WebMvcConfiguration.class }; } @Override protected String[] getServletMappings() { return new String[] { “/” }; } @Override protected Filter[] getServletFilters() { return … Read more

Spring-Kafka vs. Spring-Cloud-Stream (Kafka)

Spring Cloud Stream with kafka binder rely on Spring-kafka. So the former has all functionalities supported by later, but the former will be more heavyweight. Below are some points help you make the choice: If you might change kafka into another message middleware in the future, then Spring Cloud stream should be your choice since … Read more

Spring AMQP + RabbitMQ 3.3.5 ACCESS_REFUSED – Login was refused using authentication mechanism PLAIN

I am sure what Artem Bilan has explained here might be one of the reasons for this error: Caused by: com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED – Login was refused using authentication mechanism PLAIN. For details see the but the solution for me was that I logged in to rabbitMQ admin page (http://localhost:15672/#/users) with the default user name and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)