persistent connection in old jdk 1.1.8?

Posted on 2005-05-16
Last Modified: 2010-03-31
My idea is to have one server made in phyton and one client made in java.
is there any persistent connection code examples for the jdk 1.1.8?
That would be very cool!

so my main goal is when the client is connected.the client can post data whenever and the server can post data whenever.
Question by:thor918
    LVL 29

    Accepted Solution

    While not classically keep-alive, you could use URL connections ( ) which have been around since JDK 1.0, else you can use sockets ( and create your own connection.
    LVL 2

    Author Comment

    good.I have been looking for some examples on socketserver,that works in jdk 1.1.8
    I found one that seems to work. but that closes the socket once the data has been sent.I want to hold the connection open.
    Examples wanted :)
    LVL 2

    Author Comment

    works for me.but it don't work if I use the clientclass in another class.but I get

    <identifier> expected


    I use this in the other class
          Requester client = new Requester();

    changes :
    main method is removed
    public class is class
    run method is made public

    anyone with some bright idea?
    it compiles ok if I remove;
    I just don't understand why it dosent work!
    LVL 2

    Author Comment

    never mind that was a newbie mistake
    LVL 2

    Author Comment

    sorted out problems.sockets works greate :)

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now