DevPortal

How do I configure Resources?


Table of Contents


How do I configure Resources?

Pramati Server provides various resources to interact with databases, send mails, and encapsulate URLs. Datasource for the Server enables you to obtain pooled connections to a database. The resources provided by the Server are:

Resources can be configured on Server by using the:

In case there is an exception while creating a resource, a proper message is displayed for the same. To know more about the cause of the exception, read the log file that is generated at <install_dir>\server\nodes\<node_name>\logs.

How do I set System Properties in resource-config.xml?

Configuration properties for JDBC datasources are present under each individual datasource entry in the resource-config.xml. Some properties, however, were earlier set as system properties. The following system properties are now moved to the configuration file:

The datasource tag in the resource-config.xml has a child tag called connection-initialization, which can be used to provide the system properties.

<connection-initialization sql="..." class=".." db-retrials="8" db-retry-interval-millis="500"/>

Is there an Extension Directory Support?

The ext folder present in the server\lib directory works like the ext folder of <JAVA_HOME>\jre\lib directory. Any jar placed in this directory is picked at runtime. In case you forget to include a particular jar in the Server classpath and need it at runtime, place the jar in the ext directory.


© Pramati Technologies 2007 Runs on Pramati Server | Feedback | Legal