Previous Topic

Next Topic

Book Contents

Book Index

System Properties

System Property

Default Value

Description

mbs.webservices.rest.publisher.lazy.load.filter

N/A

Filter for services to be loaded lazy, i.e. check service objectClass for REST annotations, not the service instance class. It is not a good idea to set the filter to match all services – via "(objectClass=*)", because some services like those, which implement interfaces from the javax.ws.rs.* packages, have the annotations in their service class. A good default value is "(!(objectClass=javax.ws.rs*))". To assert that the filter correctly covers all services, use the mbs.webservices.rest.publisher.lazy.load.assert property, described below.

mbs.webservices.rest.publisher.lazy.load.assert

false

This property can be used to assert that the lazy load filter correctly excludes services which can not be checked by objectClass only. When set to true, the publisher will log warning for every service that has REST provider annotations in its instance class, but not in its objectClass. Such services can be excluded in the lazy load filter.

This property should be set to true only when testing the filter, as it forces loading of all services.

mbs.webservices.rest.errors.includeStacktrace

false

This property controls whether the stacktrace field should be included inside the REST error responses. To include it set the property to true. For examples refer to Error Details in REST Responses.