IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  new register to communicate with Java from outside

    Posted 06/05/07 01:34 AM
    new register to communicate with Java from outside
    #webMethods
    #Mainframe-Integration
    #EntireX


  • 2.  RE: new register to communicate with Java from outside

    Posted 06/05/07 08:42 PM

    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”.


    #Mainframe-Integration
    #EntireX
    #webMethods


  • 3.  RE: new register to communicate with Java from outside

    Posted 06/06/07 09:06 PM

    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,


    #Mainframe-Integration
    #webMethods
    #EntireX


  • 4.  RE: new register to communicate with Java from outside

    Posted 06/07/07 08:28 PM

    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);
    }
    

    #webMethods
    #EntireX
    #Mainframe-Integration


  • 5.  RE: new register to communicate with Java from outside

    Posted 06/07/07 10:18 PM

    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).


    #webMethods
    #Mainframe-Integration
    #EntireX


  • 6.  RE: new register to communicate with Java from outside

    Posted 06/08/07 12:04 AM

    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

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

    • EntireX Demo Zone, as well as
    • Documentation

    Best regards,
    Juergen


    #Mainframe-Integration
    #EntireX
    #webMethods


  • 7.  RE: new register to communicate with Java from outside

    Posted 06/08/07 09:42 PM

    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,


    #Mainframe-Integration
    #webMethods
    #EntireX


  • 8.  RE: new register to communicate with Java from outside

    Posted 06/09/07 11:30 PM