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.

Results 1 to 12 of 12

Thread: Connection mainframe server from java.

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Connection mainframe server from java.

    Please let me know if anyone knows how to connect mainframe server from java


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,434
    Thanks
    49
    Thanked 2,216 Times in 2,189 Posts

    Default Re: Connection mainframe server from java.

    What is a "mainframe server"?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Mar 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Connection mainframe server from java.

    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.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,434
    Thanks
    49
    Thanked 2,216 Times in 2,189 Posts

    Default Re: Connection mainframe server from java.

    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.

  5. #5
    Junior Member
    Join Date
    Mar 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Connection mainframe server from java.

    I have to access the CICS in mainframe. TCP/IP protocols.

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,434
    Thanks
    49
    Thanked 2,216 Times in 2,189 Posts

    Default Re: Connection mainframe server from java.

    Does the server use standard protocols like HTTP or FTP?
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member
    Join Date
    Mar 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Connection mainframe server from java.

    Yes Norm.. Its using standard protocol HTTP.

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,434
    Thanks
    49
    Thanked 2,216 Times in 2,189 Posts

    Default Re: Connection mainframe server from java.

    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.

  9. #9
    Junior Member
    Join Date
    Mar 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Connection mainframe server from java.

    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?

  10. #10
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,434
    Thanks
    49
    Thanked 2,216 Times in 2,189 Posts

    Default Re: Connection mainframe server from java.

    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.

  11. #11
    Junior Member
    Join Date
    Mar 2014
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Connection mainframe server from java.

    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.

  12. #12
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,434
    Thanks
    49
    Thanked 2,216 Times in 2,189 Posts

    Default Re: Connection mainframe server from java.

    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.

Similar Threads

  1. how connection java app to access database that in server
    By eng.hazem in forum JDBC & Databases
    Replies: 2
    Last Post: July 29th, 2013, 06:24 AM
  2. Connection String for Sql Server
    By manjula in forum JDBC & Databases
    Replies: 1
    Last Post: July 11th, 2012, 11:12 AM
  3. connection to a database on another computer(server)
    By myke in forum JDBC & Databases
    Replies: 12
    Last Post: May 31st, 2012, 03:09 AM
  4. Replies: 0
    Last Post: March 26th, 2011, 11:07 AM
  5. Replies: 0
    Last Post: February 24th, 2011, 05:31 AM