# \#rxjava

**URL:** https://forum.canton.network/tag/rxjava/302.md

[Latest](https://forum.canton.network/latest.md) · [Categories](https://forum.canton.network/categories.md) · [Tags](https://forum.canton.network/tags.md)

---

## [Share contract Id in Multi-Party Signature design pattern with java bidings](https://forum.canton.network/t/share-contract-id-in-multi-party-signature-design-pattern-with-java-bidings/7250)

<div class="topic-metadata">

**Author:** [@Nunobrazz](https://forum.canton.network/u/Nunobrazz)\
**Replies:** 3\
**Last updated:** [June 6, 2024, 1:27pm UTC](https://forum.canton.network/t/share-contract-id-in-multi-party-signature-design-pattern-with-java-bidings/7250 "2024-06-06T13:27:35Z")

</div>

Hello. If you have several parties who have to sign a contract, for example in the multi-party signature design pattern, what is the best way for all of them to have access to the current contract and not to one already…

---

## [NullPointerException when using UserManagementClient](https://forum.canton.network/t/nullpointerexception-when-using-usermanagementclient/6780)

<div class="topic-metadata">

**Author:** [@huw](https://forum.canton.network/u/huw)\
**Replies:** 7\
**Last updated:** [August 4, 2023, 7:29am UTC](https://forum.canton.network/t/nullpointerexception-when-using-usermanagementclient/6780 "2023-08-04T07:29:31Z")

</div>

Hi there, I’m having some trouble when calling the rxjava UserManagementClient like this: ledgerClient.getUserManagementClient.createUser( new CreateUserRequest( new User(myUser), new User.Right.CanActAs(myPar…

---

## [Design of \`exerciseArchive\` in Java bindings](https://forum.canton.network/t/design-of-exercisearchive-in-java-bindings/6648)

<div class="topic-metadata">

**Author:** [@Tamas\_Kalcza](https://forum.canton.network/u/Tamas_Kalcza)\
**Replies:** 5\
**Last updated:** [July 18, 2023, 1:55pm UTC](https://forum.canton.network/t/design-of-exercisearchive-in-java-bindings/6648 "2023-07-18T13:55:26Z")

</div>

I wanted to create a generic code that given a contract ID from the generated codegen code returns the corresponding archive command. During this I have noticed that it seems to be extremely difficult (even considering u…

---

## [Java bindings example seems a little out of date](https://forum.canton.network/t/java-bindings-example-seems-a-little-out-of-date/6748)

<div class="topic-metadata">

**Author:** [@huw](https://forum.canton.network/u/huw)\
**Replies:** 1\
**Last updated:** [July 12, 2023, 7:57am UTC](https://forum.canton.network/t/java-bindings-example-seems-a-little-out-of-date/6748 "2023-07-12T07:57:07Z")

</div>

Hi, I can see there are some fairly new features in the java bindings now. For example, the method CommandClient#submitAndWaitForResult seems to give a more strongly typed way to submit commands to the ledger - which loo…

---

## [io.grpc.StatusRuntimeException: INVALID\_ARGUMENT: COMMAND\_PREPROCESSING\_FAILED: mismatching type](https://forum.canton.network/t/io-grpc-statusruntimeexception-invalid-argument-command-preprocessing-failed-mismatching-type/6694)

<div class="topic-metadata">

**Author:** [@Mr\_Mannoroth](https://forum.canton.network/u/Mr_Mannoroth)\
**Replies:** 2\
**Last updated:** [June 20, 2023, 11:23am UTC](https://forum.canton.network/t/io-grpc-statusruntimeexception-invalid-argument-command-preprocessing-failed-mismatching-type/6694 "2023-06-20T11:23:25Z")

</div>

I’m getting the following exception on submitting a submitAndWaitForTransaction command to my participant node: io.grpc.StatusRuntimeException: INVALID\_ARGUMENT: COMMAND\_PREPROCESSING\_FAILED(8,f85b23e7): mismatching typ…

---

## [Number of gRPC clients versus number of connections](https://forum.canton.network/t/number-of-grpc-clients-versus-number-of-connections/6667)

<div class="topic-metadata">

**Author:** [@Mr\_Mannoroth](https://forum.canton.network/u/Mr_Mannoroth)\
**Replies:** 1\
**Last updated:** [June 20, 2023, 9:56am UTC](https://forum.canton.network/t/number-of-grpc-clients-versus-number-of-connections/6667 "2023-06-20T09:56:40Z")

</div>

When creating gRPC connections from the Java client to the participant node, should we be using one single client and use this client for all API calls, or should we be creating multiple clients and share them across API…

---

## [getEventsByContractKey](https://forum.canton.network/t/geteventsbycontractkey/6518)

<div class="topic-metadata">

**Author:** [@Mr\_Mannoroth](https://forum.canton.network/u/Mr_Mannoroth)\
**Replies:** 3\
**Last updated:** [May 9, 2023, 5:38pm UTC](https://forum.canton.network/t/geteventsbycontractkey/6518 "2023-05-09T17:38:00Z")

</div>

Hello, I have 3 questions on EventQueryServiceGrpc.getEventsByContractKey - What is the purpose of the index field in EventQueryServiceOuterClass.GetEventsByContractKeyRequest.Builder.setRequestingParties? I don’t und…

---

## [\`submit\` vs \`submitAndWait\`](https://forum.canton.network/t/submit-vs-submitandwait/6112)

<div class="topic-metadata">

**Author:** [@Mr\_Mannoroth](https://forum.canton.network/u/Mr_Mannoroth)\
**Replies:** 5\
**Last updated:** [February 16, 2023, 5:25pm UTC](https://forum.canton.network/t/submit-vs-submitandwait/6112 "2023-02-16T17:25:50Z")

</div>

io.reactivex.Single\<com.google.protobuf.Empty\> submit​(CommandsSubmission submission) io.reactivex.Single\<com.google.protobuf.Empty\> submitAndWait​(CommandsSubmission submission) My understanding is submit on the…

---

## [submitAndWaitForResult - commands present twice?](https://forum.canton.network/t/submitandwaitforresult-commands-present-twice/5977)

<div class="topic-metadata">

**Author:** [@gaborh](https://forum.canton.network/u/gaborh)\
**Replies:** 1\
**Last updated:** [January 16, 2023, 11:39am UTC](https://forum.canton.network/t/submitandwaitforresult-commands-present-twice/5977 "2023-01-16T11:39:25Z")

</div>

In Daml’s Java SDK 2.5.0, there is the following function: \<U\> Single\<U\> submitAndWaitForResult(CommandsSubmission submission, @NonNull Update\<U\> update); My understanding is that there is a list of commands in the Com…

---

## [What actually happens on calling rxjava CommandSubmissionService::Submit?](https://forum.canton.network/t/what-actually-happens-on-calling-rxjava-commandsubmissionservice-submit/5234)

<div class="topic-metadata">

**Author:** [@huw](https://forum.canton.network/u/huw)\
**Replies:** 6\
**Last updated:** [September 28, 2022, 6:42am UTC](https://forum.canton.network/t/what-actually-happens-on-calling-rxjava-commandsubmissionservice-submit/5234 "2022-09-28T06:42:44Z")

</div>

I have noticed that there is a difference in the time it takes a call to the rxjava method CommandSubmissionService::Submit to complete – in library version 2.0.1 it appears to be completely non-blocking (returns almost…

---

## [How to expose transactions from the Java bindings through a blocking API?](https://forum.canton.network/t/how-to-expose-transactions-from-the-java-bindings-through-a-blocking-api/4981)

<div class="topic-metadata">

**Author:** [@stefanobaghino-da](https://forum.canton.network/u/stefanobaghino-da)\
**Replies:** 3\
**Last updated:** [July 27, 2022, 6:21pm UTC](https://forum.canton.network/t/how-to-expose-transactions-from-the-java-bindings-through-a-blocking-api/4981 "2022-07-27T18:21:19Z")

</div>

Suppose I want to expose transactions coming from the Java bindings (with the gRPC/RxJava back pressure bridge) through a pull-based interface (that I have no control over). Something along the lines of: @Override publi…
