# new register to communicate with Java from outside

**URL:** <https://techcommunity.softwareag.com/t/new-register-to-communicate-with-java-from-outside/59859>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [June 5, 2007, 5:33am UTC](https://techcommunity.softwareag.com/t/new-register-to-communicate-with-java-from-outside/59859 "2007-06-05T05:33:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul1](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@paul1](https://techcommunity.softwareag.com/u/paul1)\
**Post date:** [June 5, 2007, 5:33am UTC](https://techcommunity.softwareag.com/t/new-register-to-communicate-with-java-from-outside/59859/1 "2007-06-05T05:33:56Z")

</div>



---

<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:** [June 6, 2007, 12:42am UTC](https://techcommunity.softwareag.com/t/new-register-to-communicate-with-java-from-outside/59859/2 "2007-06-06T00:42:19Z")

</div>

There are samples in the install directory for EntireX (e.g C:\Program Files\Software AG\EntireX\Examples), including Java examples. The EntireX Communicator documentation explains the API’s involved under EntireX Developers Kit. You are mostly likely looking for the “RPC-based Components” and the “EntireX Java Wrapper”.

---

<div class="post-metadata">

**Author:** ![paul1](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@paul1](https://techcommunity.softwareag.com/u/paul1)\
**Post date:** [June 7, 2007, 1:06am UTC](https://techcommunity.softwareag.com/t/new-register-to-communicate-with-java-from-outside/59859/3 "2007-06-07T01:06:21Z")

</div>

Hi,  
where can I egt entirex.jar and samples if we don’t have a folder as C:\Program Files\Software AG\EntireX\Examples

thanks if you can reply earlier,

---

<div class="post-metadata">

**Author:** ![paul1](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@paul1](https://techcommunity.softwareag.com/u/paul1)\
**Post date:** [June 8, 2007, 12:28am UTC](https://techcommunity.softwareag.com/t/new-register-to-communicate-with-java-from-outside/59859/4 "2007-06-08T00:28:12Z")

</div>

Hi,  
Would be able to check below in my coding for RPC for request/reply?  
I wonder how to request/reply with external mutiple parameters Can I use  
setmessage and sendreceive here?

I am trying to request/reply witha java wrapper. however, I don’t have an enough experience to use like that.

thanks for your reply.

## Paul

public char findCatalogingBookmarc(String movexValues){

```
            hasCatalog ='Y';
// config section for Brokerservice
private Broker broker;
private BrokerService brokerService;
private static String sServer = "SRV1";
private Movex library; 
private Conversation conv; 
String brokerID = "IBAX4101_BTN:41972:TCP";
try{
 Broker broker = new Broker(brokerID,"ERXUSER");
 library = new Movex(broker); 
 library.setRPCUserId("ERXUSER");     
 library.setRPCPassword("PASSWORD");  
 library.setNaturalLogon(true);       
 	
BrokerService bService = 
                 new BrokerService(broker, Movex.DEFAULT_SERVER);
             conv = new Conversation(library); 
             library.setConversation(conv); 
	
//... code managing rpc communication ...  	

 BrokerMessage bRequest = new BrokerMessage();
 BrokerMessage bReply;
 broker.logon();
	
 bRequest.setMessage("50005900");
 bReply =bService.sendReceive(bRequest);
             broker.logoff();

  try {
      library.closeConversationCommit();
    }catch(BrokerException be) {
       System.out.println("exception:" + be);
    }

```

---

<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:** [June 8, 2007, 2:17am UTC](https://techcommunity.softwareag.com/t/new-register-to-communicate-with-java-from-outside/59859/5 "2007-06-08T02:17:57Z")

</div>

You will need an EntireX workstation installation to obtain the sample files and jar files.

Again, please read the documentation - the Java Wrapper API documentation should help you. Review the differences between an RPC service request and a Broker ACI (lower level API) message: for a Wrapper object, you will call the Wrapper methods (which turn into calls to the Natural subprograms), not the Broker ACI methods (such as sendReceive).

---

<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:** [June 8, 2007, 4:03am UTC](https://techcommunity.softwareag.com/t/new-register-to-communicate-with-java-from-outside/59859/6 "2007-06-08T04:03:41Z")

</div>

If you are new to EntireX, the EntireX Demo Zone might also be interesting to you. It contains short video demonstrations of how to deal with the EntireX Workbench 7.3.

Check it out as part of the EntireX Developer Community at [http://developer.softwareag.com:9080/TomCrossvision/xsltransform?content=home/main&style=xsl/main&newsFilter=entirex](http://developer.softwareag.com:9080/TomCrossvision/xsltransform?content=home/main&style=xsl/main&newsFilter=entirex)

In the menu on the left hand side you will find both:

- EntireX Demo Zone, as well as

- Documentation

Best regards,  
Juergen

---

<div class="post-metadata">

**Author:** ![paul1](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@paul1](https://techcommunity.softwareag.com/u/paul1)\
**Post date:** [June 9, 2007, 1:42am UTC](https://techcommunity.softwareag.com/t/new-register-to-communicate-with-java-from-outside/59859/7 "2007-06-09T01:42:07Z")

</div>

This is a good for whom trying to understand. Thank you so much.  
Now, I can get a server via java wrapper, however, i am getting alway same return code ‘y’ example even though must be return ‘N’ from callServer(); in java wrapper. In this case, how do I check what’s wrong with client program and wrapper.

thanks a lot,

---

<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:** [June 10, 2007, 3:30am UTC](https://techcommunity.softwareag.com/t/new-register-to-communicate-with-java-from-outside/59859/8 "2007-06-10T03:30:07Z")

</div>

Tracing services might help you. See the documentation under Administration:

[http://techcommunity.softwareag.com/ecosystem/documentation/crossvision/eli/adminWin/tracing.htm](http://techcommunity.softwareag.com/ecosystem/documentation/crossvision/eli/adminWin/tracing.htm)

---

<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:40pm UTC](https://techcommunity.softwareag.com/t/new-register-to-communicate-with-java-from-outside/59859/9 "2021-04-02T14:40:06Z")

</div>


