View Source

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}[|https://svn.petalslink.com/svnroot/trunk/research/commons/dsb/samples]
h2. Create a new kernel


h2. Create the interface


h2. Implement your service


h2. Create your custom distribution


h2. Add your service to the distribution

h1. Packaging your Service Bus