Results 1 to 5 of 5
  1. #1
    mkarthik90 is offline Member
    Join Date
    Feb 2012
    Posts
    62
    Rep Power
    0

    Default Push Based Mechanism

    Is there any method or API available in Java for pushing the data from the server without request being passed from the client.
    For example if any updation made at the database it needs to be passed to the client without a request frm the client. (snooze)

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default Re: Push Based Mechanism

    How will the server get the client's IP address?
    How will the client know that it has data to read if it doesn't request the data?

    You could have the client open a ServerSocket and wait on that for a connection from the server.

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default Re: Push Based Mechanism

    Cross posted at Push Based Mechanism

  4. #4
    mkarthik90 is offline Member
    Join Date
    Feb 2012
    Posts
    62
    Rep Power
    0

    Default Re: Push Based Mechanism

    i thought of using the DWR - Easy Ajax for JAVA
    and when the data is changed in the database triggers can be generated which in turn calls the servlet and i am not sure how to push the data from server to client. I am just a beginner in java please help me out.

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default Re: Push Based Mechanism

    Is there an open connection between the server and the client? Has the client already connected to the server?
    If not, how can the server connect to the client?

Similar Threads

  1. Reflection Mechanism .
    By AnanthNag.Kundanala in forum New To Java
    Replies: 1
    Last Post: 06-02-2011, 08:48 AM
  2. A little push using Semaphones
    By kendel in forum New To Java
    Replies: 0
    Last Post: 03-08-2011, 02:23 PM
  3. Stack (push/pop/top)
    By sehudson in forum New To Java
    Replies: 1
    Last Post: 03-08-2011, 02:40 AM
  4. Autodeleting mechanism
    By kate88 in forum Advanced Java
    Replies: 2
    Last Post: 01-31-2011, 03:46 AM
  5. XML Based theming mechanism
    By Y. Progammer in forum New To Java
    Replies: 0
    Last Post: 02-27-2010, 07:16 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
  •