Giter Site home page Giter Site logo

cxf-webinars's Introduction

These demos have been built and tested using Red Hat JBoss Fuse 6.1.0 GA build 379

Prerequisites
-------------
You must have Apache Maven installed and you must configure your settings.xml file
to use the following repository (both as a repository and as a plug-in repository):

https://repo.fusesource.com/nexus/content/groups/public/


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

    $ cd parent
    $ mvn install
    $ cd ..
    $ mvn install


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

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

You will now find that the server is listening on 'http://localhost:8181/cxf/Customer' 
- you can verify this quickly by pointing your browser at 'http://localhost:8181/cxf/Customer?wsdl'.
You can test the service by using a tool such as SoapUI from http://www.soapui.org. 

Alternatively, you can install a bundle that creates a CXF client to this web 
service. 

    karaf@root> install -s mvn:com.fusesource.byexample.cxf-webinars/customer-ws-client

The bundle creates a thread that invokes on the web service once a second. It logs 
the response it gets; you can view the log using 

    karaf@root> log:display -n 10



Installing the camel-cxf routes
-------------------------------
To install the camel-cxf demos into JBoss Fuse, you need to install the relevant OSGi bundle
and any prerequisite features.

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

For example, to install the camel-cxf POJO route, do 

    karaf@root> features:install camel-cxf
    karaf@root> install -s mvn:com.fusesource.byexample.cxf-webinars/customer-ws-camel-cxf-pojo

To install the camel-cxf Payload route, do 

    karaf@root> features:install camel-cxf
    karaf@root> features:install camel-velocity
    karaf@root> install -s mvn:com.fusesource.byexample.cxf-webinars/customer-ws-camel-cxf-payload

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

    karaf@root> features:install camel-cxf
    karaf@root> features:install camel-velocity
    karaf@root> install -s mvn:com.fusesource.byexample.cxf-webinars/customer-ws-camel-cxf-provider


cxf-webinars's People

Contributors

fbolton avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.