# passing Payload to Java Object Gateway

**URL:** <https://techcommunity.softwareag.com/t/passing-payload-to-java-object-gateway/58584>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Service-Orchestrator\
**Created:** [June 24, 2004, 6:03pm UTC](https://techcommunity.softwareag.com/t/passing-payload-to-java-object-gateway/58584 "2004-06-24T18:03:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudarshan](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Sudarshan](https://techcommunity.softwareag.com/u/Sudarshan)\
**Post date:** [June 24, 2004, 6:03pm UTC](https://techcommunity.softwareag.com/t/passing-payload-to-java-object-gateway/58584/1 "2004-06-24T18:03:16Z")

</div>

How do I pass my payload itself into a Java method? In the Java method I am trying to run an Tamino XQuery which takes will take the payload passed to it and update it in Tamino.

---

<div class="post-metadata">

**Author:** ![Matthew](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Matthew](https://techcommunity.softwareag.com/u/Matthew)\
**Post date:** [June 24, 2004, 6:45pm UTC](https://techcommunity.softwareag.com/t/passing-payload-to-java-object-gateway/58584/2 "2004-06-24T18:45:19Z")

</div>

Hi India,  
  
To pass a payload to your class you need to have another Java Object Gateway call before your class call where you select massage as the xbd.object.function and getContent as the xbd.object.action. The value of the property xbd.object.content is then the name of the newly created ByteArray which you can then use as an input to your class.  
Regards,  
  
- Matthew G.

---

<div class="post-metadata">

**Author:** ![Sudarshan](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Sudarshan](https://techcommunity.softwareag.com/u/Sudarshan)\
**Post date:** [June 24, 2004, 7:45pm UTC](https://techcommunity.softwareag.com/t/passing-payload-to-java-object-gateway/58584/3 "2004-06-24T19:45:53Z")

</div>

My Java class now accept byte as input.I tried printing this byte in a Mediator property but it didn’t appear.  
  
Can you show me the step for the last call, I mean the one where the ByteArray is being passed to the class ?If possible,the intermediate step will also be helpful to me.

---

<div class="post-metadata">

**Author:** ![Matthew](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Matthew](https://techcommunity.softwareag.com/u/Matthew)\
**Post date:** [June 24, 2004, 8:59pm UTC](https://techcommunity.softwareag.com/t/passing-payload-to-java-object-gateway/58584/4 "2004-06-24T20:59:13Z")

</div>

Hi India,  
  
Please take a look in the topic “Developing Component Extension” at the entries from 17.6.04 from myself or Jason. I posted a description of how to do this and Jason posted an actual sequence he has implemented.  
Regards,  
  
- Matthew G.

---

<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:39pm UTC](https://techcommunity.softwareag.com/t/passing-payload-to-java-object-gateway/58584/5 "2021-04-02T14:39:20Z")

</div>


