Hawt.io Installation
feature:repo-add hawtio
feature:install hawtio
http://localhost:8181/hawtio/
Login: smx:smx , karaf:karaf
http://hawt.io/getstarted/
Install Karaf Webconsole
feature install webconsole
Default Login: karaf, Pass: karaf
http://localhost:8181/system/console
Install ActiveMq WebConsole
feature install activemq-web-console
http://127.0.0.1:8181/activemqweb/index.jsp
Camel from File / Noop=true
http://camel.apache.org/file2.html
Gogo ServiceMix Web-Konsole
http://127.0.0.1:8181/gogo
Java-Code
Simple File2File Route
from("file:data/in?noop=true").id("file-in") .log("Nachricht: ${body}") .to("file:data/out") ; |
pom.xml
<?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"> <groupId>de.predic8</groupId> <modelVersion>4.0.0</modelVersion> <artifactId>vacation-camel</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>Vacation ESB Sample Apache Camel</name> <properties> <camel.version>2.14.0</camel.version> <activemq-version>5.10.0</activemq-version> <hawtio.version>1.4.45</hawtio.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <targetJdk>1.8</targetJdk> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <gmaven.runtime>1.8</gmaven.runtime> </properties> <dependencies> <!-- Camel --> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-core</artifactId> <version>${camel.version}</version> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-spring</artifactId> <version>${camel.version}</version> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-jetty</artifactId> <version>${camel.version}</version> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-xmljson</artifactId> <version>${camel.version}</version> </dependency> <!-- hawt.io, jolokia --> <dependency> <groupId>org.jolokia</groupId> <artifactId>jolokia-core</artifactId> <version>1.2.3</version> </dependency> <dependency> <groupId>org.jolokia</groupId> <artifactId>jolokia-jvm</artifactId> <version>1.2.3</version> </dependency> <dependency> <groupId>io.hawt</groupId> <artifactId>hawtio-embedded</artifactId> <version>${hawtio.version}</version> </dependency> <!-- Logging --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.7</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.7.7</version> </dependency> <!-- ActiveMQ --> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-camel</artifactId> <version>5.10.0</version> </dependency> <!-- Spring --> <!-- dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>3.2.8.RELEASE</version> </dependency> --> </dependencies> <build> <defaultGoal>install</defaultGoal> <finalName>WeatherMapping</finalName> <plugins> <plugin> <groupId>org.apache.camel</groupId> <artifactId>camel-maven-plugin</artifactId> <configuration> <applicationContextUri>META-INF/spring/*.xml</applicationContextUri> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <configuration> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <version>1.1</version> <configuration> <server>myTomcat</server> <url>http://localhost:8081</url> <path>/weatherMapping</path> <!--<warFile>target/${deploy.name}.war</warFile> --> </configuration> </plugin> <!-- Tomcat 7 Deployment --> <!-- mvn tomcat7:deploy -Dserver=localhost -Dport=8080 --> <!--mvn tomcat7:deploy -Dserver=217.31.84.148 -Dport=8081 --> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <url>http://${server}:${port}/manager/text</url> <path>/${deploy.name}</path> <update>true</update> <server>tomcatserver</server> <username>admin</username> <password>2grExP8q3WBRIqye</password> <warFile>target/${deploy.name}.war</warFile> <skipTests>true</skipTests> </configuration> </plugin> <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>gmaven-plugin</artifactId> <version>1.4</version> <executions> <execution> <goals> <goal>generateTestStubs</goal> <goal>testCompile</goal> </goals> </execution> </executions> </plugin> </plugins> <pluginManagement> <plugins> <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. --> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId> org.codehaus.gmaven </groupId> <artifactId> gmaven-plugin </artifactId> <versionRange> [1.4,) </versionRange> <goals> <goal> generateTestStubs </goal> <goal>testCompile</goal> </goals> </pluginExecutionFilter> <action> <ignore></ignore> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build> </project> |
WebLinks:
https://activemq.apache.org/web-console.html
http://marcelojabali.blogspot.de/2011/08/how-to-enable-activemq-web-console-on.html
Keine Kommentare:
Kommentar veröffentlichen