AXL: HTTP-Socket needs to be initiated for every packet?

Hi,
may be this is a little off-topic:
I use Java to program AXL-API.
Example: addRoutePattern. I would like to add 20 route pattern to CM.
Is there a chance to open a http-socket (once), send the route patterns and close it?
As far as my experience is, it is not. I have to build for every route pattern an SOAP-packet and it is not successfully, when I don't close the socket after every packet ...
Any ideas?
Thanks in advance
Axel

2500 RPs? Geez. And I thought my couple hundred was a lot. I actually wrote my axl class lib to automatically wait 10 seconds if it gets the appropriate http repsonse.. that way I can rapid fire and the server throttles my requests.
I guess the question of whether you can keep the socket open or not comes down to what HTTP standard the server supports - it takes HTTP 1.1 to keep a socket open.

Similar Messages

  • Need to display days for every "X" weeks

    I have start and end dates, along with specific days of the week that I'm outputting.
    However, I need to display them every "X" week but I'm not sure how to do that.
    For example: show Monday, Wednesday, and Friday for every 2 weeks (or every 3, 4,5 weeks).
    Can someone shed some light?
    TIA

    Another option, depending on what you are really trying to do.
    Loop from day A to day B.
    If current itteration of the day is a designated day of the week [dayOfWeek(currentDay)] do one thing, else do another.
    If current itteration of the day is the end of the week [I.E. dayOfWeek(currentDay) is 7] then break the display to a new week.
    There are probably other ways to do this as well.  The date time functions could probably give you some ideas.
    http://livedocs.adobe.com/coldfusion/8/htmldocs/functions-pt0_05.html#1098968

  • If I make space for the 3.1gb needed to upgrade to iOS 7 will I lose that availible memory or does it just need that much initially for the install?

    It says in my update section that I will need to make 3.1gb availible for the update. I already am consistently low on memory for my iphone and if that memory will be gone permanently I would rather not even update. I thought that maybe it requires that space to do an install but it won't actually take all of that once it is finished installing and possibly erasing some memory taken up from the old iOS..

    So is there anyway to figure out roughtly how much extra memory will be taken up on my phone post upgrade process?
    P.S. Thanks for the response!

  • Why does fglrx need to be updated for every Xorg release?

    Guess: Because of the libraries they're linking to? I may be imagining things but it seems the nvidia driver is less loosely tied to it and will work with any recentish version of X. I'm pretty sure I've upgraded X before without upgrading the nvidia driver and everything continued to work fine. If I'm not imagining things, why don't they do what nvidia is doing?
    Last edited by ernesto (2011-11-27 16:18:22)

    nVidia has to update their drivers to support recent X.Org just like AMD does. nVidia however includes support for the newest X.Org to their drivers as soon as it is reasonable to do so, whereas Catalysts are always lagging behind the upstream. When an updated X.Org hits Arch's extra, chances are that you already have a compatible nVidia driver, with AMD it's not until after several weeks or months after new X.Org release when they update the drivers.

  • Can you install the new lion software on more then one mac or do you need to bye it for every computor

    Three macs do I need to bye it three times.

    Yes, but each computer must be running Snow Leopard 10.6.7 or 10.6.8. Log onto the Mac App Store using the same Apple ID. Click on the Purchases icon in the toolbar. You should see an Install button to the right of the Lion purchase in the list.
    If after you have downloaded Lion the first time you quit the installer instead of installing, then you can save the installer file to another drive as backup. You should find it in the Applications folder. Otherwise, the installer deletes itself automatically when finished installing.

  • HT201304 How do I increase the time allowed to make purchases with my Apple ID? I need to sign in for every purchase. I

    After the last IOS update my iPad does not offer me choice to change the time allowed after signing in to 15 minutes

    Settings>General>Restrictions>ALLOWED CONTENT>Require Password
    It's either 15 minutes or immediate.

  • Threads with http socket

    Are there any good tutorials that teaches multithreading with http sockets?

    Topic: IDLE Time for Java Application not SYSTEM Idle Hi I am Krishna , I want to calculate idle time for an application.That is , if user1 uses the application for example called "yahoo site" for checking mails , then after 10 mins he went to outside , from 11th min the status of application should show (Like Yahoo messenger after certail time it shows idle time ) in another ADMINJSP page for Admins that how much this user1 idle say.. : 1 min idle 2 min idle .... .... 10 min idle Now user1 comes and now clicks on application . then ADMINJSP page should show total IDLE time (10 mins idle). And he again after 15 mins he went some where from 16th min the status of the application should show in ADMINJSP page.If user1 left the application like that then the application should be idle for 1 hour i.e 1 min idle 2 min idle ... ... 59 mins idle 60 mins idle Time Up -- Session Expired then he has to login again. So the above is the issue --------------------------------------------------------------------------- What i have done ..................issssssssssssss ------------------------------------------------------------------------- I have taken time for last request by using getLastAccessedTime() I have taken present time System.currentTimeMills() Taking the difference we will get the idle time . But the problem here is When user1 click on any page only this calcuting will be done and showing to ADMINJSP because getLastAccessedTime works only when any requests comes , but we dont want like that , we want the application without any requests from user1 the application should show idle for 1 min , 2 mins , 3 mins...so on upto user1 uses the application then the time should be normal. I have also tried all the EVENTS classes in HttpSessionBinding like valueunbound()...or sessiondestroy() etc. Can any one please help me by giving any CODE.If you need more information plz ask me Plz plz plz plz this is very urgent plz can any please send me the CODE , ihave tried this very hard but no idea how to do? long startTime = session.getLastAccessedTime(); long stopTime = System.currentTimeMillis(); long diffTimeInSecs = (stopTime - startTime) / 1000 ; gives idle time for every request Regards Krishna

  • ISCSI Initiator for Mac OS 10.8

    Hello everyone! I need an iSCSI Initiator for Mac OS 10.8. Are there any suggestions? I've tried globalSAN, but it seems to be too expensive. Can you advise something?

    unfortunately, there is no free iSCSI Initiator. a nice competitor of globalSAN is DAEMON Tools Lite for Mac (http://www.daemon-tools.cc/products/dtMacLite). it is a software for mounting images, but it has an additional iSCSI Initiator feature that costs €50 (€56.90 together). you can try it for free to get to know whether it is good enough for you.€6.90€6.90

  • According to material num,for every new material num  one line space.

    Hi,
    please give suggestion how to get vertical lines without breaking as shown below.
    I want according to material number(AT1),for every new material number  one line space have to be there.
    I used 'skip' so the verical line is breaking for every new material.
    Material Number  |   Material Description
    _____________ |______________________________________________
    |    AT1                  |   Catalyst - 18165-RNA-A013-Y2
    |    AT2                  |   Catalyst - 18165-RNA-A013-Y2
    |    AT3                  |   Catalyst - 18165-RNA-A013-Y2 (COPY)
    |    AT4                  |   Catalyst - 18165-RNA-A013-Y2
    |    AT5                  |   Catalyst - 18165-RNA-A013-Y2
    |   CGW0001             SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    |  CGW0001              SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    |  CGW0001              SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    CGW0001             SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    |   CGW0001             SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    |   CGW0001             SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    |   CGW0001             SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    I need line continous but for every new material to material gap.
    Thanks,
    sree.

    Hi,
    write code like this.
    write : /1 sy-vline,120 sy-vline.
    give the line size for ex 120
    reward if usefull

  • How to get index of cluster and make popup vi for every event

    Hi
    I have problem. the problem is i have to find out the index of cluster.
    I have an event "mouse down" from this cluster  and index should be the value where i put my mouse.
    2nd thing is curently i am just abel to display only 1 popup. but i need each pop up for every every element where i move my mouse
    thanks in advance.
    BR

    altenbach wrote:
    Use a "value change" event on the array and do a "not equal" on the old a new value. Only the changed value will result in a  true. Use search array to find the TRUE in the "not equal" array and the resulting index points to the changed element. You can do basically the same with clusters, by using "cluster to array" at the right time.
    Here's what I had in mind (LabVIEW 8.2)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    DetectElementChange.vi ‏17 KB

  • [svn:fx-trunk] 12007: When the Internet Explorer browser window is obscured Stage. width and Stage.height never return the proper sizes until/ unless the IE window is unobscured long enough for the player to feel it needs to render initially .

    Revision: 12007
    Revision: 12007
    Author:   [email protected]
    Date:     2009-11-19 12:45:27 -0800 (Thu, 19 Nov 2009)
    Log Message:
    When the Internet Explorer browser window is obscured Stage.width and Stage.height never return the proper sizes until/unless the IE window is unobscured long enough for the player to feel it needs to render initially.  This was preventing our preloader from completing, since we were waiting for a non-0 Stage size.  Took a slightly different approach to solving the bug for which the original logic was added to work around.
    QE notes: None
    Doc notes: None
    Bugs: SDK-24191
    Reviewer: Alex, Evtim
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/non-0
        http://bugs.adobe.com/jira/browse/SDK-24191
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as

    Revision: 12007
    Revision: 12007
    Author:   [email protected]
    Date:     2009-11-19 12:45:27 -0800 (Thu, 19 Nov 2009)
    Log Message:
    When the Internet Explorer browser window is obscured Stage.width and Stage.height never return the proper sizes until/unless the IE window is unobscured long enough for the player to feel it needs to render initially.  This was preventing our preloader from completing, since we were waiting for a non-0 Stage size.  Took a slightly different approach to solving the bug for which the original logic was added to work around.
    QE notes: None
    Doc notes: None
    Bugs: SDK-24191
    Reviewer: Alex, Evtim
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/non-0
        http://bugs.adobe.com/jira/browse/SDK-24191
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as

  • A new socket for every http-request?

    Do I have to make a new socket for every http-request? The code below doesn't work because it is two requests in a row. The first GET works, but the second doesn't. I thought that the purpose of a socket is that you set it up once and then you should be able to do arbitrary communication between the two peers. Maybe that is just the case with sockets only but not if you use sockets to perform http.
    Thank you for your answers! Nice greetings from Austria (not Australia)!
    Stefan :)
    package httptest;
    import javax.net.ssl.*;
    import java.io.*;
    import java.net.*;
    public class Conn2 {
        private PrintWriter out;
        private BufferedReader in;
        private Socket socket;
        public Conn2()
            try {
             socket = new Socket("www.google.at", 80);
             out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())));         
             if (out.checkError())
              System.out.println("SSLSocketClient:  java.io.PrintWriter error");
             in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
                System.out.println("Connect erfolgreich.");
         } catch (Exception e) {
             System.err.println(e);
        public void test()
            String inputLine;
            // 1. GET
            out.println("GET / HTTP/1.0");
         out.println();
         out.flush();
         try
                while ((inputLine = in.readLine()) != null)
                    System.out.println(inputLine);
            catch(IOException e)
                System.err.println(e);
            // 2. GET
            out.println("GET / HTTP/1.0");
         out.println();
         out.flush();
            try
                while ((inputLine = in.readLine()) != null)
                    System.out.println(inputLine);
            catch(IOException e)
                System.err.println(e);
    }

    Normally in the HTTP protocol, the server will close the connection after every request. So after you do the first GET, the server sends you the result and closes the connection. You have to open a new connection for the second GET.
    You can set specific headers to keep the connection open, which makes things faster if you have to do multiple GET's quickly after another. Lookup the specification of the HTTP protocol on http://www.ietf.org/
    Maybe it's easier to use a HTTP client library like Apache's HTTPClient: http://jakarta.apache.org/commons/httpclient/ so that you don't have to implement all the difficulties of the HTTP protocol yourself.

  • Design Choices and is LiveCycle needed? best practices for using RTMP/AMF over HTTP/XML communicatio

    Hi,
    I am new to flex/RIA. I am exploring different design choices especially in client server communication. On client side we will be using Flash based RIA (using Actions scripts).
    There will be some simple forms (like for login, registration, payments etc) and some simple reports including with several graphs and charts. Each chart might have 1000 to 1500 data points etc. There are not video or audio content as such. On server side we have Servlets, java API and some EJBs to provide the business logic and real time prices/content (price update is usually every 10 seconds) /data. Some of the content will be static as well.
    I have following questions in my mind. Is it worth it to use RTMP/AMF channels for the followings?
    1. For simple forms processing (Mapping Actions scripts classes to Java classes). Like to display/retrieve/update data for/from registration forms.
    a. If yes, why? Am I going to be stuck with LCDS? Is it worth it? What could be the cons for heavy usage/traffic scenarios
    b. If not what are the alternates? Should I create the web services? Or only servlets are sufficient (ie. Only HTTP+Java based server side with no LCDS+RTMP+AMF)? All forms need to communicate on secure channel.
    2. For pushing the real time prices/content which we may need to update every 15 seconds on user interface using graphs and charts. Can I do it with some standard J2EE/JMS way with RIA (Flex) on front-end? i.e. Flash application will keep pulling data from some topic. Data can be updated after few secs or few minutes which cant be predicted.
    3. Are there any scalability issues for using RTMP? What happens if concurrent users increase 10 times within a year?
    4. What are the real advantages of using RTMP/AMF instead of simple HTTP/HTTPS probably using xml based objects
    5. Do I need to use LCDS if I am using AMF only on client side? Basically I mean if I am sending an object in form of xml from a servlet. Can some technology in Flash (probably AMF) in client side map it an Action script object?
    6. What are the primary advantages of using LCDS in a system? Is there any alternate solutions? Can I use some standard solutions for data push technologies?
    I would like that my server side implementation can be used by multiple types of clients e.g. RIA browser based, mobile based, third party software (any technology) etc.
    I appreciate if you can kindly refer me to some reading materials which can help me deciding the above. If this is not the right place to post this message then please do refer me to the place where I can post such questions.
    Thanks and Kind regards,
    Jalal

    Hi Jalal,
    Let me see if I can help with some of your questions
    1. Yes, you can use LCDS for simple forms processing. Any time you want to
    move data between the Flex client and the server, LCDS (or its free Open
    source cousin BlazeDS) is going to help. I would expect you would use the
    mx:RemoteObject MXML tag to invoke server side code, passing it the form
    data input by the application user.
    2. If you need to push near real-time data, LCDS gives you the RTMP channel
    which can scale quite nicely. You can then use the mx:Consumer MXML tag to
    subscribe the clients to the messages, which can come from almost anywhere,
    include JMS topics or queues.
    3. RTMP (included in LCDS) is the best option for scaling to tens of
    thousands of users and the LCDS servers can be clustered to proved better
    scaling.
    4. The AMF3 protocol used over the RTMP channels performs much faster than
    simple XML over HTTP. See this blog posting for some tests:
    http://www.jamesward.org/census/.
    5. If you are sending a Flex application XML, then I would recommend using
    the E4X API to work with the XML. This is a pretty nice and powerful way to
    work with XML. If you want Actionscript objects (and probably better
    performance), then using AMF serialization to Actionscript objects is the
    way to go.
    6. Primary advantages? There are many, but mainly you can avoid thinking
    about the plumbing and concentrate on solving your application and business
    logic problems.
    Hope this helps you a little
    Tom Jordahl
    Adobe

  • HTTP socket connection

    Hi,
    I have an applet which communicates with servlets, sending serialized objects back and forth. This works fine but it means communication between client and server can only be instantiated from the client side. It would be better if my applet (or possibly client application) kept a connection with the server that enabled the server to send messages to the client.
    Presumably i would use sockets to do this. The problem with that may be that i need to be sure there will be no problems with firewalls etc.
    Could anyone tell me if it is possible to get the sort of two way communication i am after using HTTP, or maybe HTTPS(presumably this is normally open)?
    Any suggestions would be most appreciated

    You cannot use the HTTP connection that downloaded the applet for further use.
    You get the applet to send HTTP requests and POST serialized java objects/receive serialized java objects.
    You can get the server to open a connection to the client, but increasingly many clients have their own firewalls which will block this. Since you control over your firewall but not theirs this is a bad idea.
    Firewalls can cause some issues with custom socket solutions, if you cannot use the HTTP protocol, I would suggest connecting port 443 normally used for HTTPS. You need to ensure this does not go to a real HTTPS server but instead your application. This has the best chance for success with both firewalls.

  • Are socket needed to send emails?????

    hi guys,
    lets say i need to send an email notification everytime i finish doing a cetain task....do i need to create and use a socket to send these emails????
    thanks in advance for any help...
    lost and blur.
    Below are the codes to send email:
    (So are socket needed???)
    public void execute(String mailto, String mailcc, String mailsub, String mailbody){
    //session object inside the catch block also(in case of DCOException).
    DCOSession ds = null;
    try{
    ds = new DCOSession(); // Create new DCOSession object
    ds.login("erstest02"); // Log in as current Notes client user
    DCOMail dm = new DCOMail(); // Create new DCOMail object
    dm.setDcoSession(ds);// Pass DCOSession to mail
    //dm.setDebug(true);
    dm.setSendTo(mailto);
    dm.setCopyTo(mailcc);
    //dm.setBlindCopyTo();
    dm.setSubject(mailsub);
    dm.setBody(mailbody);
    //System.out.println("before mail sent");
    dm.send(); // Send the mail
    ds.logout(); // Log out of the session
    System.out.println("mail sent to "+mailto);
    }catch(DCOException e1){
    e1.printStackTrace();
    try{
    if(ds!=null){
    ds.logout(); //Log out of session even if exception is thrown
    }catch(Exception ee1){
    System.out.println("Exception thrown while trying to logout of session");
    ee1.printStackTrace();
    }catch(Exception e){
    e.printStackTrace();
    try{
    if(ds!=null){
    ds.logout(); //Log out of session even if exception is thrown
    }catch(Exception ee2){
    System.out.println("Exception thrown while trying to logout of session");
    ee2.printStackTrace();
    }

    lets say i need to send an email notification
    everytime i finish doing a cetain task....do i need
    to create and use a socket to send these emails????Yes, sockets are needed to send emails. However, you don't need to deal with them yourself. You can use the JavaMail API. It will hide those low level details from you and let you deal with concepts that are related to sending emails--addresses, contents, servers, etc.
    http://java.sun.com/developer/onlineTraining/JavaMail/

Maybe you are looking for