On 10/11/14 16:56, Benson Margulies wrote:
On Mon, Nov 10, 2014 at 11:44 AM, Sergey Beryozkin <[email protected]> wrote:
Hi
On 10/11/14 14:43, Benson Margulies wrote:
I want to use the JAX-RS client and set a bus-level property, and
other things in process may be doing their own stuff. So I'd like to
create a specific bus and use it. Is this possible?
Perhaps one option is to set a default bus in scope for the invocation,
another one: we can pass some properties via 2.0 Client interface, may be
pass a Bus instance as a property and then internally it will be picked up ?
Will the JAX-RS API use the thread default bus? If so, I can take your
first suggestion.
Yes, I just checked...
The second sounds like the right thing for the medium term.
The only concern here is that we'd use a standard API to pass the
properties that can only make sense in CXF, so I guess the former
approach would be fine.
You could also tell me how to push a value of
AsyncHTTPConduit.USE_ASYNC through a property :-).
I believe you can set a bus property or use CXF ClientConfiguration
getRequestContext() and set a property there
Cheers, Sergey
Sergey