Extending the DSB

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View Page History
Even if the DSB already extends the Petals ESB, you can use it and extend it to add some specific features. Extending means that you may want to add some custom core services to the Service Bus. For example, add a transport layer, use your own registry implementation, expose a service as Web service, ...



h1. *Adding Core Services*

If you want to add your own services, the best way to follow is to create your own 'kernel' which is extending the DSB kernel. Since we are using the Fractal component model in Petals ESB/DSB, you must also use it for your service.

To illustrate this chapter, let's add a simple and powerful service : The HelloWorld Service\!

{info}The source code for this illustration is available under the DSB samples folder in SVN at [https://svn.petalslink.com/svnroot/trunk/research/commons/dsb/samples]{info}

h2. Create a new kernel

{code}
mvn archetype:generate
{code}
Use the dsb-kernel as dependency in your new project POM:

*TODO*


h2. Create the interface

Let's create a new project for the API definition :

{code}
mvn archetype:generate
{code}

h2. Implement your service


h2. Create your custom distribution


h2. Add your service to the distribution

h1. Packaging your Service Bus