This file contains 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.redhat.camel.java; | |
import org.apache.camel.impl.DefaultCamelContext; | |
import org.osgi.framework.BundleActivator; | |
import org.osgi.framework.BundleContext; | |
/** | |
* A Camel Application | |
*/ | |
public class MainActivation implements BundleActivator{ |
This file contains 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"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.redhat.workshop.fuse</groupId> | |
<artifactId>camel-java</artifactId> | |
<packaging>bundle</packaging> | |
<version>1.0.0-SNAPSHOT</version> |
This file contains 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
<repositories> | |
<repository> | |
<id>jboss-eap-repository</id> | |
<url>http://maven.repository.redhat.com/techpreview/all</url> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> |
This file contains 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
<build> | |
<!-- Maven will append the version to the finalName (which is the name | |
given to the generated war, and hence the context root) --> | |
<finalName>${project.artifactId}</finalName> | |
<plugins> | |
<plugin> | |
<artifactId>maven-war-plugin</artifactId> | |
<version>${version.war.plugin}</version> | |
<configuration> | |
<!-- Java EE 6 doesn't require web.xml, Maven needs to catch up! --> |
This file contains 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
<profile> | |
<!-- When built in OpenShift the 'openshift' profile will be used when | |
invoking mvn. --> | |
<!-- Use this profile for any OpenShift specific customization your app | |
will need. --> | |
<!-- By default that is to put the resulting archive into the 'deployments' | |
folder. --> | |
<!-- http://maven.apache.org/guides/mini/guide-building-for-different-environments.html --> | |
<id>openshift</id> | |
<build> |
This file contains 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
<HTML> | |
<HEAD> | |
<TITLE>JBossEAP6.0 JSP snoop page</TITLE> | |
<%@ page import="javax.servlet.http.HttpUtils,java.util.Enumeration" %> | |
<%@ page import="java.lang.management.*" %> | |
<%@ page import="java.util.*" %> | |
</HEAD> | |
<BODY> | |
<H1>WebApp JSP Snoop page</H1> |
This file contains 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
<!-- It is either needed to turn on pre-emptive authentication for the repository server by --> | |
<server> | |
<id>guvnor-m2-repo</id> | |
<username>admin</username> | |
<password>admin</password> | |
<configuration> | |
<wagonProvider>httpclient</wagonProvider> | |
<httpConfiguration> | |
<all> | |
<usePreemptive>true</usePreemptive> |
This file contains 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
#!/bin/bash | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 start|stop|pause|unpause|<any valid docker cmd>" | |
exit 1 | |
fi | |
for c in $(sudo docker ps -a | awk '{print $1}' | sed "1 d") | |
do | |
sudo docker $1 $c |
This file contains 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
java -cp . com.your.project.MainClass -Djgroups.bind_addr=127.0.0.1 -Djava.net.preferIPv4Stack=true |
This file contains 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
<infinispan | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="urn:infinispan:config:7.0 http://www.infinispan.org/schemas/infinispan-config-7.0.xsd" | |
xmlns="urn:infinispan:config:7.0"> | |
<jgroups> | |
<stack-file name="udp" path="default-configs/default-jgroups-udp.xml"/> | |
<stack-file name="tcp" path="default-configs/default-jgroups-tcp.xml"/> | |
</jgroups> | |