Posts

Showing posts from December 19, 2017

security config xml configuration in spring mvc project

Add below maven dependency in pom.xml file. <properties> <org.springframework-version>4.2.2.RELEASE</org.springframework-version> <org.springframework.security-version>4.2.2.RELEASE</org.springframework.security-version> </properties> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId> <version>${org.springframework.security-version}</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-config</artifactId> <version>${org.springframework.security-version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-core --> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-cor...

Mule How to use amqp connector global element object into Java file

In so many articles, you can find how to create amqp connector in mule configuration xml file, here is a good example for it. http://java.gunustories.com/2017/12/mule-configuration-xml-tags-for-rabbitmq.html http://java.gunustories.com/2017/12/mule-flow-reading-messages-from-rabbitmq.html Once you created the global element of amqp connector using below configuration: <amqp:connector validateConnections="true" doc:name="AMQP Connector"  name="AMQP_0_9_Connector" /> Now you need to create a Java file where you want to inject this amqp connector. So create a java class like below: public class RabbitMQ { private AmqpConnector amqps; public AmqpConnector getAmqps() { return amqps; } public void setAmqps(AmqpConnector amqps) { // MuleServer. this.amqps = amqps; } } Now come back in the mule configuration xml file and create bean global element here: <spring:beans>      <spring:bean id=...

Recent Post

Recent Posts Widget