LibraryToggle FramesPrintFeedback

Start and configure the Fuse ESB container as follows:

It is now a relatively straightforward task to run each of the demonstrations by installing the relevant features.

For example, to start up the WSDL-first Web service (discussed in WSDL-First Service Implementation), enter the following console command:

karaf@root> features:install customer-ws

To see the Web service in action, start up the sample Web service client (discussed in Implementing a WS Client), by entering the following console command:

karaf@root> features:install customer-ws-client

The bundle creates a thread that invokes the Web service once a second and logs the response. View the log by entering the following console command:

karaf@root> log:tail -n 4

You should see log output like the following:

18:03:58,609 | INFO  | qtp5581640-231   | CustomerServiceImpl              | ?                                   ? |
 218 - org.fusesource.sparks.fuse-webinars.cxf-webinars.customer-ws-osgi-bundle - 1.0.1 | Getting status for custome
 r 1234
18:03:58,687 | INFO  |  invoker thread. | ClientInvoker                    | ?                                   ? |
 219 - org.fusesource.sparks.fuse-webinars.cxf-webinars.customer-ws-client - 1.0.1 | Got back: status = Active, stat
 usMessage = In the park, playing with my frisbee.
18:04:00,687 | INFO  | qtp5581640-232   | CustomerServiceImpl              | ?                                   ? |
 218 - org.fusesource.sparks.fuse-webinars.cxf-webinars.customer-ws-osgi-bundle - 1.0.1 | Getting status for custome
 r 1234
18:04:00,703 | INFO  |  invoker thread. | ClientInvoker                    | ?                                   ? |
 219 - org.fusesource.sparks.fuse-webinars.cxf-webinars.customer-ws-client - 1.0.1 | Got back: status = Active, stat
 usMessage = In the park, playing with my frisbee.

To stop viewing the log, type the interrupt character (usually Ctrl-C).

To stop the client, first discover the client's bundle ID using the osgi:list console command. For example:

karaf@root> list | grep customer-ws-client
[ 219] [Active     ] [            ] [Started] [   60] customer-ws-client (1.0.1)

You can then stop the client using the osgi:stop console command. For example:

karaf@root> stop 219

To shut down the container completely, enter the following console command:

karaf@root> shutdown -f
Comments powered by Disqus