GVDataSources

From GreenVulcano Wiki
Revision as of 15:50, 13 February 2012 by Anonymous (talk)
Jump to: navigation, search

Description

GVDataSources GreenVulcano® ESB element is the root of the jdbc datasource configuration.

VulCon Configuration

GVDataSources element is present in the Adapter view and used by GVAdapters.

The following table shows the GVDataSources element's attributes:

Attribute Type Description
type fixed This attribute must assume the value module.
name fixed This attribute must assume the value DATASOURCES.

Might contain one of the following elements:

mbean

The mbean element defines a JBoss MBean service. This includes the mbean class, attributes and dependencies.

The mbean Element is used by: depends, depends-list-element and GVDataSources.

The following table shows the mbean element's attributes:

Attribute Type Description
code required The code attributes gives the fully qualified name of the MBean implementation class.
name required The name attribute gives the JMX ObjectName string to use when registering the MBean.

This must be a unique and valid JMX name.

interface optional The optional interface attribute gives the full qualified name of the class uses to construct the management interface of the mbean.

In absence of it an interface with the name ending by MBean will be looked in the implementation class. When used this interface is defined explicitely.

Its subelements are:

constructor

The constructor element defines a non-default constructor to use when instantiating the mbean.

The constructor Element is used by: mbean.

Contains the subelemets: arg

arg

The arg element specifies the constructor arguments in the order of the ctor signature.

The following tables show the arg element's attributes:

Attribute Type Description
type optional The type attribute gives the type of the argument as defined in the ctor signature.

If not defined java.lang.String is assumed. The attribute's value can't be null.

value required The value attribute provides the string representation of the ctor argument.

It is converted from a string to type using Java PropertyEditor or a ctor taking a single string as its argument. The attribute's value can't be null.

xmbean

The xmbean element specifies a nested JBoss XMBean descriptor fragment.

Its supported content model is the same as the mbean element of the jboss_xmbean_1_0.dtd Ex: <xmbean> ... </xmbean>

The element value can't be null.

attribute

The attribute element specifies the initial value for a management attribute of the enclosing mbean.

Typically the value of the attribute element is the string representation of the attribute, but it can be an arbitrary xml fragment that is parsed by the mbean.

The following table shows the attribute element's attributes:

Attribute Type Description
name required The required name attribute gives the name of the attribute.

This is the name exposed by the mbean to the MBeanServer for the attribute. The attribute's value can't be null.

replace optional The optional replace attribute indicates whether references of the form ${x} in the attribute element content should be replaced with the corresponding System.getProperty(x) value.

The attribute's default value is: true.

trim optional The optional trim attribute specifies whether the attribute element content should be trimmed of whitespace.

The attribute's default value is: true.

attributeClass optional The attributeClass attribute specifies the type of object that should be created.

This is needed for non-concrete attribute types like interfaces and abstract classes. The attribute's value can't be null.

serialDataType optional The serialDataType defines how the content of the attribute element is interpreted by the ServiceConfigurator.

The possible values are:

  • text: the content is treated as the string representation of the attribute value. It will be mapped to the attribute using the

PropertyEditor registered for the attribute type.

  • javaBean: the content is a collection of property elements.

The attribute's default value is: text.