commit | b2aa09212fd1676177fdfe17e7f64b7b7d94451b | [log] [tgz] |
---|---|---|
author | Tim Ward <timothyjward@apache.org> | Tue Jul 27 14:57:49 2021 +0100 |
committer | Tim Ward <timothyjward@apache.org> | Tue Jul 27 14:57:49 2021 +0100 |
tree | 4c32fa366cb8bac9182909728db848ec71425307 | |
parent | 4d32beca37857a5914e44ea85e4d25fd9de25647 [diff] |
Async invocation performance improvements Despite having an asynchronous option, the default CXF client is purely synchronous. Furthermore, the more advanced CXF clients are still synchronous if a custom SSLContext is used. Finally, even when asynchronous, all of the filters, interceptors, readers and writers are run on the calling thread. Performance is better with a simpler implementation which makes use of the PromiseFactory#submit() method and a SyncInvoker. Signed-off-by: Tim Ward <timothyjward@apache.org>
Aries JAX-RS Whiteboard is the reference implementation of the OSGi JAX-RS Services Whiteboard 1.0.
The whiteboard is configured using configuration admin.
PID | Purpose |
---|---|
org.apache.aries.jax.rs.whiteboard.default | Default JAX-RS Whiteboard instance |
org.apache.aries.jax.rs.whiteboard | Factory PID for creating additional JAX-RS Whiteboard instances |
Property | Default | Description |
---|---|---|
enabled | true | Enable or disable the whiteboard instance |
default.application.base | / | Base for default application |
application.base.prefix | "" | Prefix for application base |
osgi.http.whiteboard.target | (osgi.http.endpoint=*) | Select the http whiteboard service if there are several |
osgi.http.whiteboard.context.select | new context per application | Select the http whiteboard context to be used |
servlet.init.hide-service-list-page | true | Hide the CXF service list |
replace.loopback.address.with.localhost | false | Replace loopback addresses by localhost (e.g. by UriBuilder) |
application.ready.service.filter | A service that must be present in order for applications to get started |
properties existing in the application service, as those in the whiteboard configuration, are used when the servlet contexts and servlets are registered.
Proprietary Property | Default | Description |
---|---|---|
org.apache.aries.jax.rs.whiteboard.application.scoped | false | Marks a resource prototype service as application scoped |
The integrations
folder contains OSGi enabled integrations for a variety of useful libraries that you might want to use with JAX-RS. In many cases these are just adding OSGi lifecycle and configuration to existing JAX-RS enabled libraries.
Execute the maven tasks mvn clean install
.
The file jax-rs.example/target/aries-jaxrs-whiteboard-example.jar
should have been created.
Execute the following command:
java -jar jax-rs.example/target/aries-jaxrs-whiteboard-example.jar
then open a browser to http://localhost:8080/{name}
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.