This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="ISO-8859-1"?> | |
| <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> | |
| <display-name>YourAppName Web App</display-name> | |
| <!-- Location of Spring XML files --> | |
| <context-param> | |
| <param-name>contextConfigLocation</param-name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <packaging>war</packaging> | |
| <properties> | |
| <spring.version>3.2.2.RELEASE</spring.version> | |
| <compileSource>1.7</compileSource> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xmlns:broker="http://activemq.apache.org/schema/core" | |
| xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd | |
| http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.8.0.xsd"> | |
| <broker:broker useJmx="true" persistent="true" brokerName="${activemq.broker.name}"> | |
| <broker:transportConnectors> | |
| <!-- expose a VM transport for in-JVM transport between AMQ and Camel on the server side --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mycompany.myapp.serviceactivator; | |
| import org.springframework.beans.factory.annotation.Value; | |
| import org.springframework.stereotype.Component; | |
| @Component | |
| public class ThirdPartyService { | |
| /** specified in env-infr-dev.properties: | |
| * thirdparty.theirapp.accounts.useraccount=FRED|12345 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mycompany.myproject.serviceactivator; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import org.apache.camel.Body; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.beans.factory.annotation.Value; | |
| import org.springframework.stereotype.Component; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mycompany.olpsubscriber; | |
| import java.net.ConnectException; | |
| import javax.sql.DataSource; | |
| import org.apache.camel.CamelContext; | |
| import org.apache.camel.ConsumerTemplate; | |
| import org.apache.camel.Produce; | |
| import org.apache.camel.ProducerTemplate; | |
| import org.apache.camel.builder.RouteBuilder; | |
| import org.apache.camel.model.RouteDefinition; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # The logging properties used | |
| # | |
| log4j.rootLogger=INFO, out, chainsaw-file, chainsaw-socket | |
| #log4j.rootCategory=DEBUG, Default, Chainsaw | |
| # uncomment the following line to turn on Camel debugging | |
| #log4j.logger.org.apache.camel=DEBUG | |
| log4j.logger.org.springframework=WARN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mycompany.myapp.serviceactivator; | |
| import java.io.File; | |
| import java.util.Scanner; | |
| import com.mycompany.myapp.route.MyRoute; | |
| import org.apache.camel.CamelContext; | |
| import org.apache.camel.ConsumerTemplate; | |
| import org.apache.camel.Produce; | |
| import org.apache.camel.ProducerTemplate; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mycompany.myapp.serviceactivator; | |
| import org.junit.Before; | |
| import org.junit.Test; | |
| import org.mockito.InjectMocks; | |
| import org.mockito.Mock; | |
| import static org.mockito.MockitoAnnotations.initMocks; | |
| import static org.mockito.Mockito.anyList; | |
| import static org.mockito.Mockito.anyInt; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mycompany.myapp.route; | |
| import org.apache.camel.CamelContext; | |
| import org.apache.camel.test.spring.CamelSpringJUnit4ClassRunner; | |
| import org.junit.Before; | |
| import org.junit.runner.RunWith; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.beans.factory.annotation.Qualifier; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.test.annotation.DirtiesContext; |