Results 1 to 2 of 2
  1. #1
    zenMarko is offline Member
    Join Date
    Nov 2008
    Rep Power

    Default Applet connecting to server

    I don't know very much about networking or applets. Basically, I need a way for the server to send information to the browser outside of a response to an HTTPrequest; I don't want to have to continually poll the server using AJAX.

    My question is: can an applet always open a socket to the host on which they were loaded? With s = new Socket( this.getCodeBase().getHost() ) , that is?

    Nothing else I have to do? No security problems or firewalls or anything to worry about?

    Any help is very much appreciated.

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    In general, an Applet talk to server from which it came with remarkably few issues.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

Similar Threads

  1. JSP Connecting to MS SQL SERVER 2000 using JDBC
    By hisouka in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 09-02-2008, 09:23 AM
  2. Connecting To SQL Server
    By rmaadil in forum JDBC
    Replies: 7
    Last Post: 08-20-2008, 05:53 PM
  3. Connecting database from Applet
    By Preethi in forum New To Java
    Replies: 5
    Last Post: 05-21-2008, 08:14 AM
  4. Connecting to a Web server
    By Java Tip in forum
    Replies: 0
    Last Post: 04-07-2008, 07:57 PM
  5. Connecting to DB from Applet
    By ibanez270dx in forum New To Java
    Replies: 1
    Last Post: 11-13-2007, 11:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts