vertx / io.vertx.rxjava.ext.stomp / StompClientConnection / beginTX

# beginTX

`open fun beginTX(id: String, receiptHandler: Handler<Frame>): StompClientConnection`

Begins a transaction.

### Parameters

`id` - the transaction id, must not be `null`

`receiptHandler` - the handler invoked when the `RECEIPT` frame associated with the transaction begin has been processed by the server. The handler receives the sent frame (`BEGIN`).

Return
the current io.vertx.rxjava.ext.stomp.StompClientConnection

`open fun beginTX(id: String): StompClientConnection`

Begins a transaction.

### Parameters

`id` - the transaction id, must not be `null`

Return
the current io.vertx.rxjava.ext.stomp.StompClientConnection

`open fun beginTX(id: String, headers: MutableMap<String, String>): StompClientConnection`

Begins a transaction.

### Parameters

`id` - the transaction id, must not be `null`

`headers` - additional headers to send to the server. The `transaction` header is replaced by the value passed in the @{code id} parameter

Return
the current io.vertx.rxjava.ext.stomp.StompClientConnection

`open fun beginTX(id: String, headers: MutableMap<String, String>, receiptHandler: Handler<Frame>): StompClientConnection`

Begins a transaction.

### Parameters

`id` - the transaction id, must not be `null`

`headers` - additional headers to send to the server. The `transaction` header is replaced by the value passed in the @{code id} parameter

`receiptHandler` - the handler invoked when the `RECEIPT` frame associated with the transaction begin has been processed by the server. The handler receives the sent frame (`BEGIN`).

Return
the current io.vertx.rxjava.ext.stomp.StompClientConnection