generated from quarkiverse/quarkiverse-template
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate io.quarkiverse.cxf:quarkus-cxf-rt-transports-http-hc5, fix #…
- Loading branch information
Showing
7 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
docs/modules/ROOT/pages/user-guide/advanced-client-topics/async-client.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[[async-client]] | ||
= Asynchronous client | ||
|
||
== Synchronous vs. asynchronous | ||
|
||
Before {quarkus-cxf-project-name} 3.17.0, CXF clients based on `VertxHttpClientHTTPConduit` could only be called synchronously: | ||
|
||
[source,java] | ||
---- | ||
@CXFClient("hello") | ||
HelloService hello; | ||
String callHello() { | ||
// Synchronous CXF client call | ||
hello.hello("Joe"); | ||
} | ||
---- | ||
|
||
{quarkus-cxf-project-name} 3.17.0 introduces the asynchronous mode for `VertxHttpClientHTTPConduit`-based clients: | ||
|
||
[source,java] | ||
---- | ||
import io.smallrye.mutiny.Uni; | ||
@CXFClient("hello") | ||
HelloService hello; | ||
Uni<String> callHelloAsync() { | ||
return Uni.createFrom() | ||
// Asynchronous CXF client call returning java.util.concurrent.Future | ||
.future(hello.helloAsync("Joe")) | ||
.map(HelloResponse::getReturn); | ||
} | ||
---- | ||
|
||
This works much like with the existing `xref:reference/extensions/quarkus-cxf-rt-transports-http-hc5.adoc[Apache HttpClient 5 Async HTTP Transport]`. | ||
The main difference is that you do not need to add the `io.quarkiverse.cxf:quarkus-cxf-rt-transports-http-hc5` dependency to your application anymore. | ||
|
||
You still need to | ||
xref:reference/extensions/quarkus-cxf-rt-transports-http-hc5.adoc#extensions-quarkus-cxf-rt-transports-http-hc5-usage-generate-async-methods[generate the async methods] | ||
using the embedded `wsdl2java` tool. | ||
|
||
We plan to https://github.com/quarkiverse/quarkus-cxf/issues/1619[add a new documentation page] dedicated to this topic. | ||
|
||
We plan to deprecate `io.quarkiverse.cxf:quarkus-cxf-rt-transports-http-hc5` once the asynchronous mode of `VertxHttpClientHTTPConduit` passes some battle testing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
extensions/transports-http-hc5/runtime/src/main/doc/intro.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
Implement async SOAP Clients using Apache HttpComponents HttpClient 5. | ||
[IMPORTANT] | ||
==== | ||
This extension is deprecated since {quarkus-cxf-project-name} 3.19.0 and is scheduled for removal in 3.21.0. | ||
Use | ||
==== | ||
|
||
Implement async SOAP Clients using Apache HttpComponents HttpClient 5. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters