arrow_back history picture_as_pdf This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ~~NOTRANS~~ ~~Title: En-/Disable REST Services~~ JVx REST services offer access to application functionality out of the box. It also contains some administrative services that are not included in your application. If you won't use these services, or won't use specific services, it's possible disable all or specific services. The administration services are available per default. **You have following options:** In your deployment descriptor (web.xml), use init parameters: <file xml> <!-- Disables admin service feature in general --> <init-param> <param-name>adminservices.available</param-name> <param-value>false</param-value> </init-param> <!-- Disables all default admin services and uses only registered admin services --> <init-param> <param-name>adminservices.enabled</param-name> <param-value>false</param-value> </init-param> <!-- Disables a specific admin service by NAME. --> <init-param> <param-name>adminservice.NAME.enabled</param-name> <param-value>false</param-value> </init-param> <!-- Global setting: disable options service for storages. The storage service won't return metadata in this case. --> <init-param> <param-name>service.storageMetaData.enabled</param-name> <param-value>false</param-value> </init-param> </file> It's also possible to disable all default admin services and enable single services by name. In any case, admin services have to be available. If not available, it's not possible to en-/disable a service. The default service names are: * checkDB * changePassword * testAuthentication The //StorageService// itself has another option to configure REST services. It's possible to use a configuration object like this: <file java> dbs = new DBStorage(); dbs.setDBAccess(getDataSource()); dbs.setWritebackTable("ADRESSEN"); dbs.open(); //Additional configuration for REST StorageServiceConfig cfg = new StorageServiceConfig(); //Disable DELETE cfg.setOptionEnabled(Option.Delete, false); //Disable OPTIONS (= MetaData) cfg.setOptionEnabled(Option.MetaData, false); dbs.putObject(StorageServiceConfig.class.getName(), cfg); </file>