DSB Management

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

Changes (19)

View Page History

{info}In the next sections we will refer to the DSB distribution folder with the _$DSB_HOME_ variable even if it is not set in the system environment.{info}
API

h1. API

The management API is available in the _dsb-kernel-wsapi_ module. It allows to manage business services, but also to manage the DSB kernel : router, registry, monitoring, ... By default, the management API is exposed as Web services at DSB startup on [http://localhost:7600/petals/ws]. The complete list of available service is provided by the getWebService operation on the DSBInformationService service available at [http://localhost:7600/petals/ws/DSBInformationService] (complete list also available at [http://localhost:7600/petals/ws/DSBInformationService/getWebServices]).

h1. {color:#492562}{*}Components{*}{color} Features

h2. Startup

h2. {color:#492562}{*}Components{*}{color}

h3. Startup


h2.

We assume that we do not need to deal with JBI components and let the Service Bus manage them. To achieve this, we introduced an artifact repository file implementation where JBI artefacts are stored on the Service Bus side. This artefact repository is available under _$DSB_HOME/artifacts/_ and is splited into 3 parts : components, sa and sl.

and if the SOAP and REST components are available in the components folder, they will be started automatically when the container starts (no more JBI lifecycle management for these components is needed).

h23. Configuration


h2.

We forked the standard Petals ESB components to be able to configure them more easily and to share information between the container and the components. This section introduces what type of configuration is possible for the DSB components. Especially, we introduced a new way to define ports : instead of having to modify the components themselves (the jbi.xml component) or to have to deal with some JMX calls which are not compliant with the easy approach we want to have, component ports can be configured in the _$DSB_HOME/conf/components.properties_ file like this :

{code}

h12. Web Services


h1.

The DSB can be managed from remote clients using the Web Service API detailed above. The initial goal of the Web service API is to hide the JBI layer which is not Internet-friendly (even if some JBI aspects are used and will be explained in this section). This section gives details on how to use the Web service client library.

h23. {color:#492562}{*}Deploy a JBI Service Assembly{*}{color}


h2.

A JBI Service Assembly (SA) can be uploaded to the DSB artefact repository (a folder in the default implementation as described earlier). Once the SA is uploaded, one can call the SA lifecycle operations on the uploaded SA.

A code sample is available at ([http://chamerling.org/2010/04/12/librairie-cliente-pour-petals-esb/])

h23. Bind and Expose Services


h2.

A more easy way to work with services is to let the DSB the responsability to configure itself in order to bind or expose services as it can be done with the help of JBI SAs. The default implementation of the DSB comes with a management API which is dedicated to that. By using this Web service API, you just use standard SOAP client or library to communicate with the Management layer of the DSB.

Some utilities based on top of the previously mentioned API are also available to preconfigure the DSB at configuration time. With their help you are able to define sets of services which will be automatically bound to the DSB when it starts.

h34. 'Design' Time


h3.

In order to predefine a set of services to bind at startup, a simple properties file located under _$DSB_HOME/conf/services2bind.cf{_}g is defined as:
{code}
In the previous configuration snippet, 

h34. Runtime


h4. SOAP-based Services
h3.


h5. SOAP-based Services


h4.

The DSB SOAP Component is in charge or binding external services to the bus and to expose DSB services as SOAP services. This can be done by using a collection of Web services embedded and provided by the DSB itself.