How Client interact with Server in regular interval

Hi friends,'
I want to develop a chat server where the user should sent the request to server in background(as server can not sent response unless the request appears).So on regular request from the Client the server check the updation in database and sent the correspong message to user.
How can i do this where the Client should interact with server in regular interval?
Is there any other way to accomplish this ,any reference guide /tutorial to develop this ?
Regards,
Sachin Warang.

You could add an <meta http-equiv="refresh" content="5;http://yourhost/context/servlet/"> to the HTML which will refresh the page every 5 seconds (change the 5 to 10 for every 10 seconds, etc.). The other way is to set up a JavaScript timer and use an XmlHttpRequest to make an asynchronous call to the server and update the HTML dynamically (using DOM) when a response is received (AJAX). Lastly, you could implement the client as an Applet, which gives you a much richer feature set and is a lot cleaner (having half of your app in JavaScript/DHTML is kind of messy).
There are some vendors, such as IceSoft (http://www.icesoft.com/) producing JSF components that do the AJAX stuff transparently, so you just code a normal JSF app using their components and wire up to bean action methods where you need to.
- Jesse

Similar Messages

  • How Client Browser Understand Server response

    Hi Experts,
    Iam new to java advance Technology. I hava a simple doubt, that "How Client Browser Understand Server response".
    suppose if u open multiple Browsers and u typing same URL in all browser window(www.rediffmail.com). The server will generate response for requested resources. I dont no how the response will received by client browser without any conflit.
    I need to know, whether the browser attach any ID to requested URL (or) any other machanism which helps the identification.
    plz reply with example
    Thank u

    Hi praks_it,
    "How Client Browser Understand Server response".
    I dont no how the response will received by client browser without any conflit.
    I need to know, whether the browser attach any ID to requested URL (or) any other machanism which helps the identification.
    The answers to all the above of ur questions is the HTTP (Hyper Text Transfer Protocol).
    It is a mechanism developed and documented by the W3C (World Wide Web Consortium) which specifies all needs for internet and browsers.
    Check out the following links and u'll gain more on the subject :
    1) http://www.google.co.in/search?hl=en&lr=&oi=defmore&q=define:HTTP
    2) http://www.w3.org/Protocols/rfc2616/rfc2616.html (recommended).
    Hope this helps.
    Cheers !!
    Sherbir

  • I am having much trouble with the new reminders in IOS7 and how it interacts with Outlook Exchange. Many features lost in the new version.

    When I downloaded IOS7, I found that the reminders/task app and how it interacts with Outlook Exchange is much more difficult to use. Some of the issues that I am having are...
    1. Trying to edit my task on my phone is not possible, if the notes are lengthy. When you click on the text to edit data near the top, it will scroll to the bottom and not allow you to edit the text because you cant see it.
    2. Now all of my task are in one long list. I can not move from day to day like we could in previous version IOS6
    3. When I do edit a short task reminder and click done, it crashes and completly goes away. It does save the edit though
    4. You can only add task at the bottom of each days reminders. This is very inconvient and much more difficult than IOS6
    5. There is a major delay or latency when interacting inside of reminders in this version. Much more than IOS6. It is very unstable and quirky.
    I have never seen Apple take a step back with a product until now. I am a huge Apple fan and always will be, so I am hoping they make enhancements to fix these issue. It is a big time prodcutivity killer.
    Thanks for any and all help you can give.
    Troy Meachum

    Some power supplies or designed so that if there is a short or overload they shut them selfs off and some will not turn back on. Some have a relay that will click back on and work, some you have to  cycle the power switch. Those that won't come back on will have to be replaced. I'm not saying that yours is that type as I have no way of telling. But if you have a friend who will loan you a good power supply you might try it. As someone else said just turning off the power will not darn all the power from some motherboards. To test this turn off your power supply than turn on the computer with the start botton. Mine will flash the lights and fans will start to spin than die. So every time you turn off computer to work on it. After turning off PSU hit the start botton to drian any power left in it before working on it. Also do this after unplugging it just to make sure.

  • How to interact with database?

    Hi,
    I am exploring sampleportal application in Weblogic Portal8.1 SP4. There in login portlet they are using login.jsp file which uses examples.login.DirectorBacking class for login form authentication. DirectorBacking class uses default com.bea.p13n.security.Authentication class’s authenticate method for authentication. I could not understand the basic functionality of Authentication class as how it interacts with the database.
         Can we use simple JDBC for the login authentication in login.jsp ?

    U can define several authentication realms - which could be RDBMS, LDAP etc.
    Does that answer your question?

  • Learning How to Interact With Jdeveloper

    How can i learn How to Interact With Jdeveloper ?

    start with this.
    http://www.oracle.com/technology/obe/obe11jdev/ps1/ria_application/developriaapplication_long.htm

  • HOW to Interact with Oracle HRMS applications from BPEL..

    Hi friends...
    Well...i just wanted to know HOW easy is it to interact with an Oracle HRMS application from within a BPEL process...
    [Say, my BPEL process has some approvals from Finance Dept.., but i need to contact some application like Oracle Payroll, for some data...]
    I think we would have to use some Application Adapter Service for this..but not sure..!
    Would be great if anyone could refer me to some links or guide me in this regard...
    Thanks...

    Hi,
         You can read the data using "Middlware Tools" like XI,Business Connector,Mercator,Webmethods
          and using DB-Link.
          If you want Read the data using ABAB coding, you need to use "Native SQL" Stament.
         For XI and other Middlware , you need configure so many steps,(RFC defination,PORT,Partner)
         Required. 
         Through ABAP Program :
         Befor creating program , You need to find out "Oracle Server Name and Other details.
          Please use below code as your reference.
    Open a native SQL connection.
    EXEC SQL.
    connect to 'ONECD'
    ENDEXEC.
    Retrieve information from the BVER tables.
    EXEC SQL PERFORMING read_dental.
    select emp_ssn_num, emp_fname, emp_lname,
    to_char(start_date, 'YYYYMMDD') as start_date,
    rec_type,
    to_char(eff_date, 'YYYYMMDD') as eff_date,
    vendor_plan_id
    into :dental
    from opr$8oc.BVER_CURR_DENTAL_MASTER
    ENDEXEC.
    EXEC SQL PERFORMING read_medical.
    select emp_ssn_num, emp_fname, emp_lname, rec_type,
    to_char(start_date, 'YYYYMMDD') as start_date,
    to_char(eff_date, 'YYYYMMDD') as eff_date,
    network_code, pcp_number, patient_flag,
    vendor_plan_id,
    to_char(network_eff_date, 'YYYYMMDD') as
    network_eff_date,
    to_char(pha_eff_date, 'YYYYMMDD') as
    pha_eff_date
    into :medical
    from opr$8oc.BVER_CURR_MEDICAL_MASTER
    ENDEXEC.
    Disconnect from the native SQL connection.
    EXEC SQL.
    DISCONNECT 'ONECD'
    ENDEXEC.
    The system log has messages like 'Work process is in reconnect status' and 'Work process has left reconnect status' after the ORA-02396 message. And I specifically do a disconnect at the end and a connect at the beginning, but it looks like it is trying to do a reconnect?
    Thanks,
    Pugazhenthi.P
    Satyam computer Services Ltd.

  • How to interact with external database in CQ5

    Hi,
    I need to interact with external database like SQL or Oracle to store some/fetch some data in CQ5. Can someone pls provide some help regarding the same. I guess I need to do it through JDBC. Please guide me step by step how to do this.
    Thanks

    Hi,
    Bellow you find some references to the documentation related to CQ and DB configuration and developments:
    http://dev.day.com/docs/en/cq/current/developing/jdbc.html
    https://helpx.adobe.com/cq/kb/HowToConfigureSlingDatasource.html
    Regards,
    kasq

  • How to Interact with interactive adobe form in sap

    Hi All,
    I created a Interactive adobe form i can interact with this form when i click on preview PDF tab in ADS, But when i executed that form i am unable to interact. when i am executing i am using output device as LOCL and clicking on print preview.Can Any Help me how to configure output devices so that i can interact with form when i click on print preview.
    Regards,
    Ashok.
    Edited by: ashok459 on Nov 23, 2011 1:10 PM

    Hi,
    In the PDF layout side set the following properties.
       Edit-----> Form Properties    under Defaults tab set the set the PDF Render Format to 'Dynamic XML Form'
    Under Preview tab set the Prview Adobe XML Form as 'Dynamic XML Form' .
    Hope this helps,
    Murthy

  • Simply setup client features with server installed in advanced mode...

    Hi,
    If I setup my server in standard "mode" I see that Leopard clients discover my server automatically and the server try to set all clients fatures (Mail accounts, Ical server, etc.).
    There is a way to activate this useful fature ALSO with a server installed in "advanced" mode?
    My server need to be installed in advanced mode because it's an open directory master with a DNS that serve all my lan.
    Thanks in advance...

    Hi Kranthi_06,
    According to your description, you have an environment with reporting services installed, the info given by the client they are using reportingservices with sharepoint integrated mode. In SSMS, you can see two databases with names reportserver$DEN2010 and
    reportserver$DEN2010tempdb.
    In Native Mode, in the SQL Server Installation Wizard, if we select Install and configure option, the ReportServer database will be created automatically through Setup. If we choose the Install only option, we must use the Reporting Services Configuration
    Manager to create the database manually. By default, the database format is ReportServer and ReportServerTempDB. In SharePoint Mode, we need to create at least one Reporting Services service application by using SharePoint Central Administration or Reporting
    Services PowerShell cmdlets, then three databases are created for each Reporting Services service application and the database names by default include a guid that represents the service application. The following are example names of the three SharePoint
    mode databases:
    ReportingService_90a9f37075544f22953c4a62e4a9f370
    ReportingService_90a9f37075544f22953c4a62e4a9f370TempDB
    ReportingService_90a9f37075544f22953c4a62e4a9f370_Alerting
    For SSRS 2008 R2 or early versions, we can identify report server mode using the Reporting Services Configuration Manager. For SSRS 2012 or later versions, Reporting Services Configuration Manager no longer supports Reporting Services SharePoint mode. Configuration
    of SharePoint mode is completed using SharePoint Central Administration.
    Reference:
    Verifying SharePoint integrated mode installation
    Create a Report Server Database
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • How FDQM Interacts with DRM...

    Hello,
    How FDQM works with DRM and where can I find the adapter?
    And what are the file formats will support for DRM?
    If you have any document regarding FDQM interacts with DRM, please drop me a mail to [email protected]
    Thanks in Advance,
    Babji

    Hi Babji,
    What exactly are you trying to do with FDM and DRM? FDM will transform data and provide support for data load controls and DRM is a metadata management tool.
    The only way I can see DRM working with FDM is to produce maps to load into FDM and unless you have FDM systems that need the same map it may not even make sense to maintain any of that within DRM.
    As far as integrating it to make maps, you would configure DRM to produce a csv file in the proper format or send data directly to tables with other integration scripts.
    Regards,
    John A. Booth
    http://www.metavero.com

  • How to interact with a COM component from a Java class

    Hi, could someone give a hint on what API I should explore in order to interact with a COM component from a Java class?
    Thanks in advance
    Luis

    jacob sounds nice...http://danadler.com/jacob/

  • How Users Interact with Oracle Database Express Edition in a Network?

    Please i just want to know how users can relate or access the Oracle DB xpress on a network. Coming from an oracle enterprise edition background i know when you install oracle on a network, isqlplus for example is centrally loaded meaning you dont need to install oracle on each machine in the network, so users can access the DB from their nodes. I am presently working in a big estate management firm and i want to create a structured database for them, they use excel to store records and want to introduce Oracle.

    You can access XE remotely through the browser after following the instructions here:
    http://download.oracle.com/docs/cd/B25329_01/doc/admin.102/b25107/network.htm#BHCBCFBA
    If you are using APEX as the application, you'd need to do that. There may be other firewall consideration though (ie opening the relevant server ports).
    [There's no isqlplus anymore, but there is a similar sql worksheet in the Apex development environment).
    If you are just using the database as a data store behind, for example, a Java application, then connections will probably be through ODBC/JDBC/OCI and probably need some client installation too.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Has anyone ever figured out how to interact with PP events from LabVIEW?

    We would like to know how to interface a motor control system with a powerpoint file such that after each motor step is complete the next slide is shown and so on.
    Direct contact can be made via [email protected]
    Cheers Jim & Jon

    You can use PP or just put your graphs in a picture control, easyly passing from one step to the next. If you prefer using PP, you could use ActiveX, as is done to control Excel within LabVIEW.
    Good luck

  • H*ll freezes over...Microsoft shows how to interact with customers...

    http://channel9.msdn.com/Shows/Counting-Down-to-Mix/Countdown-to-MIX11-Joe-Belfiore-Talks-Phone#c634367845660000000
    http://www.mobileburn.com/news.jsp?Id=13768
    Microsoft apologizes for Windows Phone 7 update tardiness
    Microsoft's vice president of the Windows Phone program, Joe Belfiore, has taken to the Channel 9 developer's site to apologize for the slow deployment of the NoDo update for Windows Phone 7.
    "First, I was wrong when I said that most people have received the February update," said Belifore. "There are many of you who have yet to receive it, and I don't blame you for speaking up and pointing out my mistake." In order for theupdate to hit customers' phones, both Microsoft and carriers have to sign off on it. This process is unsurprisingly taking longer than expected, something Android users are all too familiar with.

    DonM wrote:
    http://channel9.msdn.com/Shows/Counting-Down-to-Mix/Countdown-to-MIX11-Joe-Belfiore-Talks-Phone#c634367845660000000
    http://www.mobileburn.com/news.jsp?Id=13768
    Microsoft apologizes for Windows Phone 7 update tardiness
    Microsoft's vice president of the Windows Phone program, Joe Belfiore, has taken to the Channel 9 developer's site to apologize for the slow deployment of the NoDo update for Windows Phone 7.
    "First, I was wrong when I said that most people have received the February update," said Belifore. "There are many of you who have yet to receive it, and I don't blame you for speaking up and pointing out my mistake." In order for theupdate to hit customers' phones, both Microsoft and carriers have to sign off on it. This process is unsurprisingly taking longer than expected, something Android users are all too familiar with.
    okay, but when will they apologize for never releasing 6.5.3 to the omnia 2, or how about them apologizing for the abomination that was kin1 and kin2.

  • How to interact with google search engine using java HTTP POST

    I am trying to develop an desktop app that acts as an online radio tuner. I want to use google as an index site for actually searching for radio stations online. So I was wandering if it is possible for me to use java to actually interface with the google search engine servers. For example, I have built a gui that allows you to enter search text. This gui will connect to the web. I would like it to connect to the Google site and post the query to the google web servers. Then i would like to began to parse the response( html page) that i get back from the google servers. Like using google without actually typing in the text field on the google site. Can anyone tell me if it is possible to do this with java. If so, what would be the best way to go about doing this. Thanks.

    Thanks for the response. It was actually alot easier to do than I anticipated. All I had to do was create a URL object initialized with the google url(search text embedded in the url - http://www.google.com/search?q=" + searchText + "&hl=en&ie=UTF-8&oe=UTF8).
    Looks like this:
    String google = http://www.google.com/search?q=" + searchText + "&hl=en&ie=UTF-8&oe=UTF8;
    URL url = new URL(google);  // creating Google Url object
    URLConnection connection = url.openConnection();
           connection.setDoOutput(true);
           connection.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" );  // fooling google servers into thinking the request is coming from a real browser
           BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));The content returned by the google server can be accessed calling the BufferedReader class methods.

Maybe you are looking for

  • Calculation  in screen painter

    Hi Friends, I want to do a calculation in the input screen which I have created. ie., the amount field should be rate field  * qty field.  I am getting this value, but the problem I am facing is that, whe the qty is changed,  it creates another line

  • Premiere CS6 won't start. Getting error message.

    I am getting this error message:   The procedure entry point ? DrawPixels@DC@UIF@@QEAAXPEBXHHHV?$ParamPoint@VCPoint@@@ASL@@@Z could not be located in the dynamic link library UIFramework.dll. My computer crashed and I had to reload Windows 7... fresh

  • Windows 7 Word 2010 with EPS A4 Acrobat X Pro Paper Size Issue

    I'm running into the following issue trying to create a PDF. Word 2010 A4 page size. Document has some Illustrator EPS images used in it. When I go to make the PDF using Acrobat from the top menu and then Create PDF, the page size of the PDF is A4, b

  • Saving as PDF: fonts look crappy?

    I have a small test .psd image with just one piece of text. When I save this as .pdf from Photoshop CS4 (using Save As and choose Photoshop PDF format) and open the .pdf with Acrobat 9, the font looks pretty messed up. Here's an example of what I mea

  • Another question: non-static variable super cannot be referenced from ...?

    class a int i;      int j=2; a(int i) this.i=i; public class b extends a      b()      super(8);      public static void main(String args[]) b test=new b(); System.out.print(test.i); test.j=1; System.out.print("test.j="+test.j); System.out.print("sup