I need know the concept of instance servlet

i know the servlt instance when thecomming request or on load start up but i need improve of the servlet istance may be have in our application more than one of the instance servlet (i mean one servlet more than one instance ) or in our servlet have one instnace ????
please i need to know for that couase this improve for starting to programming he web aplication
thanks

We said above that servlets persist between requests as object instances. In other words, at the time the code for a servlet is loaded, the server creates a single class instance. That single instance handles every request made of the servlet. This improves performance in three ways:
It keeps the memory footprint small.
It eliminates the object creation overhead that would otherwise be necessary to create a new servlet object. A servlet can be already loaded in a virtual machine when a request comes in, letting it begin executing right away.
It enables persistence. A servlet can have already loaded anything it's likely to need during the handling of a request. For example, a database connection can be opened once and used repeatedly thereafter. It can even be used by a group of servlets. Another example is a shopping cart servlet that loads in memory the price list along with information about its recently connected clients. Yet another servlet may choose to cache entire pages of output to save time if it receives the same request again.
Not only do servlets persist between requests, but so do any threads created by servlets. This perhaps isn't useful for the run-of-the-mill servlet, but it opens up some interesting possibilities. Consider the situation where one background thread performs some calculation while other threads display the latest results. It's quite similar to an animation applet where one thread changes the picture and another one paints the display.
but you can created for each request the instance servlet through
implements SingleThreadModel
i think this is concept of instanced of servlet
thanks

Similar Messages

  • How can I know the name of instance (SID)?

    Dear all,
    After I install the Oracle client in my computer, I would like to change the tnsname.ora. However, I don't know the name of instance (SID) because I am not the one install the database and the DBA is gone. So, how can I know the SID name and the port number as well.
    Best Regards,
    amy

    Hey,
    The sid defaults to the database name.
    http://www.adp-gmbh.ch/ora/misc/identifiers.html
    you can find it by
    select name from v$database;
    or by
    show parameter db_name (run this in sql prompt)
    Run the above on the database server.

  • The concept of EP7.0 for BW7.0 (NOT EP6.0)

    I'm new to SAP EP , having 5 years of experience in BW and SEM.
    Now I'm join NW04s(BW7.0) RumpUp project as BW implementer.
    In NW04s, EP is inevitable for BW,
    BW reports are saved and refered via EP role and i-view.
    I think BW implementer will need to set up EP role and i-view, other settings on EP.
    So, I want to know the concept of EP7.0 for BW7.0 in practice.
    Especially, BW report distribution and authorization, user view creation, end user interface.
    So kindly give your suggestion.
    Kanako Imamura

    Kanoko,
    What do you want to configure in relation to SEM?
    Stakeholder Relationship Management?
    Business Planning and Simulation?
    SEM-BPS?
    A lot of information is covered on
    http://help.sap.com/saphelp_nw2004s/helpdata/en/70/b9453bf2a8bc07e10000000a114084/frameset.htm
    James

  • What are the concepts of iPhone 5?

    I wanted to know the concepts of iPhone 5.

    Hi, where is your techincal support query? We, like you, are non-Apple staff, just users of Apple products. To discuss concepts behind Apple products, please contact Apple directly or visit their product pages.

  • How to know the point where one menu popUp is showed ?

    hi,
    I need know the point where one popUp menu is showed, but I have problems to do it....
    I can install actionListener for method actionPerformed of class AbstractAction but the event I get does not able to say the point...
    In the documentation, I read it is possible install a listener for the mouse and select the popUpMenu with the condition
    "if (e.isPopupTrigger())"
    but it is not confortable to do it and in that case it is not easy too to manage the choice for the item selected...
    Some advice please ?
    I write down the code I use...
    thank you to have one answer..
    regards tonyMrsangelo
    import java.awt.AWTEvent;
    import java.awt.event.*;
    import javax.swing.*;
    enum OpzPopMenu
    {NuovoAppuntamento, CancellaAppuntamento, SpostaAppuntamento};
    public class MenuPopUpTestOne {
        public static void main(String[] args) {
            MenuFrameXmenuTestOne frame = new MenuFrameXmenuTestOne();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
    A frame with a sample menu bar.
    class MenuFrameXmenuTestOne extends JFrame {
        JPopupMenu popupMenu;
        public static final int DEFAULT_WIDTH = 300;
        public static final int DEFAULT_HEIGHT = 200;
        public MenuFrameXmenuTestOne() {  // costruttore
            setTitle("MenuTest");
            setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);
            popupMenu = new JPopupMenu();
            Action nuovo = new PopupMunuAction("nuovo");
            Action sposta = new PopupMunuAction("sposta");
            Action cancella = new PopupMunuAction("cancella");
            JPanel jp = new JPanel();
            add(jp);
            // item1
            JMenuItem item1 = new JMenuItem(OpzPopMenu.NuovoAppuntamento.toString());
            item1.addActionListener(nuovo);
            popupMenu.add(item1);
            // item2
            JMenuItem item2 = new JMenuItem(OpzPopMenu.SpostaAppuntamento.toString());
            item2.addActionListener(sposta);
            popupMenu.add(item2);
            //item3
            JMenuItem item3 = new JMenuItem(OpzPopMenu.CancellaAppuntamento.toString());
            item3.addActionListener(cancella);
            popupMenu.add(item3);
            jp.setComponentPopupMenu(popupMenu);
            enableEvents(AWTEvent.MOUSE_EVENT_MASK);
        // aggiungere il popupMenu FINE   -----------------
        } // costruttore
    * Serve per gestire il menu popUp
    class PopupMunuAction extends AbstractAction {
    //    String itemOne = "nuovo";
    //    String itemTwo = "cancella";
    //    String itemTree = "sposta";
        public PopupMunuAction(String nome) {
            super(nome);
        public void actionPerformed(ActionEvent e) {
            String command = e.getActionCommand();
            if (command.compareTo(OpzPopMenu.NuovoAppuntamento.toString()) == 0) {
                JOptionPane.showMessageDialog(null, "NUOVO  one");
            if (command.compareTo(OpzPopMenu.SpostaAppuntamento.toString()) == 0) {
                JOptionPane.showMessageDialog(null, "SPOSTA  one");
            if (command.compareTo(OpzPopMenu.CancellaAppuntamento.toString()) == 0) {
                JOptionPane.showMessageDialog(null, "CANCELLA  one");
    } // inner class PopupAction

    tonyMrsangelo wrote:
    I need know the point where one popUp menu is showed, but I have problems to do it....Do you mean where the JPanel was clicked, or where the pop up appears on the screen.
    If you mean where the panel was clicked, then it's as simple as adding this to your program:
            jp.addMouseListener(new MouseAdapter()
                @Override
                public void mousePressed(MouseEvent e)
                    if (e.getButton() == MouseEvent.BUTTON3) // if right clicked
                        // do whatever in here with the e.getX() and e.getY() results
                        System.out.println("[" + e.getX() + ", " + e.getY() + "]");                   
            });

  • Show the name of instance through of SYS_CONTEXT

    Hi...
    I need rescue the name of instance , but not have privileges on v$ views.
    I use the function sys_context('USERENV','INSTANCE')
    See:
    SQL> select sys_context('USERENV','INSTANCE') from dual;
    SYS_CONTEXT('USERENV','INSTANCE')
    1
    SQL>
    Qeestions:
    1.- How rescue the name of instance?
    2.- The number of instance through SYS_CONTEXT is dynamic?
    Regards
    Hector Gabriel Ulloa Ligarius
    Santiago of Chile
    http://es.groups.yahoo.com/group/desarrolloOracle/

    Thanks to all...
    I want received the name of instance and host
    See :
    SQL> select instance_number , instance_name , host_name from v$instance;
    INSTANCE_NUMBER INSTANCE_NAME HOST_NAME
    1 PROD zbddesa
    But i skip the v$instance, because , not have a privilege
    I need the information, but, by other mode
    Thanks guys
    Regards
    Hector Gabriel Ulloa Ligarius
    Santiago of Chile
    http://es.groups.yahoo.com/group/desarrolloOracle/

  • Modify the register of one servlet

    Hi,
    I need modify the register of one servlet. I can't use the EAR and WAR file, so, I need modify directly (by hand).
    I have one servlet registry, MyServlet. The class of this servlet is MyServlet.class. Now, I want to that my servlet is MyServlet but the class of this servle will be OtherServlet.class.
    How can I do this??
    Thanks,
    M�nica

    Here is an example of what I would like to obtain.
    Consider that "*" are to them spaces.
    These are precisely these spaces that I would like to obtain.
    ________JFrame__________________
    |***************************|
    |**| --------------JPanel-------|**|
    |**| /////////////////////////////// |**|
    |**| /////////////////////////////// |**|
    |**-------------JTextArea-- ----|**|
    |**| /////////////////////////////// |**|
    |**| /////////////////////////////// |**|
    |**|----------------------------|**|
    |***************************|
    |-----------------------------------|

  • I need to know the right tools and java technology

    Please help,I need to know the right tools and java technology to support what I need.
    I had background programming in Assembly,C++,Visual Basic,SAP/ABAP 4.
    All I can say, programming is about logic, now we are very helped building program using objects.
    I'm very interest to SAP tech, where all screens, programs, reports are resides on tables, this is the real dynamic!
    CUrrently I'm eager to do the same technic with java. I'm new to java....
    What I know the J2EE is the core for me to start is it right? I was very interest with the Client-Server Tech. How can I impelemet this with Java?
    I'm a bit confuse with so many java solutions. There is Java Applets, Swing, Java AWT, JavaBeans, etc...
    I don't know what is the best if I want my Presentation/Client Application will run within browser (not standard html, using like windows gui). What should I do to make business logic objects, how to invoke it within the gui. how to make installation package whenever clients connect to the http server.
    if you have a pointer to do it please let me know.... I'm very appreciate all your response...
    Best regards,
    Lucky Pangemanan

    I'd say - don't get carried away with the heavyweight frameworks. Don't use EJB if Hibernate and/or Tomcat will do the job. There's a danger of winding up using a bulldozer to crack a wallnut.
    What people mean by "J2EE" varies a fair bit.
    Start with Tomcat, which has the virtue of being free. Try some JSPs and servlets.
    Use Applets to do client side presentation only if you must; Applets create an installation overhead on end-users, and some of them can't cope, while others may not have the necessary installation permissions on their office machines. They are pretty rarely needed, IMNSHO, most client-side behaviour is better handled with html and JavaScript.

  • How can I know the number of ejb instances

    Hi all,
    We need to know how can we get the number of ejb instances (entity and session) while the application is running.
    We have a memory leak, so we need to know the amount opf memory used.
    Please, it´s quite urgent, can anybody help us? It seems like an Oracle 9ias 903 bug.
    Thanks

    I'm not sure if this will help you, but the "Spy" application that comes with OC4J stand-alone may help. I suggest you search this forum's archives for the words "Spy" and "AggreSpy".
    Good Luck,
    Avi.

  • How can i know the servlet is running or not?

    Hi all,
           I have a doubt regarding servlet. I created one servlet and deployed in server. Now i called (RUN) the servlet from the browser. And it is running. Now can i know that the servlet is running or not in the server without seeing in the browser. Can we know the status of the servlet with its URL in the server whether it is running or not?
             Let me explain my problem. In my servlet it will run continously read one table and  do some operation depending on the entries in that table. Now i called the servlet from the browser. After some time i closed the browser. If browser is there i can know whether servlet is running or not. But now how can i know that servlet is running or not. Becoz eventhough we closed the browser the servlet will run in the background. How can i achieve this?
    Thanks and Regards,
    VJR.

    Hi!
    With first call, the servlet will be loaded, and it remains so until server-shutdown, but you need a timer-mechanism execute method calls continuously.
    Regards,
    Thomas

  • I was in testing previously, i know the little concepts of OS(sun solaris)

    Hi ,
    I was in testing previously, i know the little concepts of OS(sun solaris) and database(oracle), My company has provided the training in ABAP, but i want to shift my career to basis, as ABAP is fully programming.
    Could somebody suggest me how to go with this, as i was new to this field i required some suggestion.
    full points will be rewarded if found reply useful
    Thanks,
    Mazhar.

    hi shaik,
    Basis Team. This role will assist the SAP Basis team in supporting  internal customers by helping to support or production print environments, resolving application access and security errors, and documenting case activities.
    ESSENTIAL DUTIES & RESPONSIBILITIES:
    - Assist with SAP printer configuration and troubleshooting. This will require that the candidate obtain an understanding of SAP printing infrastructure, the CUPS printing system, and TCP-IP network printing protocols.
    - Assist with defining, changing, and managing SAMBA configurations
    - Shell/Perl scripting as needed
    - Assist with resolving daily Help Desk cases regarding access to, and usage of, our SAP business systems.
    - Handle daily SAP security cases. SAP security training will be provided.
    - Will administer user accounts and systems access security under the guidance of the security lead.
    sap basis also one of the best. u can go in that way also. but there also u need coding capabilities .
    thanks
    karthik

  • I have a question that I think I know the answer to, but am looking for confirmation.  I have a dell computer at home that has clip art available on it for putting pictures into documents.  Do I need to install an APP to get something similar to clip art?

    I have a question that I think I know the answer to, but am looking for confirmation.  I have a desktop computer at home that has clip art loaded onto it.  I recently got an iPad and am looking for something similar.  I assume I need to get an APP for it, and if that is correct, does anyone have one that they like?

    Sort of.  There is an app called art shop that gives you a place to park clip art.   But I don't think you really need it. 
    If you have a collection of clip art you want available, move it to the camera roll on your pad/ phone, then copy paste into your document the clip you want.
    You can get them into the camaera roll by putting them in a single event in your picture library and syncing them over,  or e mail them to your self, and save to the camera roll, or send them to drop box, and bring them down that way.
    The challenge is getting them all in one place to make it easy for you to find, which is why syncing might be the best approach in the long run.
    As near as I can tell there is not a ready made clip art collection in app format laying around.

  • Will I need to purchase iWork for my iPad if I purchase an iPhone 5s? Everybody knows the iPhone 5s with IOS7 gives iWork for free. Then iWork would be listed as purchased app in my itunes store under my account. My iPad retina is in the same account...

    Will I need to purchase iWork for my iPad if I purchase an iPhone 5s? Everybody knows the iPhone 5s with IOS7 gives iWork for free. I assume that if I buy an iPhone 5s (or 5c) then iWork would be listed as a "purchased" app in my itunes store under my account. My iPad retina is in the same account... or are keynote, pages, and numbers completely seperate between ipad and iphone? I know they would be a seperate purchase for my Powerbook. Thanks so much for your help!

    Hi,
    I was able to load the Productivity Suite / Free !!  on both my iPad mini and my iPhone 5s with no problems and at no cost.

  • I have an iPod 5th generation and it is my second iPod but when I try to buy a song it says I need to answer security questions but they are ones I don't recognize or know the awnser to!! Help!!

    My second iPod is a 5th generation and when I try to buy something it says it needs make sure I am who I say I am and it makes me answer security questions. But the problem is I don't know the answers to them. I did not choose them. And if I can't find an answer I can't buy anything!!! Help!!!!

    You need to log in to your Apple ID and change you security questions.  Take a look at this link, http://www.apple.com/support/appleid/

  • I need to know the multitude of reason why my iPhone 5s would prompt me for my Apple ID password. Please help.

    I need to know the multitude of reason why my iPhone 5s would prompt me for my Apple ID password.
    All I did was place my phone on the charger, I then walked away for 10-15mins and when I came back it was asking me to enter my Apple ID password.
    I never gave my password out to anyone ever and hardly anyone knows my email address.
    I haven't recently downloaded anything either and I only have one apple device which is my iPhone 5s.
    I just want to know really if it could have been because someone was trying to log into my Apple ID?
    Please help with multiple reasons why this could have happened. I just want to know the options. Thank you

    My iPhone 5s did the same thing yesterday. I have iCloud backup turned on in Settings > iCloud > Storage & Backup and that means it will automatically do a backup when the phone is plugged in, locked and connected to wi-fi. I had it charging and when I returned it was asking for the password and the prompt did identify that it was requesting it for the iCloud backup (something you may not have noticed if you didn't look closely).
    It has never done that before and 2 iPads in my household have not yet done it. All are on iOS 7.1
    I have found a report of the same issue by a user of the 7.1 beta and in that case it was happening every day. In my case I entered the password then went to the same area in Settings as above and used the "Backup Now" button to do a backup. I will see tonight when I charge again whether this is going to be an every day problem.

Maybe you are looking for

  • I bought a seconhand iPhone and I am having trouble syncing it to my computer. How can I change the default ID from the previous owner to my ID..

    Hello , it's me again with the second hand iPhone. I am trying to sync it to my computer and after buying some apps I thought it would be easy. Anyway, when I go through the process it always comes up with the previous owners ID and will not let me s

  • Connect to wlan using eaptls

    I prepared a configuration profile in ICU for authentication of my MAC in WLAN using EAP TLS with certificate. On MAC (Lion and Mountain Lion) it works well. I applied the same profile to my iPhone (iOS 6.1.3) and Iphone does not join WLAN. On debug

  • ComponentBean cannot be cast to ComponentBean

    I am receiving the following error message when trying to deploy my application on jboss: javax.faces.FacesException: Can't parse configuration file: jar:file:/C:/jboss-4.2.2-1-jsf/server/default/deploy/pims.ear/lib/jsf-facelets.jar!/META-INF/faces-c

  • Best way to set up iCloud on a shared MAC

    My wife and I share a MacBook Pro on Lion, with one user serving us both.  But we have separate apple ids, used for iTunes and for logging in to Apple Support discussions. We do not use iCloud presently.  In preparation for Mountain Lion, I am consid

  • Error while downloading the DNL_CUST_PROD1

    Dear Experts I am establishing middleware connection between CRM 6.0 and ECC 6.0 I am getting errors while downloading the DNL_CUST_PROD1. I am  getting   sysfail in crm inbound queue(smq2) with error saying "   Immport of material type into hierarch