aspose file tools*
The moose likes I/O and Streams and the fly likes Communication between Java and Mainframe System Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Communication between Java and Mainframe System" Watch "Communication between Java and Mainframe System" New topic
Author

Communication between Java and Mainframe System

K.Suresh Kumar
Ranch Hand

Joined: Nov 21, 2007
Posts: 41
Hi ,
I am using Java Socket programming to communicate with Mainframe system. Just I am connecting the Mainframe system using Socket class in java. After that interacting the Mainframe system with java input and output stream. But I don't know how it is working ? . Can you please explain how it is working , how mainframe system accept my request (input stream) and how it is response (output stream) . Also can I use any other technology instead of socket programming. Please tell me . Thanks..,

Thanks and Regards,
SureshKumar K
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38726
    
  23
Too difficult for "beginning Java" Moving
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8893
    
    8

K.Suresh Kumar wrote:Can you please explain how it is working , how mainframe system accept my request (input stream) and how it is response (output stream) .


In general terms, it works in the same way your web browser interacts with the internet. The mainframe is running a program that accepts socket connections and can communicate according to a specified protocol, like a web server. Your application is like a web browser. It connects to the mainframe, sends commands and data and receives one or more responses, depending on the protocol. I would need to know more about your application and the protocol to delve deeper.

K.Suresh Kumar wrote:
Also can I use any other technology instead of socket programming. Please tell me . Thanks..,


It depends on what your mainframe supports. IBM has made great strides in keeping their mainframes relevant in the .net age. Current mainframes can run Linux in addition to standard mainframe OS's (z/OS and the like) and therefore can support any application Linux supports. Mainframes can also run familiar applications like WebSphere Application Server, DB2, and Oracle, so that opens up web services, JDBC, EJB's and RMI to name a few.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38726
    
  23
I think I was mistaken moving this thread. It wasn't in "beginning" in the first place. Sorry. If anybody thinks it ought to be moved back, that's all right by me.
K.Suresh Kumar
Ranch Hand

Joined: Nov 21, 2007
Posts: 41
Thanks Joe Ess for your kind information . Yes, My Mainframe system working like a web browser. Now I am look into my application I let you know more details soon. Also I asked second question as "can I use any other technology instead of socket programming." . I mean to say MQ Series or JMS or anything I can use instead of socket programming. If you any have idea on this please tell me.

Thanks,
SureshKumar K
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8893
    
    8

K.Suresh Kumar wrote: I mean to say MQ Series or JMS or anything I can use instead of socket programming. If you any have idea on this please tell me.


Again, it depends on what your mainframe supports. WebSphere Application Server can run on some mainframes and MQ Series can be deployed on Websphere.
K.Suresh Kumar
Ranch Hand

Joined: Nov 21, 2007
Posts: 41
Thanks Joe Ess. First I will analyze my application and the mainframe system after that I have any queries than I will ask. Thanks.

Thanks and Regards,
SureshKumar K
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Communication between Java and Mainframe System