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: Disabling REST services~~ JVx REST services offer access to application functionality out-of-the-box. It also contains some administrative services which are not included in your application. If you won't use this services or won't use specific services, it's possible disable all or specific services. **You have following options** In your deployment descriptor (web.xml) use init parameters: <file xml> <!-- Admin service are not available in general --> <init-param> <param-name>adminservices.available</param-name> <param-value>false</param-value> </init-param> <!-- Admin service are available but only custom service registrations can be used. All standard admin services are disabled. --> <init-param> <param-name>adminservices.enabled</param-name> <param-value>false</param-value> </init-param> <!-- Admin service with given NAME is disabled. This requires that admin services are available. --> <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> 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>