# Transaction management within a Natural RPC EntireX client

**URL:** <https://techcommunity.softwareag.com/t/transaction-management-within-a-natural-rpc-entirex-client/74966>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [July 5, 2007, 6:28pm UTC](https://techcommunity.softwareag.com/t/transaction-management-within-a-natural-rpc-entirex-client/74966 "2007-07-05T18:28:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luigi](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@Luigi](https://techcommunity.softwareag.com/u/Luigi)\
**Post date:** [July 5, 2007, 6:28pm UTC](https://techcommunity.softwareag.com/t/transaction-management-within-a-natural-rpc-entirex-client/74966/1 "2007-07-05T18:28:09Z")

</div>

Hy,  
I am developing a single RPC client written in Natural on mainframe that issue more calls to a simple RPC server written in Java on Unix system (the java implementation write the data on Oracle 😃 ).  
I want to take the different calls in one single transaction and controlling it on the RPC Natural client.  
It is possible ?  
Do I have to use the Conversation explictly in the RPC Natural client code ?  
How I can code it ?  
Thank you for the answer.  
Regards.  
Luigi

---

<div class="post-metadata">

**Author:** ![Finn\_the\_Dane1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/finn_the_dane1/32/132_2.png) [@Finn\_the\_Dane1](https://techcommunity.softwareag.com/u/Finn_the_Dane1)\
**Post date:** [July 6, 2007, 4:48pm UTC](https://techcommunity.softwareag.com/t/transaction-management-within-a-natural-rpc-entirex-client/74966/2 "2007-07-06T16:48:36Z")

</div>

Hi Luigi  
Try to have a look at the SYSEXT routine USR2032N to control the commit from the natural environment.

Finn

---

<div class="post-metadata">

**Author:** ![Luigi](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@Luigi](https://techcommunity.softwareag.com/u/Luigi)\
**Post date:** [July 6, 2007, 5:06pm UTC](https://techcommunity.softwareag.com/t/transaction-management-within-a-natural-rpc-entirex-client/74966/3 "2007-07-06T17:06:08Z")

</div>

Finn,  
Yes I have already tried the USR2032N routine but I cannot understand where in Java code I can receive the conversation informations.  
I also tried with the server custom class (defined through the entirex.server.customclass property) which implement the ServerImplementation Interface which define a method called closeConversation but with no success (I didn’t see any call to this method).  
My impression is that in Natural environment it exist the possibility to manage the conversion but in the Java RPC server the classes structure are not prepared to do the job.  
Am I wrong ?  
Regards.  
Luigi

---

<div class="post-metadata">

**Author:** ![Finn\_the\_Dane1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/finn_the_dane1/32/132_2.png) [@Finn\_the\_Dane1](https://techcommunity.softwareag.com/u/Finn_the_Dane1)\
**Post date:** [July 6, 2007, 5:34pm UTC](https://techcommunity.softwareag.com/t/transaction-management-within-a-natural-rpc-entirex-client/74966/4 "2007-07-06T17:34:39Z")

</div>

Oops you’re right - I have only used the conversational RPC against a Natural RPC-server, where this is pretty straight forward.

I just revisited the natural documentation and as far as I can see:

1. Use the natural statement OPEN CONVERSATION  
which will bind your natural session to one single Java-RPC server.
2. Issue the different calls to that update
3. make sure the last call calls a mathod that does the COMMIT in the java env.
4. Then use the CLOSE CONVERSATION stament in natural to release the Java-RPC-server instance.

Finn  
PS Any of the experts who have actuall tried this please correct me 😉

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [July 19, 2007, 8:41pm UTC](https://techcommunity.softwareag.com/t/transaction-management-within-a-natural-rpc-entirex-client/74966/5 "2007-07-19T20:41:31Z")

</div>

In case your Java Server implementation class inherits from ServerImplementation it will get full control over the conversation handling. See [http://techcommunity.softwareag.com/ecosystem/documentation/crossvision/eli/aci\_java/com/softwareag/entirex/aci/ServerImplementation.html](http://techcommunity.softwareag.com/ecosystem/documentation/crossvision/eli/aci_java/com/softwareag/entirex/aci/ServerImplementation.html) for details.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:48pm UTC](https://techcommunity.softwareag.com/t/transaction-management-within-a-natural-rpc-entirex-client/74966/6 "2021-04-02T14:48:31Z")

</div>


