下面是这段的配置方法:
#====================================================================
# Default AuthenticationManager is DODS
#
# WARNING: This and user/group manager must comply.
#--------------------------------------------------------------------
#
#AuthenticationManagerClassName=org.enhydra.shark.authentication.LDAPAuthenticationManager
AuthenticationManagerClassName=org.enhydra.shark.authentication.DODSAuthenticationManager
# The database used for Authentication when using DODS implementation
#DODSAuthenticationManager.DatabaseName=sharkdb
一个重要的情况被提及,如果你使用AuthenticationAPI的LDAP实现,那么你也必须使用UserGroupAPI的LDAP实现。
在默认情况下,shark使用基于DODS的数据库实现,并且可以转换到LDAP实现,你可以简单地注释掉配置文件中关于DODS的行,然后解除LDAP行上的注释并且编辑它的设置来转换二者。
设置CHACHEING实现
Shark通过cache实现的LRU来管理进程和资源对象。在默认情况下,shark被配置成使用如下的cache实现。这个时间在客户端上能够高速地被使用。
下面是配置该属性的配置文件片断:
#====================================================================
# Default cache is LRU
#
#--------------------------------------------------------------------
# Cache defaults
#
CacheManagerClassName=org.enhydra.shark.caching.LRUCacheMgr
# Default LRU cache sizes (LRU implementation default is 100 for each cache)
#LRUProcessCache.Size=100
#LRUResourceCache.Size=100
注意:如果你不设置任何实现(你可以简单地注释点上述行),shark将在没有任何缓存的条件下工作。