-
download a distro of Fuse Fabric
-
untar it. You maybe wanna uncomment the etc/users.properties line to create an admin/admin user/pwd
-
from the expanded directory run
bin/fusefabric
-
now create a fabric in the shell
fabric:create
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
/** | |
* Use case: okay lets say i have 2 separate services, one for authentication and the other for loading profile data. | |
* so can you write me some code that will : | |
* handle a login http request, asynchronously authenticate the user with a | |
* user / pass (which returns a user identifier or fails), | |
* upon success will then retrieve the profile details of the user using the id asynchronously, | |
* then output the profile details to a http response. | |
*/ | |
interface APIs { | |
// for simplicity am shoving these on the same API |
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> | |
<id>useReleaseProxy</id> | |
<repositories> | |
<repository> | |
<id>release-proxy.fusesource.org</id> | |
<name>FuseSource Release Proxy Repository</name> | |
<url>http://repo.fusesource.com/nexus/content/groups/m2-release-proxy</url> | |
<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
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ camel-activemq --- | |
[INFO] com.mycompany:camel-activemq:jar:1.0.0-SNAPSHOT | |
[INFO] +- org.apache.camel:camel-core:jar:2.10.0.fuse-71-020:compile | |
[INFO] | \- com.sun.xml.bind:jaxb-impl:jar:2.2.5:compile | |
[INFO] +- org.apache.camel:camel-jms:jar:2.10.0.fuse-71-020:compile | |
[INFO] | +- org.springframework:spring-jms:jar:3.0.7.RELEASE:compile | |
[INFO] | | \- aopalliance:aopalliance:jar:1.0:compile | |
[INFO] | +- org.springframework:spring-core:jar:3.0.7.RELEASE:compile | |
[INFO] | | +- org.springframework:spring-asm:jar:3.0.7.RELEASE:compile | |
[INFO] | | \- commons-logging:commons-logging:jar:1.1.1:compile |
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
Root exception: | |
java.lang.reflect.UndeclaredThrowableException | |
at $Proxy21.browseMessages(Unknown Source) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.fusesource.fabric.activemq.facade.BrokerFacadeSupport$1.invoke(BrokerFacadeSupport.java:48) | |
at $Proxy22.browseMessages(Unknown Source) | |
at org.fusesource.ide.fabric.activemq.navigator.QueueNode.browseExchanges(QueueNode.java:77) |
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
import javax.naming.Context; | |
import org.apache.camel.Endpoint; | |
import org.apache.camel.builder.RouteBuilder; | |
import org.apache.camel.processor.binding.DataFormatBinding; | |
import org.apache.camel.component.mock.MockEndpoint; | |
import org.apache.camel.test.junit4.CamelTestSupport; | |
import org.junit.Test; | |
public class JacksonBindingTest extends CamelTestSupport { |
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.lang.Exception: Can not resolve feature: | |
Unsatisfied requirement(s): | |
--------------------------- | |
package:(&(package=org.apache.sshd.server.filesystem)(version>=0.8.0)(!(version>=1.0.0))) | |
Apache Karaf :: Shell :: SSH | |
package:(&(package=org.apache.sshd.server.session)(version>=0.8.0)(!(version>=1.0.0))) | |
Apache Karaf :: Shell :: SSH | |
package:(&(package=org.apache.sshd.agent.local)(version>=0.8.0)(!(version>=1.0.0))) | |
Apache Karaf :: Shell :: Console | |
package:(&(package=org.apache.sshd.server.keyprovider)(version>=0.8.0)(!(version>=1.0.0))) |
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"?> | |
<settings> | |
<profiles> | |
<profile> | |
<id>ea</id> | |
<repositories> | |
<repository> | |
<id>ea.fusesource.org</id> | |
<name>FuseSource Early Access Repository</name> | |
<url>http://repo.fusesource.com/nexus/content/groups/ea</url> |
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
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ camelblue097 --- | |
[INFO] Using alternate deployment repository Local_Fabric::default::http://stracmac.home:8181/maven/upload/ | |
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". | |
SLF4J: Defaulting to no-operation (NOP) logger implementation | |
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. | |
Downloading: http://stracmac.home:8181/maven/upload/com/mycompany/camelblue097/1.0.0-SNAPSHOT/maven-metadata.xml | |
Uploading: http://stracmac.home:8181/maven/upload/com/mycompany/camelblue097/1.0.0-SNAPSHOT/camelblue097-1.0.0-20121017.101007-1.jar | |
Uploading: http://stracmac.home:8181/maven/upload/com/mycompany/camelblue097/1.0.0-SNAPSHOT/camelblue097-1.0.0-20121017.101007-1.pom | |
[WARNING] Encountered issue during deployment: Failed to deploy artifacts: Could not find artifact com.mycompany:camelblue097:jar:1.0.0-20121017.101007-1 in Local_Fabric (http://stracmac.home:8181/maven/upload/) | |
[INFO] Retrying deployment attempt 2 |
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
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ camel-blueprint --- | |
[INFO] Using alternate deployment repository Local_Fabric::default::http://stracmac.home:8181/maven/upload/ | |
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". | |
SLF4J: Defaulting to no-operation (NOP) logger implementation | |
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. | |
Downloading: http://stracmac.home:8181/maven/upload/com/mycompany/camel-blueprint/1.0.0-SNAPSHOT/maven-metadata.xml | |
Uploading: http://stracmac.home:8181/maven/upload/com/mycompany/camel-blueprint/1.0.0-SNAPSHOT/camel-blueprint-1.0.0-20121003.083620-1.jar | |
Uploading: http://stracmac.home:8181/maven/upload/com/mycompany/camel-blueprint/1.0.0-SNAPSHOT/camel-blueprint-1.0.0-20121003.083620-1.pom | |
[WARNING] Encountered issue during deployment: Failed to deploy artifacts: Could not find artifact com.mycompany:camel-blueprint:jar:1.0.0-20121003.083620-1 in Local_Fabric (http://stracmac.home:8181/maven/upload/) | |
[INFO] Retrying |