Possible? Cilent-server multiple responses design problem!

Hello friends,
I have a problem that needs you kind help.
I have a client-server problem. The client side is an application, and the server is a servlet/jsp program. Now I want that whenever user sends a request to the server to get data, the server can send a few responses back to clients. Note that these response data are not continuous generated by a program in the server, so I do not want to wait until all the responses are generated before sending them all to the clinet. The time to send back each response data varies from 10 milli-sec to 2-3 seconds currently.
So any one has some experience of design on this kind of application?
Thanks!

In the client application, create a URL connection that connects to the JSP/Servlet. In a loop, repeatedly connect to the JSP/Servlet and read in the response. Come up with some kind of special response like '<response type="END"/>' that will signal the end of the input.

Similar Messages

  • Thankyou Adobe for fixing responsive design problem!

    Hi just wanted to say thank you to Adobe for addressing the responsive scaling problem in Edge Animate (the one with
    pushing lower divs down in Dreamweaver). So thank you! This problem was seriously messing with my head. I am
    starting a new site and with the new fix it will be awesome, so thanks

    Hi
    I hope you have upgraded to the latest captivate version 8.0.1.242. If not please follow the steps mentioned on this post Adobe Captivate Help | Adobe Captivate 8 patch. Make sure to remove layouts and preferences as mentioned in the link.
    There is an issue with text in case of multi-hierarchal bullets but apart from that other things should work fine. You might just have to change some position parameters to fix the results. Can you please share the project, so that I can reproduce the issues at my end. My email address is [email protected] . You can send it via email or drop box.
    Captivate responsive output works for multiple browsers. Please check the link Tech Specs - eLearning, mobile learning & Training Software | Adobe Captivate 8 for details.
    Regards
    Tamish

  • Export multiple responses in pdf form?

    Is it possible to export multiple responses into pdf form, not just excel? Thanks!

    Sorry we currently do not support this. You can vote for the feature here:
    http://forums.adobe.com/ideas/1378
    We use this to help prioritize our work.
    Thanks,
    Randy

  • Export multiple response entries to combine PDF.

    Is it possible to export multiple response entries into a singe multi-page (combined PDF?  This can be done externally using Adobe Acrobat Pro, but it would be extremely useful for distributing responses to clients especially since some cannot access the responses through mobile devices such as IPAD.

    Sorry, we currently don't support this. You have to export them one at a time.

  • How to add multiple presets to responsive design view without having to resize the screen each time

    I want to be able to add multiple screen size presets to the responsive design view capability but don't want to have to resize the screen and add each one individually via the custom preset function.
    Have seen that some posts on the internet (http://g-liu.com/blog/2013/08/firefox-rdm-presets/) that say this can be done but cannot find where the config is held in ver 26.0?

    You can also do the opposite and create custom settings in the responsive design mode window.
    You can hold down the Shift key and drag the borders via the (right border, bottom border, bottom right corner) resize icons to get specific dimensions and give the current custom setting a name to add them as a preset.
    This will add the preset to the devtools.responsiveUI.presets pref.
    See also my post here for a bookmarklet.
    *[[/questions/957590]]
    You can paste the current value of the pref in the prompt to see a list of currently defined presets.<br />
    You can add a new preset by entering the width,height,name values in the prompt.<br />
    Copy the new preset list to the pref.
    <pre><nowiki>javascript:(function(){
    function rdObj(w,h,n){with(this){key=w+"x"+h;if(n)name=n;width=w;height=h;}}
    rdObj.prototype={key:"",name:"",width:"",height:""};
    var n={},p='<width>x<height> <name> OR width,height,name',rd=[];
    while(p!=null){
    p=prompt(p,JSON.stringify(rd));
    if(/^(\d{3,4})[,x](\d{3,4})([, ](.+))?$/.test(p)){
    n=new rdObj(RegExp.$1,RegExp.$2,RegExp.$4);rd.push(n);
    }else{try{rd=JSON.parse(p);}catch(e){}}
    }})()</nowiki></pre>

  • Captivate8: Drag&Drop not possible in a responsive design?

    Is it possible to create a Drag&Drop Interaction within a responsive design? (Captivate 8)
    I can't open the Drag&Drop Menu, I can't select it.

    I've also completed the form to request new features. But in the meantime could I ask how people get around this?
    We have several courses created for desktop computers which include drag and drop tasks, and feedback from learners is that they would like to be able to access them on mobile devices. So as I understand it we have three options:
    Create separate courses for mobile devices, using responsive design but losing the drag and drop tasks. This would mean we have two versions of each course, one for desktop and one for mobile, which may cause issues with updating, etc, and the mobile user won't get quite the same learning experience as they'll lose the drag and drop tasks.
    Adapt the main desktop course so it is responsive, and lose the drag and drop altogether. This has the advantage of everyone seeing the same course and it only needing updating once.
    Don't use responsive design and display the course in the same way on a desktop as on a tablet. This may be fine for larger screen tablets, but wouldn't be great for smaller tablets or phones as you'd need to do a lot of zooming and scrolling.
    I'm just wondering what you all do to get around it?

  • Is Responsive Design possible using Liquid Layouts?

    Hi it is possible to use Liquid Layouts to automatically move content [instead of just scaling it] when the device is a different size. For example I may have 2 text boxes next to each other on an iPad layout but I want want them stacked on top of each other on the iPhone.
    I know this type of responsive design is implemented in the latest version of dream weaver but i'm unsure how to do it in Indesign.
    I have attached an image to better describe my question - http://bit.ly/16c82bD
    Thanks

    @Luke – currently the answer is no.
    I think in this regard the development team of InDesign has to go a really long way (if it will be ever implemented).
    It means  CSS rules for  every part of formatting:
    A new paradigm for  layout composition (and text composition as well).
    Uwe

  • Design problem: RS232 communication

    Hi,
    I have a design problem for communication with a device via RS232. Since I'm normally a C++ programmer I might just look at the problem from a wrong angle and hope for some hints how to do it in LabVIEW.
    The scenario:
    A device is communicating with the PC via RS232. The device permanently sends data packets. At the same time, commands can be sent to the device and it returns replies. Data packets and reply packets are arbitrarily mixed, i.e. after sending a command there could be a couple of date packets before the reply comes back but the packets can be distinguished by an identifier.
    At least one, ideally several VIs should communicate with the device. Commands should be sent by pressing buttons and the incoming data should be parsed (the packets contain mutliple data streams) and shown on graphs or saved to files.
    My initial idea:
    Coming from C++ I wanted to build a class for the communication that permanently reads the incoming data and splits it to reply and data packets. This class would then have a function to send out a command and would return the reply or a timeout and it would be possible to register and unregister listeners (I wanted to use queues for this) for the various data streams.
    The problems I ran into:
    There were a couple but the two most pressing problems were: how could I communicate with the constantly running sample VI (e.g. to stop sampling) and how could I propagate changes to the class to it (e.g. new listeners). Since it is not returning I don't see a good way to implement it as in instance funcion (i.e. pass it the object). I could probably not let the sample function run continously but call it periodically from outside. However I planned to implement the class as a singleton, so it could be used parallely from different VIs.
    Is there a best practice for a case like this?
    I'm glad about any hints or ideas.
    Thanks,
    Tobias

    tfritz wrote:
    Hi,
    thanks. Since almost the same thing was suggested to me in a German forum I guess this is really common practice (using one VI with different methods controlled by a queue). It still seems a little "unnatural" for me but my biggest concern (bad interface description) was shattered by the suggestion in the link you sent me to wrap these functions with wrapper VIs, thus caller VIs won't have to deal with the call-by-queue-mechanism. This might also be easier to port to a different implementation later. However I still see the danger that the continously running VI could easily become bloated. 
    It also requires me to change the way I have looked at VIs until now. In our course they told us that VIs are basically functions. Using this design patterns, the VI becomes more of a module, really (Like a C module implemented in a C-Source file). But I will try it. It sounds as if it could work.
    I will still look into the OOP solutions a little more, though. Do I understand you correctly that you wouldn't recommend using LVOOP because it's still buggy? What about dqGOOP for example? This sounds like it could do what I need (however it doesn't seem to implement things like polymorphism, late binding and inheritance so I don't quite see what's so OOP about it. It seems more like programming with structures in C.)
    I don't know if LVOOP is buggy or not.  I think early on it was buggy and things have improved in recent versions. I have read that it doesn't have all the features that you would have in OOP like C.  I wouldn't recommend it only because I'm not familiar with it at all.  I can't recommend something that I'm not comfortable with.  If you go that route, plan on spending time in these forums and in LAVA to reading up on what others have done.  I haven't hard of dqGOOP.
    But back to your suggestion. I still have a couple of questions:
    - How do you return values from the module? Would you use a queue for that as well?
    - Where would the parameter queue be held (created and passed to the VI)
     I would store all of these in a functional global variable.  This is the VI that stores data in shift registers.  Ben's action engine nugget is an advancement on that.  This allows for both the calling VI and the parallel running subVI to get and set the data as needed.  It runs quickly so neither process should be forced to wait while the other  VI is doing its thing.
    - My VI has to be constantly sampling and this shouldn't be interrupted too long by other functions as adding a listener. However both functionalities have to access the same kind of data. Is there an easy way to parallelize this? Would the sampling be a case in the case diagram that's always used if no command was sent to the VI or would it somehow run parallely?   Yes.  There are a couple of ways of doing this.  One would be for the dequeue to have a timeout function.  In the event the dequeue times out, you run the code that is doing the acquisition.  I think a better method is that the code that does the acquisition enqueues its own command again to the end of the queue.  Let's say that is command A.  So when case A finishes, it enqueues A, which seeds itself to run again.  So if nothing else comes into the queue, it just executes A , A, A, A.  But let's say another section of code needs to do something such as command B.  It will slip B into the queue while A is executing.  So you would A, B, then A again, because A would get slipped back into the queue when the first A finishes, but B has already been put in while the first A was running.
    - Would it be possible to make the VI reentrant and in this way use it simultaneously on different COM ports (using different parameter queues as well)? I'm not sure if I will need this but it would be neat if it could work.
    I think you could do this.  It may be a case where the VI is saved as a template  (.vit) and you initiate it multiple times.  I haven't needed to do this before, so I'm afraid I can't provide any details or useful tips. 
    Well, I will fool around some more. Thanks so much for your help. This is kind of exciting since the concepts are quite new for me. Btw, is there something like an academic theory (computer science) for LabVIEW? I came across functional languages in university but data flow languages are still a new concept for me.
    Tobias
    tfritz wrote:
    Another question about the "dynamically starting" of the VI:
    How is the path handled? Is it guaranteed that it always takes the VI from the project or does it just search for the first VI by that name it finds in the file structure? Does this still work when building an .exe from the project? What happens if the VI is already running? Can you test for this?
    While I'm at it: is there a way to stop LabVIEW from searching for subVIs it can't find when openin a VI? This resulted in very unexpected behaviour sometimes where it would find the VI somewhere else (with the same name but maybe an older version).
    In my case, I just had the path hardcoded.  It is my only instance, I'm not planning on moving the VI's.  If you don't have the path, it will take a VI by that name if it's in memory.  If it isn't in memory, it starts searching relative to the calling VI's path.  One thing I know, if you are dealing with relative paths, a subVI has a different relative path in an .exe as opposed to the development environment.  The name of the .exe becomes a folder.  So in development, if your sub VI is mySubVI.vi.  In an executable, its path is MyExe.exe\MySubVI.vi
    For all of this, I recommend searching the forums to get more details.
    If it is searching for a VI, you can hit ignore.  But of course you'd have to do it before it finds it.  When you are dealing with versioning issues, I recommend making a backup copy of the entire directory structure elsewhere.  Some location where it shouldn't stumble across it.

  • Applet does not load on app server when Free Design Layout

    Hi,
    I have to embed a an applet in a webpage of an web application. Before I go on to anything.. let me first tell you, I am using Netbeans 6.0
    As shown in the tuorial:
    [http://www.netbeans.org/kb/articles/tutorial-applets-40.html]
    1. I first made the "Applet" source say HelloApplet. java. After compiling and running it I get the HelloApplet.jar.
    2. I created a WebApplication and then from the properties -> packaging -> I "Add Project" HelloApplet.jar.
    3. Then I a webpage I "embeded" the applet.
    4. I run the web app and the applet gets loaded and everything is just fine.
    But before I go on I must tell you that the applet was designed in Null Layout. Now I edited the applet source once again and changed the layout to Free Design Layout*. ( this is available from Netbeans..on the HelloApplet.java .. go to the design view.. right click on the form and from the context menu you can change the layout to FreeDesign or whatever you might want).
    When I expand the "Libraries" node I see the that the library Swing Layout Extensions - swing-layout-1.0.3.jar has been added.
    When I "run" the "HelloApplet.java" file, the applet is shown in the appletviewer. No problems with that.
    But!
    When I try to Clean & Build and Run the WebApplication, the applet does not get loaded. On inspecting the java console I see the following error:
    java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: org.jdesktop.layout.GroupLayout$Group
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 10 moreIt clearly shows that the Free Design Layout has something to do with the GroupLayout which can be found by expanding the "Swing Layout Extensions - swing-layout-1.0.3.jar". Now when the HelloApplet.jar is created only the HelloApplet.class file gets included together with some other data but NOT the swing extensions. Hence when I run the web app the class file looks for the GroupLayout.class definition but can find it in the jar as its not included when the HelloApplet.jar is created.
    But with null layout there isint a problem because null layout takes the definitions from the JRE on the machine.. and so it runs without a hitch.
    My Question is : How can I run the applet with Free Design Layout? or is it possible to package the swing layout extensions in the HelloApplet.jar?<</u>
    Thanks for all your replies.
    Cheers.
    Edited by: arijit_datta on May 15, 2008 4:07 PM

    Solved.
    Here is the solution:
    [http://www.nabble.com/Applet-does-not-load-on-app-server-when-Free-Design-Layout-to17259115.html|http://www.nabble.com/Applet-does-not-load-on-app-server-when-Free-Design-Layout-to17259115.html]
    Cheers..
    Edited by: arijit_datta on May 16, 2008 7:41 AM

  • Responsive design project not working in Opera or Chrome

    My Captivate project in responsive design is only previewing in Internet Explorer. I have also uploaded the projects to my server and am having the same problem. Why is this?

    Hi,
    Chrome 36 has some issues with captivate  html5 output. Please find the following workaround to fix the issue.
    http://blogs.adobe.com/captivate/2014/07/update-on-captivate-html-5-content-playback-issue -in-google-chrome-browser.html
    Let me know if this fixes the issue.
    devraj

  • Can I separate out for analysis multiple responses to one question?

    I created my first survey without realizing that by creating a question that allows the respondent to choose multiple responses, I might have a problem parsing out the responses for analysis.  I have been downloading (exporting) the responses into an Excel file;  however, all choices made by each person for that question gets exported into one Excel cell as one long text string.  So how can I do anything with this data?
    Sure, the Summary Report provides a nice bar chart showing the number of occurrences for each possible choice out of the several I created for the question; however, it appear that I can't get this data into my SPSS to do cross-tabs without going through some crazy impossibly labor-intensive mapping of every one of my hundreds of survey responses.  Am I wrong?  Is there some way to do this as I can in SurveyMonkey?

    We don't support this directly. This post explains a potential work around: http://forums.adobe.com/message/3869111
    Randy

  • Responsive design mode is showing part of pages and is not showing any optomized pages even in safe mode.

    I need to check multiple websites everyday for responsive design. When I open Responsive design mode I am getting full pages on every site, even ones I know are mobile opt. No matter how I scale it everything remains exactly as it is. I have to scale it to the far right to get the whole page. Basically the pages are always in full screen and I'm getting a window that only allows me to see part of a page. It is very frustrating.
    Win xp
    firefox V28.0
    I am not a coder so please keep solutions simple.

    From your screenshot, it seems to be working, as that grey bar has appeared at the top (with a link to the mobile version of the site). This only appears when the viewport width is 800px or less. This support website doesn't shrink dynamically (as the viewport gets smaller), but remembers whether your machine has a small screen or not (probably by storing a cookie which is changed when you click the link in the grey bar).
    If you are having trouble with other sites, have you tried refreshing the page after resizing? When I have created responsive websites I often have to use JavaScript for a few features, and it simply isn't worth the processing power to make the code run every time the window size changes. Other than that I can't see what would be causing the problem (unless there is other important information you may have missed out)

  • SQL Server 2005 Update mechanism problem

    Hi Gurus,
          We're faced with one SQL Server 2005 update mechanism problem. Here is my problem:
          According to our requirement, an add_on interface program is designed to execute creation of production order by calling Bapi.
          There are 3 steps in this add_on program:
          Step 1: Create production order
          Step 2: Change the information of production.
          Step 3: Some other
          After the step 1 has finished immediately step 2 is called, Howerver the information which should have inserted into database table couldn't be found from database. (Maybe because the time between two steps is too short to finish inserting)
          In order to ensure the complete of the transaction, before the step 2 executed, the information in step 1 should have inserted into database.
           Is there any solution to solve this problem?
           I guess whether there is any parameter which control the time of writing buffer into database...
    Any advice is appreciated.
    Thanks & Best Regards,
    Derek Yang

    Hi
    I have the same problem, but that post didnt help me
    This is the error I have:
    My snapshot agent hangs.. waiting for a response from the server.. and timeouts.
    This only hapens for a publication that has a filter based on HOSTNAME()
    The other publications work fine
    Error messages:
    Message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
    Command Text: sp_MSsetup_partition_groups
    Parameters: @publication = XXXXXXX
    Stack: at Microsoft.SqlServer.Replication.AgentCore.ReMapSqlException(SqlException e, SqlCommand command)
    at Microsoft.SqlServer.Replication.AgentCore.AgentExecuteNonQuery(SqlCommand command, Int32 queryTimeout)
    at Microsoft.SqlServer.Replication.AgentCore.ExecuteDiscardResults(CommandSetupDelegate commandSetupDelegate, Int32 queryTimeout)
    at Microsoft.SqlServer.Replication.Snapshot.MergeSnapshotProvider.SetupPartitionGroups()
    at Microsoft.SqlServer.Replication.Snapshot.MergeSnapshotProvider.DoRegularMergeSnapshotPreparations()
    at Microsoft.SqlServer.Replication.Snapshot.MergeSnapshotProvider.DoPreArticleFilesGenerationProcessing()
    at Microsoft.SqlServer.Replication.Snapshot.SqlServerSnapshotProvider.GenerateSnapshot()
    at Microsoft.SqlServer.Replication.SnapshotGenerationAgent.InternalRun()
    at Microsoft.SqlServer.Replication.AgentCore.Run() (Source: MSSQLServer, Error number: -2)
    Get help: http://help/-2
    Server XXXXXXXXX, Level 11, State 0, Procedure , Line 0
    Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. (Source: MSSQLServer, Error number: -2)
    Get help: http://help/-2

  • AJAX handling multiple responses

    Hi,
    I have a problem in handling multiple responses from server.
    I am sending requests simultaniously (response for the first requset comes sending other request) but i am getting only the response for the last request all previous request responses are lost.
    how to handle thi situation.is there a way to handle?
    pls help me asap.

    since it is for sure using a single connection to the server, it is quite normal
    can't you manke the request sequentialy?

  • Multiple responsive compositions on 1 page with edgecommons

    Hi Guys,
    I am trying to determine what in the is going on here, got two responsive compositions using edgecommons in a single html page. Below is the runtime code - however not having much luck getting them both displayed at the same time. I am able to see each composition on the page when I remove one of the two load functions, but if I use both, there is no joy. I must be doing something wrong but cannot determine what. P.S. all files and assets loaded in the root directory.
    <script>
      var custHtmlRoot="";
      var script = document.createElement('script');
      script.type= "text/javascript";
      script.src = custHtmlRoot+"edge.5.0.0.min.js";
      var head = document.getElementsByTagName('head')[0], done=false;
      script.onload = script.onreadystatechange = function(){
      if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
      done=true;
      //1st composition
      (function() {
      var custHtmlRoot="";
      var opts ={
      scaleToFit: "none",
      centerStage: "none",
      minW: "0px",
      maxW: "undefined",
      width: "100%",
      height: "100%"
      opts.htmlRoot =custHtmlRoot;
      AdobeEdge.loadComposition('clients', 'clients', opts,
      {"dom":{}}, {"dom":{}});
      //2nd composition
      (function() {
      var custHtmlRoot="";
      var opts ={
      scaleToFit: "none",
      centerStage: "none",
      minW: "0px",
      maxW: "undefined",
      width: "100%",
      height: "100%"
      opts.htmlRoot =custHtmlRoot;
      AdobeEdge.loadComposition('solutions', 'solutions', opts,
      {"dom":{}}, {"dom":{}});
      script.onload = script.onreadystatechange = null;
      head.removeChild(script);
      head.appendChild(script);
    </script>
    <style>
        .edgeLoad-clients { visibility:hidden; }
        .edgeLoad-solutions { visibility:hidden; }
    </style>
    <body style="margin:0;padding:0;height:100%;">
      <div id="Stage1" class="clients"></div>
      <div id="Stage2" class="solutions"></div>
        <meta content="minimum-scale=1, width=device-width, maximum-scale=1, user-scalable=yes" name="viewport">
    </body>
    Any help would be appreciated - Cheers
    Wish the adobe team would streamline this in the next update. Makes real life instances very difficult to figure out.

    vivekuma,
    I believe I either found the problem or at least narrowed it down. 2014.1.1 appears to have broken the Multiple Responsive Animate Compositions in an uploaded state.
    I will send you the comps that I have used for testing, but it appears that the current version (2014.1.1) broke this code in an "uploaded" state. Running this code on a local web server functions perfectly fine.
    Again, this code only works locally and not on an internet web host!
    P.S. I have removed all instances of Edge Commons, so there are no calls to this extension library.
    P.S.S. I am now using multiple compositions to serve my responsive breakpoint needs using media queries to hide and zero out stages between break points.
    Thanks Vivekuma and any other Adobe Edge Animate staff who read this!
    Eldin

Maybe you are looking for