org.ow2.jonas.samples.camel.example.cxf
Class ExampleCXF

java.lang.Object
  extended by org.ow2.jonas.samples.camel.example.cxf.ExampleCXF

public class ExampleCXF
extends java.lang.Object

A simple example on how to use the camel service on JOnAS 5.

Author:
Guillaume Renault

Constructor Summary
ExampleCXF()
           
 
Method Summary
 void setCamelService(org.ow2.jonas.samples.camel.service.api.ICamelService service)
          Set the service instance.
 void start()
          Start the example.
 void test()
          Test the route.
 void unsetCamelService(org.ow2.jonas.samples.camel.service.api.ICamelService service)
          Stop the context when the service or when the bundle is removed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleCXF

public ExampleCXF()
Method Detail

start

public void start()
           throws java.lang.Exception
Start the example.

Throws:
java.lang.Exception

test

public void test()
Test the route.


setCamelService

public void setCamelService(org.ow2.jonas.samples.camel.service.api.ICamelService service)
Set the service instance. Initialized by iPOJO.

Parameters:
service - the Camel service

unsetCamelService

public void unsetCamelService(org.ow2.jonas.samples.camel.service.api.ICamelService service)
                       throws java.lang.Exception
Stop the context when the service or when the bundle is removed.

Parameters:
service - the Camel service
Throws:
java.lang.Exception


Copyright © 2009 OW2 Consortium. All Rights Reserved.