|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerDataSourceImplementation
Bear in mind the following points when working with DataSources (whether custom or built-in) on the Smart GWT Server:
server.properties
attribute datasources.pool.enabled
is set, DataSource instances are
automatically cached in an in-memory pool.ds.xml
file) is read the first time the DataSource is requested; thereafter, we will only re-read the
configuration file if its last-changed timestamp changes. This scheme combines the performance benefits of caching
with the with the convenience of being able to change a .ds.xml
file and pick up the changes without
restarting the server.RPCManager.getDataSource
. If pooling is enabled, this is the only way to obtain a DataSource instance
with the guarantee that it will be returned to the pool at the end of request processing.DynamicDSGenerator
to provide DataSources to the framework dynamically:DataSource.fromXML()
APIs to construct your DataSources from an XML document or String of XML
textnew DataSource()
, as this will
introduce thread-safety issuesDataSource.fromXML()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |