![]() |
|
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:
resource-config.xml located at <install_dir>\server\nodes\<node_name>\config.ressh. To add or delete a resource, use the commands described under the specific headings.root-server-mbean from the naming service by entering J2EEServerMBean serverMBean = ic.lookUp("root-server-mbean"); where ic refers to the Initial Context.ResourceServiceMBean resourceServiceMBean = serverMBean.getResourceService();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.
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:
com.pramati.jdbc.initvalidation.sql.com.pramati.jdbc.initvalidation.class.com.pramati.jdbc.dbretryintervalmseccom.pramati.jdbc.noofdbretrialsThe 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"/>
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 |