Skip to content

Commit

Permalink
Merge pull request #3 from aapje007/JBoss_Fuse_6.0.0
Browse files Browse the repository at this point in the history
Update to JBoss fuse 6.0.0
Thanks for the patch, Wim!
  • Loading branch information
gertv committed Mar 22, 2013
2 parents 2d8ce6a + 6e09167 commit 0429f67
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 24 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
target
*.i??
.idea
.settings
.project
.classpath
44 changes: 24 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This projects contains a set of OSGi bundles that demonstrate web services in ServiceMix using CXF and Camel.
This projects contains a set of OSGi bundles that demonstrate web services in JBoss Fuse using CXF and Camel.

The following patterns are shown:

Expand Down Expand Up @@ -28,7 +28,7 @@ There are two additional parent projects that simplify the Maven project configu

Prerequisites
=============
Set up ServiceMix by downloading the latest (4.4.1-fuse-01-13 or above) version from [FuseSource](http://fusesource.com/products/enterprise-servicemix/). The installation guide can be reached from the Documentation tab on that page.
Set up JBoss Fuse by downloading the latest (6.0.0) version from [Red Hat](https://access.redhat.com/jbossnetwork/). The installation guide can be reached from the Documentation tab on that page.

Ensure that Maven is set up on your system.

Expand All @@ -38,29 +38,33 @@ Download this project and run

smx-ws-examples> mvn clean install

Start up ServiceMix
Start up Fuse

$JBOSS_FUSE_HOME> bin/fuse console

_ ____ ______
| | _ \ | ____|
| | |_) | ___ ___ ___ | |__ _ _ ___ ___
_ | | _ < / _ \/ __/ __| | __| | | / __|/ _ \
| |__| | |_) | (_) \__ \__ \ | | | |_| \__ \ __/
\____/|____/ \___/|___/___/ |_| \__,_|___/\___|

JBoss Fuse (6.0.0.redhat-019)
http://www.redhat.com/products/jbossenterprisemiddleware/fuse/

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown JBoss Fuse.

$SERVICEMIX_HOME> bin/servicemix console

____ _ __ __ _
/ ___| ___ _ ____ _(_) ___ ___| \/ (_)_ __
\___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
___) | __/ | \ V /| | (_| __/ | | | |> <
|____/ \___|_| \_/ |_|\___\___|_| |_|_/_/\_\

Apache ServiceMix (4.4.1-fuse-01-13)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.

Install the `smx-ws-examples` features file. This gets pulled out from your local Maven repository, and defines which bundles you mean to install for the example project.

karaf@root> features:addurl mvn:com.fusesource.examples/ws-features/1.0-SNAPSHOT/xml/features
JBossFuse:karaf@root> features:addurl mvn:com.fusesource.examples/ws-features/1.0-SNAPSHOT/xml/features

Install all of the necessary OSGi bundles by installing the `smx-ws-examples` feature

karaf@root> features:install smx-ws-examples
karaf@root> list | grep Examples
JBossFuse:karaf@root> features:install smx-ws-examples
JBossFuse:karaf@root> list | grep Examples
[ 225] [Active ] [ ] [Started] [ 60] ServiceMix Web Service Examples :: greeter-api (1.0.0.SNAPSHOT)
[ 226] [Active ] [ ] [Started] [ 60] ServiceMix Web Service Examples :: ws-cxf-service (1.0.0.SNAPSHOT)
[ 227] [Active ] [ ] [Started] [ 60] ServiceMix Web Service Examples :: ws-camel-service (1.0.0.SNAPSHOT)
Expand All @@ -69,10 +73,10 @@ Install all of the necessary OSGi bundles by installing the `smx-ws-examples` fe

Tail the logs and you should see the CXF invocations ticking over.

karaf@root> log:tail
JBossFuse:karaf@root> log:Display

You can also verify that the web services are available by accessing the following from your browser:

* `ws-cxf-service` - http://localhost:9090/greeterImpl?wsdl
* `ws-camel-service` - http://localhost:9090/greeter?wsdl
* `ws-camel-proxy` - http://localhost:9091/greeterProxy?wsdl
* `ws-camel-proxy` - http://localhost:9091/greeterProxy?wsdl
27 changes: 25 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@
<properties>
<application-name>ServiceMix Web Service Examples</application-name>
<fusesource-repo>http://repo.fusesource.com/maven2</fusesource-repo>
<fusesource-ea-repo>http://repo.fusesource.com/nexus/content/groups/ea/</fusesource-ea-repo>

<camel-version>2.8.3</camel-version>
<cxf-version>2.4.0</cxf-version>
<camel-version>2.10.0.redhat-60020</camel-version>
<cxf-version>2.6.0.redhat-60020</cxf-version>
<slf4j-version>1.6.1</slf4j-version>
<log4j-version>1.2.16</log4j-version>
<junit-version>4.7</junit-version>
Expand All @@ -57,13 +58,35 @@
<id>fusesource</id>
<url>${fusesource-repo}</url>
</repository>
<repository>
<id>fusesource.ea</id>
<name>FuseSource Early Access</name>
<url>${fusesource-ea-repo}</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>fusesource</id>
<url>${fusesource-repo}</url>
</pluginRepository>
<pluginRepository>
<id>fusesource.ea</id>
<name>FuseSource Early Access</name>
<url>${fusesource-ea-repo}</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<route id="periodicGreeter">
<from uri="timer:foo?period=5000"/>
<!-- set the action to be triggered -->
<setHeader headerName="SOAPAction">
<constant>http://examples.fusesource.com/greeter/greetMe</constant>
<setHeader headerName="operationName">
<constant>greetMe</constant>
</setHeader>
<transform>
<constant>My Favourite Web Service</constant>
Expand Down

0 comments on commit 0429f67

Please sign in to comment.