Skip to content

Commit b59efcf

Browse files
committed
Merge pull request #1 from trohovsky/update-to-6.2
Update examples to Red Hat JBoss Fuse 6.2.0 version (build 123)
2 parents 6754b58 + 033af84 commit b59efcf

File tree

13 files changed

+38
-52
lines changed

13 files changed

+38
-52
lines changed

README.txt README.md

+21-19
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,40 @@
1-
These demos have been built and tested using Red Hat JBoss Fuse 6.1.0 GA build 379
1+
These demos have been built and tested using Red Hat JBoss Fuse 6.2.0 build 123
22

33
Prerequisites
44
-------------
5-
You must have Apache Maven installed and you must configure your settings.xml file
6-
to use the following repository (both as a repository and as a plug-in repository):
7-
8-
https://repo.fusesource.com/nexus/content/groups/public/
5+
Before building and running this example you need:
96

7+
* Maven 3.0.4 or higher
8+
* JDK 1.6
9+
* JBoss Fuse 6.2.0
1010

1111
Building the examples
1212
---------------------
1313
The examples are built using Apache Maven. To build all of the examples (and install the
14-
corresponding artifacts in your local Maven repository) enter the following commands from
14+
corresponding artifacts in your local Maven repository) enter the following command from
1515
the top-level directory of the examples:
1616

17-
$ cd parent
18-
$ mvn install
19-
$ cd ..
2017
$ mvn install
2118

19+
Configuring additional users
20+
----------------------------
21+
Edit the `$FUSE_HOME/etc/users.properties` and add a user called `admin`:
22+
23+
admin=admin,admin
24+
25+
This will enable connecting to the embedded message broker.
26+
2227

2328
Installing the customer-ws-osgi-bundle
2429
--------------------------------------
25-
The 'customer-ws-osgi-bundle' deploys a simple web service listening on ServiceMix's
30+
The `customer-ws-osgi-bundle` deploys a simple web service listening on ServiceMix's
2631
HTTP port (by default, this is port 8181). To install and start the bundle, just do
2732

2833
karaf@root> install -s mvn:com.fusesource.byexample.cxf-webinars/customer-ws-osgi-bundle
2934

30-
You will now find that the server is listening on 'http://localhost:8181/cxf/Customer'
31-
- you can verify this quickly by pointing your browser at 'http://localhost:8181/cxf/Customer?wsdl'.
32-
You can test the service by using a tool such as SoapUI from http://www.soapui.org.
35+
You will now find that the server is listening on `http://localhost:8181/cxf/Customer`
36+
- you can verify this quickly by pointing your browser at `http://localhost:8181/cxf/Customer?wsdl`.
37+
You can test the service by using a tool such as [SoapUI](http://www.soapui.org)
3338

3439
Alternatively, you can install a bundle that creates a CXF client to this web
3540
service.
@@ -48,7 +53,7 @@ Installing the camel-cxf routes
4853
To install the camel-cxf demos into JBoss Fuse, you need to install the relevant OSGi bundle
4954
and any prerequisite features.
5055

51-
Note: You must stop the 'customer-ws-osgi-bundle', if you have alread installed and started it,
56+
Note: You must stop the `customer-ws-osgi-bundle`, if you have alread installed and started it,
5257
otherwise you will get a port conflict when a camel-cxf demo is started.
5358

5459
For example, to install the camel-cxf POJO route, do
@@ -58,14 +63,11 @@ For example, to install the camel-cxf POJO route, do
5863

5964
To install the camel-cxf Payload route, do
6065

61-
karaf@root> features:install camel-cxf
62-
karaf@root> features:install camel-velocity
66+
karaf@root> features:install camel-cxf camel-velocity
6367
karaf@root> install -s mvn:com.fusesource.byexample.cxf-webinars/customer-ws-camel-cxf-payload
6468

6569
Finally, to install the camel-cxf Provider route, do
6670

67-
karaf@root> features:install camel-cxf
68-
karaf@root> features:install camel-velocity
71+
karaf@root> features:install camel-cxf camel-velocity
6972
karaf@root> install -s mvn:com.fusesource.byexample.cxf-webinars/customer-ws-camel-cxf-provider
7073

71-

customer-ws-camel-cxf-payload/pom.xml

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<groupId>com.fusesource.byexample.cxf-webinars</groupId>
2222
<artifactId>cxf-webinars</artifactId>
2323
<version>1.0-SNAPSHOT</version>
24+
<relativePath>../parent</relativePath>
2425
</parent>
2526

2627
<groupId>com.fusesource.byexample.cxf-webinars</groupId>
@@ -68,17 +69,13 @@
6869
<instructions>
6970
<Import-Package>
7071
org.apache.camel.component.velocity,
71-
META-INF.cxf,
72-
META-INF.cxf.osgi,
7372
javax.jws,
7473
javax.wsdl,
7574
javax.xml.bind,
7675
javax.xml.bind.annotation,
7776
javax.xml.namespace,
7877
javax.xml.ws,
7978
org.w3c.dom,
80-
<!-- Workaround to access DOM XPathFactory -->
81-
org.apache.xpath.jaxp,
8279
*
8380
</Import-Package>
8481
<DynamicImport-Package>

customer-ws-camel-cxf-payload/src/main/resources/META-INF/spring/customer-ws.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828
http://camel.apache.org/schema/spring
2929
http://camel.apache.org/schema/spring/camel-spring.xsd
3030
">
31-
32-
<import resource="classpath:META-INF/cxf/cxf.xml" />
33-
31+
3432
<!-- When you use the address="/Customer", the CXF endpoint is installed
3533
into the container's default Jetty container and automatically gets the URL:
3634
http://localhost:8181/cxf/Customer
@@ -88,8 +86,10 @@
8886

8987
<bean id="lookupCustomer" class="com.fusesource.customerwscamelcxfpayload.LookupCustomer"/>
9088

91-
<!--bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
89+
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
9290
<property name="brokerURL" value="tcp://localhost:61616"/>
93-
</bean-->
91+
<property name="userName" value="admin"/>
92+
<property name="password" value="admin"/>
93+
</bean>
9494

9595
</beans>

customer-ws-camel-cxf-pojo/pom.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<groupId>com.fusesource.byexample.cxf-webinars</groupId>
2121
<artifactId>cxf-webinars</artifactId>
2222
<version>1.0-SNAPSHOT</version>
23+
<relativePath>../parent</relativePath>
2324
</parent>
2425

2526
<groupId>com.fusesource.byexample.cxf-webinars</groupId>
@@ -76,8 +77,6 @@
7677
<configuration>
7778
<instructions>
7879
<Import-Package>
79-
META-INF.cxf,
80-
META-INF.cxf.osgi,
8180
*
8281
</Import-Package>
8382
<DynamicImport-Package>

customer-ws-camel-cxf-pojo/src/main/resources/META-INF/spring/customer-ws.xml

-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
http://camel.apache.org/schema/spring/camel-spring.xsd
2929
">
3030

31-
<import resource="classpath:META-INF/cxf/cxf.xml" />
32-
<import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml"/>
33-
3431
<!-- When you use the address="/Customer", the CXF endpoint is installed
3532
into the container's default Jetty container and automatically gets the URL:
3633
http://localhost:8181/cxf/Customer

customer-ws-camel-cxf-provider/pom.xml

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<groupId>com.fusesource.byexample.cxf-webinars</groupId>
2222
<artifactId>cxf-webinars</artifactId>
2323
<version>1.0-SNAPSHOT</version>
24+
<relativePath>../parent</relativePath>
2425
</parent>
2526

2627
<groupId>com.fusesource.byexample.cxf-webinars</groupId>
@@ -68,17 +69,13 @@
6869
<instructions>
6970
<Import-Package>
7071
org.apache.camel.component.velocity,
71-
META-INF.cxf,
72-
META-INF.cxf.osgi,
7372
javax.jws,
7473
javax.wsdl,
7574
javax.xml.bind,
7675
javax.xml.bind.annotation,
7776
javax.xml.namespace,
7877
javax.xml.ws,
7978
org.w3c.dom,
80-
<!-- Workaround to access DOM XPathFactory -->
81-
org.apache.xpath.jaxp,
8279
*
8380
</Import-Package>
8481
<DynamicImport-Package>

customer-ws-camel-cxf-provider/src/main/resources/META-INF/spring/customer-ws.xml

+3-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@
2828
http://camel.apache.org/schema/spring
2929
http://camel.apache.org/schema/spring/camel-spring.xsd
3030
">
31-
32-
33-
<import resource="classpath:META-INF/cxf/cxf.xml" />
34-
31+
3532
<!-- When you use the address="/Customer", the CXF endpoint is installed
3633
into the container's default Jetty container and automatically gets the URL:
3734
http://localhost:8181/cxf/Customer
@@ -93,6 +90,8 @@
9390

9491
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
9592
<property name="brokerURL" value="tcp://localhost:61616"/>
93+
<property name="userName" value="admin"/>
94+
<property name="password" value="admin"/>
9695
</bean>
9796

9897
</beans>

customer-ws-client/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<groupId>com.fusesource.byexample.cxf-webinars</groupId>
2222
<artifactId>cxf-webinars</artifactId>
2323
<version>1.0-SNAPSHOT</version>
24+
<relativePath>../parent</relativePath>
2425
</parent>
2526

2627
<groupId>com.fusesource.byexample.cxf-webinars</groupId>
@@ -73,7 +74,6 @@
7374
!com.fusesource.demo.wsdl.customerservice
7475
</Export-Package>
7576
<Import-Package>
76-
META-INF.cxf,
7777
*
7878
</Import-Package>
7979
<DynamicImport-Package>

customer-ws-client/src/main/resources/META-INF/spring/customer-client.xml

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schem
2323
http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
2424
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
2525

26-
<import resource="classpath:META-INF/cxf/cxf.xml" />
27-
2826
<!-- address="http://localhost:8181/cxf/Customer" -->
2927
<!-- address="http://localhost:9191/Customer" -->
3028
<jaxws:client

customer-ws-osgi-bundle/pom.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<groupId>com.fusesource.byexample.cxf-webinars</groupId>
2222
<artifactId>cxf-webinars</artifactId>
2323
<version>1.0-SNAPSHOT</version>
24+
<relativePath>../parent</relativePath>
2425
</parent>
2526

2627
<groupId>com.fusesource.byexample.cxf-webinars</groupId>
@@ -78,8 +79,6 @@
7879
!com.fusesource.demo.wsdl.customerservice
7980
</Export-Package>
8081
<Import-Package>
81-
META-INF.cxf,
82-
META-INF.cxf.osgi,
8382
*
8483
</Import-Package>
8584
<DynamicImport-Package>

customer-ws-osgi-bundle/src/main/resources/META-INF/spring/customer-ws.xml

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ http://www.springframework.org/schema/beans http://www.springframework.org/schem
2323
http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
2424
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
2525

26-
<!--
27-
-->
28-
<import resource="classpath:META-INF/cxf/cxf.xml" />
29-
3026
<!-- When you use the address="/Customer", the CXF endpoint is installed
3127
into the container's default Jetty container and automatically gets the URL:
3228
http://localhost:8181/cxf/Customer

parent/pom.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
<parent>
2525
<groupId>org.jboss.fuse.bom</groupId>
2626
<artifactId>jboss-fuse-parent</artifactId>
27-
<version>6.1.0.redhat-379</version>
27+
<version>6.2.0.redhat-123</version>
28+
<relativePath></relativePath>
2829
</parent>
2930

3031
<groupId>com.fusesource.byexample.cxf-webinars</groupId>
@@ -45,7 +46,7 @@
4546
<maven.compiler.source>1.6</maven.compiler.source>
4647

4748
<!-- the version of the JBoss Fuse BOM, defining all the dependency versions -->
48-
<jboss.fuse.bom.version>6.1.0.redhat-379</jboss.fuse.bom.version>
49+
<jboss.fuse.bom.version>6.2.0.redhat-123</jboss.fuse.bom.version>
4950
</properties>
5051

5152
<licenses>

pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
</organization>
4242

4343
<modules>
44+
<module>parent</module>
4445
<module>customer-ws-osgi-bundle</module>
4546
<module>customer-ws-client</module>
4647
<module>customer-ws-camel-cxf-pojo</module>

0 commit comments

Comments
 (0)