Please let me know if anyone knows how to connect mainframe server from java
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Please let me know if anyone knows how to connect mainframe server from java
What is a "mainframe server"?
If you don't understand my answer, don't ignore it, ask a question.
Thanks for your reply Norm. I would like to read a file from mainframe system. As you know that we are using jdbc driver "connection =DriverManager.getConnection(connectionURL, "system", "dinesh5499"); " to retrieve data from the oracle database. Similarly, how could I access a file from the mainframe system.
What kind of server does the mainframe have? What protocols does it use?
If you don't understand my answer, don't ignore it, ask a question.
I have to access the CICS in mainframe. TCP/IP protocols.
Does the server use standard protocols like HTTP or FTP?
If you don't understand my answer, don't ignore it, ask a question.
Yes Norm.. Its using standard protocol HTTP.
If it uses HTTP, then a browser can load a file from it, depending on the server.
Normally a browser loads an html file.
If you don't understand my answer, don't ignore it, ask a question.
I need the java coding to connect mainframe system. I have to take data from mainframe and display in the front end. Do I need to use any webservice?
I'm not sure I understand where the java program is going to execute and how you are going to use it.
Will the java program execute on the mainframe and you will connect to it via a browser and through the server that is running on the mainframe?
Can you connect to the server on the mainframe using a broswer? What is the problem with using a browser to send an HTTP GET to the server asking for the desired file?
If a browser can connect and read the file from the server, then you could write a program in java that sends the same type of HTTP GET for the file.
If you don't understand my answer, don't ignore it, ask a question.
Jdbc connectivity,
we use conn = DriverManager.getConnection("jdbcracle:thin:system/dinesh5499@localhost:1521/XE", "system", "dinesh5499"); to connect to the oracle database.
I understand, we can send HTTP GET request to access the server. What are the coding required to connect for mainframe perspective. Is it possible that java system communicate with Mainframe system without any intermediate. Do we need to use any SOAP request for that?
What coding we suppose to use to connect mainframe.
Wat are the API required.
Can you connect to the server on the mainframe using a broswer?
What hardware the server is on shouldn't make a difference if you are using the HTTP protocol.
The Apache project has some packages that make using HTTP easier.
Or you can use the classes in the java.net package like: HttpURLConnection
If you don't understand my answer, don't ignore it, ask a question.