About servletContext object

Hi,
How many servletCotext objects are created in clustered environment, if
an application has 10 servles?

A never programmed a servlet but I can say something that sounds logical to me:
If both methods function, why not using both ways? Maybe the author didn't recognize that he used it in different ways (that happens). Otherwise he would maybe have used it only in one way in order not to confuse most people who read his examples.
Rommie.

Similar Messages

  • Getting information about an object from JList

    Hi
    I have created a movie application and i have a JList displaying all registered movies, it uses a DefaultListModel to display these.
    I want to be able to click on an element in the JList and then push a button called "Show movie details" to display all information about the selected movie.'.
    Every new movie is added to the DefaultListModel as an object with "Titlle", "Genere" etc. If someone click on a movie, what do i do to get information about which object that was clicked. All i can see is that integers can be returned with the getSelectedIndex/Value methods. If i use one of these methods to get the object from the DefaultListModel, that would work i guess, but what when someone deletes a movie in the middle of the JList, then the indexes wouldnt match.
    Can someone help me out here? :)

    I get a big fat exception when trying to cast the returned object to a Movie object which im using.
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.S
    tring cannot be cast to Movie
    ...sure that this is the way to do it? If so, what am i doing wrong..

  • About ABAP Object

    Hello All,
    i have some question about ABAP Object.
    What is the meaning of friend class and singleton?
    Regards,
    Luke

    Hi,
    The addition Friends makes class class a friend of classes classi and or interfaces ifaci.At the sam time, all subclasses of classes classi, all classes that implement one of the interfaces ifaci and all interfaces that have one of the interfaces ifaci as a component interface become friends of class. you have to specify at least one class or interface.
    The friends of a class have unrestricted access to the protected and private components of that class, and can generate unrestricted instances of the class.
    The friends of class are not automatically friends of subclasses of class. the addition Friends does not make class a friend of its friends.
    Thea ddition global is allowed only when you use the addition public for the global class of a class pool at the same time.You can list other global classes and interfaces from the class library after global friends.This addition is generated when the Class Builder creates a global class and you specified friends at the corresponding tab page of the class Builder.
    `
    In the example , classs c2 is a friend of interface i1, and therefore also of the implementing class c1. It can instantiate these objects and access their private component a1.
    interface i1.
    endinterface.
    class c1 definition create private friends i1.
    private section.
    data a1(10) type c value 'Class 1'.
    endclass.
    class c2 definition.
    public section.
    interfaces i1.
    methods m2.
    endclass.
    class c2 implementation.
    method m2.
    data oref type ref to c1.
    create object oref.
    write oref->a1.
    endmethod.
    enclass.
    Kindly Reward Points If You Found The Reply Helpful,
    Cheers,
    Chaitanya.

  • More Details about Info Objects

    I want to enrich my technical skillset.
    So could you experts pls guide me in more detail about Info Objects in SAP BI
    Thanks,
    Vijayakumar

    HI,
    Actually the info given on thatpage is a copy paste of the information from Help.sap.com.
    [Editing InfoObjects|http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a63cde07211d2acb80000e829fbfe/frameset.htm]
    [Creating InfoObjects: Key Figures|http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a63b3e07211d2acb80000e829fbfe/frameset.htm]
    And So on
    Regards,
    Gaurav

  • About Order object in ATG

    Hi,
    I have some confusions about Order object in ATG. Please see -
    When actually ATG creates an Order object and how?
    Is there any scenario where we should use synchronize on Order object?
    An ItemPricingEngine invoked through a price droplet. How/when an OrderPricingEngine gets invoked?
    Thanks.

    Hi,
    Don't get confused that we need to synchronize only those things which are shared between multiple users.
    We should synchronize order because there should not be more than one thread/process updating it , else you will get inconsistencies and invalid version exceptions as already pointed by gurvinder.
    About your 3rd point :
    pricing can be invoked in many ways from many places , like droplet , formhandlers , pipelines etc.
    Enable loggingdebug on important components like OrderPricingEngine , ItemPricingEngine , Pricing tools and various Pricing calculators and study the logs  then you will be clear on what is invoked and when is invoked.

  • Today! I have a few comments about the objective error iOS 7.0

    To contact Apple was difficult, because I have a few comments about the objective error iOS 7.0 operating system.
    On iPhone 4s, iPhone 5, this operating system slowly when I touch to apple apps such as notes, compass, telephone, ... very slowly. Also as simple to use application photo of about 4 minutes, iOS 7.0 on iPhone 4s was overheat and battery from 100% use 4 minutes to 96%, so quickly. In the lock screen (not control center) when playing song, I just press forward 1 song very difficult, strong problem. On Safari, I can not adjust the font size in Reader. why have app Facetime on iPhone 4, iPhone 4s?
    Hopefully, Apple can continue to fix bugs in iOS 7 for the client and myself. On the iPad 3 and iPad 4 are also many more errors such as freezes, slow to open applications, the iOS app does not fit 7 tablet.

    To contact Apple was difficult, because I have a few comments about the objective error iOS 7.0 operating system.
    On iPhone 4s, iPhone 5, this operating system slowly when I touch to apple apps such as notes, compass, telephone, ... very slowly. Also as simple to use application photo of about 4 minutes, iOS 7.0 on iPhone 4s was overheat and battery from 100% use 4 minutes to 96%, so quickly. In the lock screen (not control center) when playing song, I just press "back" 1 song very difficult, strong problem. On Safari, I can not adjust the font size in Reader. why have app Facetime on iPhone 4, iPhone 4s?
    Hopefully, Apple can continue to fix bugs in iOS 7 for the client and myself. On the iPad 3 and iPad 4 are also many more errors such as freezes, slow to open applications, the iOS app does not fit 7 tablet.

  • Notification about cache objects changes when node dies

    Hi Guys,
         Coherence 3.3.1/389
         .Net API 3.3.1.2
         Sorry, i did not find in forum something similar to my question.
         Well, i have this situation:
         I have 8 Coherence nodes.
         I have one client connected to Coherence node number 1.
         The client have been listening for notifications about cache objects changes.
         Coherence node number 1 dead for some reason (not enough memory).
         What's happened with the client which was connected to this node?
         I think it just reconnect to other one, but what's happened with notifications which occurs until the client reconnects?
         Regards,
         Dmitry.

    Hi Dmitry,
         Notifications are delivered only while the client is connected. So if the client or its proxy fail, upon reconnection, the client will need to recover appropriately.
         If you're using Coherence's built-in client-side data management features (such as Near cache or ContinuousQueryCache), Coherence will do this for you automatically (resynchronizing the local datasets).
         One other comment, the reconnection attempt is lazy and the client will not reconnect until your application code touches a clustered resource.
         (EDIT: If store-and-forward guarantees are required, then you can queue those messages on the server on a per-client basis in a dedicated NamedCache, which the client can then consume at its leisure whenever connected. This is an application-level construct.)
         Jon Purdy
         Oracle

  • Design patterns,about value object ,how?why?could you give me a soluttion

    design patterns,about value object ,how?why?could you give me a soluttion
    use value object in ejb,thanks
    i want not set/get the value in ejb,find the method to solve it ,use value
    object ?
    how? thanks.

    Hai
    Enter your telephone number here, at the top it will say your Exchange, Phone and cabient number. If it doesn't mention cabinet that means you are directly connected to the exchange and not via PCP.
    If you are connected to a cabinet and it doesn't say FTTC is available, ask your neighbor to-do the same test (they have 2 be infinity connected). If they are, then proceed to contact the moderators here. Though it could not be showing because all the ports have been used up in the FTTC Cabinet.
    If this helped you please click the Star beside my name.
    If this answered your question please click "Mark as Accepted Solution" below.

  • How to access ServletContext object of a webapp on remote server?

    Hi!
    I have a webapp, runs on tomcat, loads information from local db server, keeps them in servlet context, and publish these datas to web via jsp pages.
    I make run the same webapp on different location, different webserver and db server with different datas.
    Is it possible to link both ServletContext to each other, or access one from the another?
    What is the right solution, if I want to access all stored Objects of these independent webapplications, summarize and show them in one browser page, in one jsp?
    sorry for my poor english
    and thanks for any help,
    kind regards,
    henpanta

    It is not possible to access another servletcontext glueless using HTTP or any transfer protocol. Would be a potential security hole too. If you want to let communicate 2 webapps on different servers with each other, consider webservices.

  • Problem about replicating object from R/3 to CRM!

    Dear All:
          when i replicate the customizing object from  r/3 oltp to the crm system ,in the crm system ,uesing t-code:smq1,i can see the status was 'SYSFALL' in the queue information ,the detail is 'The current application triggered a termination with a short dump',in the r/3 system,i can't find the queue.who can give me a solution,i have set all the Cross-Connectivity about r/3 and crm ,it's ok.
    My CRM system version is 5.0
    thanks !

    Check Middleware settings.
    Regards,
    Rajesh Banka

  • About lock object

    I have one TABLE with TABLE MAINTENANCE GENERATOR 
    and it has also LOCK OBJECT.
    Now I have adjusted the table by making some normal fields as primary keys
    and regenerated Table  maintenance generator ,
    It seems to me lock object also adjusted( I am able to see the newly converted primary key fields in lock object( in se11 ) ).
    Does the lock object automatically adjusts ????
    If lock object adjusts automatically --> what about the function modules ENQUEUE_ztable DEQUEUE_ztable ? these function modules also gets adjusted ?
    do I need to check the associated lock object impact ?
    How can I check ?

    Hi,
    No need to delete the Lock object. Just <b>remove</b> the Table which you modified from Lock object & <b>add again</b>. You can add the lock Parameters manually. It will be drived automatically from Table key fields.
    You no need to delete the lock object.
    Raja T
    Message was edited by:
            Raja T

  • About Interface objects in Integration Repository

    Hi All,
       I want to know details about Data type enhancements & Context objects in Interface Objects.Please help me.
    Thanks,
    GOPI.

    Hi Gopikishor,
            _Context objects:_ Its nothing but  to access a  element payload of the message,in Simple terms,  X-Path expressions in the repoistery..
    Deeply Nested elements in the Message structure.
    Ex:
    <Header>
         <PurchaseOrgData>
                <Sender>
                       <PurchaseData> Goods</PurchaseData>
                 </Sender>
         </PurchaseOrgData>
    </Header>
    Define X-path for the above structure: \Header\PurchaseOrgData\Sender\PurchaseData\
    Once we can define the "Context Objects" we can use following situations..
    1) Receiver Determination: During the Receiver Condition in the Integration directory,
    2) Integration Process: During the processing business process depends upon content of message.
    Datatype Enhancement:
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/04623c4f69b712e10000000a114084/frameset.htm.
    Regards,
    Sateesh N.

  • A question about immutable object: Integer

    import java.lang.Integer;
    public class ImmutableObject {
         public void changeImmutable(Integer x){
              x = x+1;
              System.out.print(x );          
    public static void main(String[] args){
         Integer x = new Integer(1);
         ImmutableObject i= new ImmutableObject();
         i.changeImmutable( x);
         System.out.print( x);     
    Hello everyone,
    Why the output of the program above is 21 rather than 22?
    Is it because of +? Can anyone tell me about this?
    Thanks a lot.
    Kolapig

    Isn't it call-by-reference? All parameters to methods are passed "by value." In other words, values of parameter variables in a method are copies of the values the invoker specified as arguments. If you pass a double to a method, its parameter is a copy of whatever value was being passed as an argument, and the method can change its parameter's value without affecting values in the code that invoked the method. For example:
    class PassByValue {
        public static void main(String[] args) {
            double one = 1.0;
            System.out.println("before: one = " + one);
            halveIt(one);
            System.out.println("after: one = " + one);
        public static void halveIt(double arg) {
            arg /= 2.0;     // divide arg by two
            System.out.println("halved: arg = " + arg);
    }The following output illustrates that the value of arg inside halveIt is divided by two without affecting the value of the variable one in main:before: one = 1.0
    halved: arg = 0.5
    after: one = 1.0You should note that when the parameter is an object reference, the object reference -- not the object itself -- is what is passed "by value." Thus, you can change which object a parameter refers to inside the method without affecting the reference that was passed. But if you change any fields of the object or invoke methods that change the object's state, the object is changed for every part of the program that holds a reference to it. Here is an example to show the distinction:
    class PassRef {
        public static void main(String[] args) {
            Body sirius = new Body("Sirius", null);
            System.out.println("before: " + sirius);
            commonName(sirius);
            System.out.println("after:  " + sirius);
        public static void commonName(Body bodyRef) {
            bodyRef.name = "Dog Star";
            bodyRef = null;
    }This program produces the following output: before: 0 (Sirius)
    after:  0 (Dog Star)Notice that the contents of the object have been modified with a name change, while the variable sirius still refers to the Body object even though the method commonName changed the value of its bodyRef parameter variable to null. This requires some explanation.
    The following diagram shows the state of the variables just after main invokes commonName:
    main()            |              |
        sirius------->| idNum: 0     |
                      | name --------+------>"Sirius"       
    commonName()----->| orbits: null |
        bodyRef       |______________|At this point, the two variables sirius (in main) and bodyRef (in commonName) both refer to the same underlying object. When commonName changes the field bodyRef.name, the name is changed in the underlying object that the two variables share. When commonName changes the value of bodyRef to null, only the value of the bodyRef variable is changed; the value of sirius remains unchanged because the parameter bodyRef is a pass-by-value copy of sirius. Inside the method commonName, all you are changing is the value in the parameter variable bodyRef, just as all you changed in halveIt was the value in the parameter variable arg. If changing bodyRef affected the value of sirius in main, the "after" line would say "null". However, the variable bodyRef in commonName and the variable sirius in main both refer to the same underlying object, so the change made inside commonName is visible through the reference sirius.
    Some people will say incorrectly that objects are passed "by reference." In programming language design, the term pass by reference properly means that when an argument is passed to a function, the invoked function gets a reference to the original value, not a copy of its value. If the function modifies its parameter, the value in the calling code will be changed because the argument and parameter use the same slot in memory. If the Java programming language actually had pass-by-reference parameters, there would be a way to declare halveIt so that the preceding code would modify the value of one, or so that commonName could change the variable sirius to null. This is not possible. The Java programming language does not pass objects by reference; it passes object references by value. Because two copies of the same reference refer to the same actual object, changes made through one reference variable are visible through the other. There is exactly one parameter passing mode -- pass by value -- and that helps keep things simple.
    -- Arnold, K., Gosling J., Holmes D. (2006). The Java� Programming Language Fourth Edition. Boston: Addison-Wesley.
    ~

  • In what table are stored information about BOR objects

    Hi Gurus,
    I have to find all objects like classes, function modules, reports and other related to BOR objects. Let say that I have BOR object type. With this information where can I find information about it? In which table this information are storred?
    Best regards
    Marcin Cholewczuk

    Hi ,
    SWOTDI      Definition Interfaces
    TOJTB       Business object repository: Basic data
    u  can use search  help  in SE11 with  table name equal  to  TOJ*

  • Confusion about how object interact and are aware of each other

    I have this java applet
    Two of the classes it contains are the main class with the init method and a UI class that is code for the interface.
    the main class instantiates the UI class anonymously (i think you call it that) i.e it does not put it into a named reference it just creates it by calling new without assigning it to anything.
    When I click on a button from the UI class I want to call a method in the main class...but how so?
    At first I tried to make the function i want to call in the main class static so I could easily call it from the UI class...but then it began to get complex...so i just sent a reference of the main class to the UI class via its constructer.
    Now i want the main class to update a JTable in the UI class, but how? It does not have any reference to the UI class.
    What is really the standard method of operation for this sort of thing when objects have to be calling methods of each other. How do I make them aware of each other.

    the best way to do it is like this:
    public class Main {
      //this is the main class
      private static class MyUIFrame extends JFrame {
        //create the class. It is useable within Main this way
        //static means it doesn't implicitly 'know' about the Main class. You can also
        //remove this and call Main.this to use Main's methods
    }Edited by: tjacobs01 on Apr 11, 2009 2:28 AM

Maybe you are looking for

  • Print to PDF missing under Root user

    At the school where I work, for some activities we have an occasional need to use Root (System Administrator) rather than normal user accounts. Generally, everything seems to be OK, but we have noticed that when printing from any application the PDF

  • Get SYSID in XSLT mapping

    Hello, Does anybody know a way to get the sysid (or the current environment) at runtime using XSLT mapping. Some simple java code is also Okay Cheers Emile Message was edited by: Emile Hermans

  • Set up Internet E-mail

    I'm trying to Set up Internet Email address but it's impossible. I received message: "Bad Gateway The gateway revived an invalid response from the server when attempting to fulfill your request." I have T-mobile but my phone originally was from At&T.

  • AR reserve invoice vs. inventory status

    To Experts, Can anyone tell me how to fix this inventory status? AR reserve invoice was created and paid, however a delivery document was created separately which leaves the inventory shows committed 10, and available -10. At the moment the item phys

  • Handling sessions in BDC

    Hi all,          What do we code to create a new session in BDC Call transaction method.          Let me explain the situation in brief.     I have an issue where in i need to upload 5000 records. As per requirement i am supposed to upload only 1000