# Java wrapper (newbie question)

**URL:** <https://techcommunity.softwareag.com/t/java-wrapper-newbie-question/59064>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [December 8, 2004, 11:50pm UTC](https://techcommunity.softwareag.com/t/java-wrapper-newbie-question/59064 "2004-12-08T23:50:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Melby](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@David\_Melby](https://techcommunity.softwareag.com/u/David_Melby)\
**Post date:** [December 8, 2004, 11:50pm UTC](https://techcommunity.softwareag.com/t/java-wrapper-newbie-question/59064/1 "2004-12-08T23:50:55Z")

</div>

I am really new to this EntireX stuff, so I’ll see if I can put together my question.   
I have IDL files created for me that I am running through the workbench. Some of the IDL files have the in/outs defined at the field level and some have the in/outs defined at the group level. I am able to use the field level in/outs because each field has gets and/or sets. How do I access the fields in Java when the in/outs have been defined at the group level?  
  
[This message was edited by dmelby on 08 Dec 2004 at 18:41.]

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [December 9, 2004, 10:27pm UTC](https://techcommunity.softwareag.com/t/java-wrapper-newbie-question/59064/2 "2004-12-09T22:27:09Z")

</div>

Enclosed is a JSP page that uses a structure array and its corresponding IDL.  
  
Douglas Kelly,  
Principal Consultant  
Software AG, Inc  
Sacramento, California  
[GetName.jsp](https://techcommunity.softwareag.com/uploads/short-url/js18HO7EefZ2w2WUmsFtkNJOaee.jsp) (2.79 KB)

---

<div class="post-metadata">

**Author:** ![David\_Melby](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@David\_Melby](https://techcommunity.softwareag.com/u/David_Melby)\
**Post date:** [December 10, 2004, 10:51pm UTC](https://techcommunity.softwareag.com/t/java-wrapper-newbie-question/59064/3 "2004-12-10T22:51:44Z")

</div>

Since I’m not quite to jsp yet, is there an example using java alone?

---

<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:** [December 16, 2004, 8:44pm UTC](https://techcommunity.softwareag.com/t/java-wrapper-newbie-question/59064/4 "2004-12-16T20:44:19Z")

</div>

Here is a simple example. IDL file:

```auto
library 'EXAMPLE' is
  program 'GP' is
    define data parameter
      1 Group In Out
        2 G1 (AV) 	
        2 G2 (I4) 	
    end-define

Code to call the remote program:
  Example e = new Example(broker, "RPC/SRV1/CALLNAT");
  Example.GpGroup gr = e. new GpGroup();
  gr.g1 = "string";
  gr.g2 = 12;
  e.setGpGroup(gr);
  e.gp();
  gr = e.getGpGroup();
```

Hope this helps.

Kind regards,  
Rolf

---

<div class="post-metadata">

**Author:** ![David\_Melby](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@David\_Melby](https://techcommunity.softwareag.com/u/David_Melby)\
**Post date:** [December 17, 2004, 1:41am UTC](https://techcommunity.softwareag.com/t/java-wrapper-newbie-question/59064/5 "2004-12-17T01:41:37Z")

</div>

The second example was perfect!! Thanks for the help.

---

<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/java-wrapper-newbie-question/59064/6 "2021-04-02T14:39:38Z")

</div>

Closed on April 2, 2021, 2:39pm UTC


