ServletContext and ServletContextAttribute listener query

I have 2 listener classes : One that implements ServletContextListener and other that implements ServletContextAttributeLIstener.
I have put println statements in each of the implemented methods of the corresponding listener.
I am using tomcat as container.
In my deployment descriptor I have the following entry for context init parameters:
<context-param>
          <param-name>     context name     </param-name>
          <param-value>     context value     </param-value>
     </context-param>
When I start tomcat I get the below output in the console.
Jun 9, 2007 10:48:19 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 9, 2007 10:48:19 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 906 ms
Jun 9, 2007 10:48:19 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 9, 2007 10:48:19 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
Jun 9, 2007 10:48:19 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
context initializes
attribute added:
context initializes
attribute added:
Jun 9, 2007 10:48:20 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 9, 2007 10:48:20 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 9, 2007 10:48:20 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
Jun 9, 2007 10:48:20 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jun 9, 2007 10:48:20 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1108 ms
As can be seen by the bold lines, the ServletContextEvent and ServletContextAttributeEvent are fired.
I can understand the initialization part, but what about the attribute one, i havent added any attribute, yet I get the corresponding event is fired.
Also from the output it seems that the initialization takes place twice.
I wonder if the container initialized the ServletContext object with some value and also adds some attribute to it. Please let me know if this is the case.
Also, is there a way by which the attribute that was added to the context object can be obtained in the corresponding listener class. The event.getSource() returns object of ServletContext I guess.
Regards,
Joshua

Check your tnsnames.ora file, it will have an entry like
listener_facdb =
(ADDRESS_LIST =
   (ADDRESS = (PROTOCOL=TCP) (HOST= danube103) (PORT=31415))
)When you create a listener on a non-default port, PMON should be able to register the database service(s) with this listener.
PMON utilises tnsentry naming method for this. PMON will look in tnsnames.ora file for the value it found in LOCAL_LISTENER.
If it doesn't find this entry in the tnsnames.ora file, it will throw error.
Alternatively, you could just use
alter system set local_listener='(ADDRESS = (PROTOCOL=TCP) (HOST= danube103) (PORT=31415))' scope = both;But this isn't very readable. Is it ?

Similar Messages

  • I purchased a song on my Ipod Touch 4 GEN. and i listened to it not 5 mins before i synced it with Itunes...then i looked in my Ipod music library and itunes library...GONE. but when i go to download, it wanted me to pay even tho i have bot it! HELP!!!

    i purchased a song on my Ipod Touch 4 GEN. and i listened to it not 5 mins before i synced it with Itunes...then i looked in my Ipod music library and itunes library...GONE. but when i go to download it, like with Apps when if you have purchased an app and it get's deleted...you can have it back for FREE
    and i tryed that with this song...and it says that " you have already purchased this song, would you like to buy it again?" but it wont let me get it again for free even tho i have bought it before...is there a way i can get it back with out having to pay??
    HHHHHEEEELLLLPPPP!!!! PPPLLLEEEAAASSSEEE!!!!!!

    You buy one and only one download.
    As it should have been transferred to your computer when you synced, you can contact itunes support and ask for an exception.
    http://www.apple.com/support/itunes

  • MDB and Database - Listener port stops working

    Hi,
    I have created an MDB which does the following when a message is received from the queue.
    1. Store message in database
    2. do some processing
    At step 1, if there is any issue with the database connection (e.g. database is not available etc), I rollback transaction. My idea is to leave the message on queue for now and retry it again after some time unless the database is back again. "Maximum retries" of the listener port is set to N but since there is no retry interval available, all N retries are done in a flash and my listener port stops working. I cannot use backout mechanism as I have to wait for the database to be back again. What are my options?

    usmanchaudhry wrote:
    Hi,
    I have created an MDB which does the following when a message is received from the queue.
    1. Store message in database
    2. do some processing
    At step 1, if there is any issue with the database connection (e.g. database is not available etc), I rollback transaction. My idea is to leave the message on queue for now and retry it again after some time unless the database is back again. "Maximum retries" of the listener port is set to N but since there is no retry interval available, all N retries are done in a flash and my listener port stops working. I cannot use backout mechanism as I have to wait for the database to be back again. What are my options?i believe you need an XA driver and a transaction manager, for starters.
    a simple JDBC rollback won't do it.
    which app server are you using?
    which jms provider?
    %

  • I would like to create a playlist of some of my voicememos to hear on my iphone5. I have no problem creating the list and can listen on playlist on computer but not when i sync to my phone. How can I listen to voicememos in a playlist on my iPhone?

    I would like to create a playlist of some of my voicememos to hear on my iphone5. I have no problem creating the list and can listen on playlist on computer but not when i sync to my phone. How can I listen to voicememos in a playlist on my iPhone?

    Hi czigrand,
    Thanks for visiting Apple Support Communities.
    Currently, you can gift dollar amounts or individual items (EG. songs) on the iTunes Store. See this article for more information:
    In the iTunes Store, you can gift a dollar amount or specific music, movies, TV shows, or apps from your iPhone, iPod touch, iPad, Mac, or PC. Follow these steps to send a gift from the iTunes Store.
    iTunes: Sending iTunes Gifts
    http://support.apple.com/kb/HT2736
    Best Regards,
    Jeremy

  • Creation and transportation of query from development to simulation system

    Hello experts,
    I need to create a new Query in the development  system in the General Ledger folder in Financial reporting.  and then I need to transport the same to the  simulation system. what are the correct steps I  need to follow to do the same if have to avoid any issues during this transportation.
    Do I need to do any modifications to the role ZS_XX_BEX_MENU and transport the same?
    Could anyone help me in this regard giving me the exact procedure I need to follow.
    Regards

    No need to modify, but if it is $temp then change it has ur won request.
    follow the genral procedure
    1)In RSA1 Go to Transport tab and collect ur query.
    Drag to right screen
    If it is in $Temp change it to your own request. For this You may need Access.
    2)Query contains all objects which were used in that query.
    if any Info object that are created newly then check for Transport
    3) Then, finally click on transport(Truck) icon
    4) By default, it will collect all new objects including newly created Info Objects also. You can change the collections of your own selection.
    You will get a Request Number here. Please save this Number so that you can check this at SE09
    5) In SE09 search for your Request Number.
    6)Release The request by subsequent process onwards( Means sub contents like infoprovider first and then Query)

  • How to failover SCAN VIP and SCAN Listener from one node to another?

    Environment:
    O.S :          HP-UX  B.11.31 U ia64
    RDBMS:   Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    It is a 2 Node RAC.
    Question:
    How to failover the SCAN VIP and SCAN LISTENER running on node 1 to node 2?
    What is the relation between standard LISTENER and SCAN LISTENER ?
    Why do we need LISTENER, when we have SCAN LISTENER ?
    When I tried with SRCVTL STOP LISTENER , I thought the SCAN LISTENER adn SCAN IP will failover, but it did not?
    Also please clarify if I use SRVCTL RELOCATE SCAN -i 1 -n Node1
    Actalluy I am trying that by moving the SCAN listeners so that when I do PSU 7 patching on 1 node, no incoming attempt to connect will spawn
    a process and thereby opening files in $ORACLE_HOME (which would prevent the patch from occurring)
    Please clarify my queries.
    Thanks,  Sivaprasad.S

    Hi Sivaprasad,
    1. The following link will help you for SCAN VIP and SCAN LISTENER failover from 1 node to another.
    http://heliosguneserol.wordpress.com/2012/10/19/how-to-relocate-scan_listener-from-one-node-to-another-node-on-rac-system/
    http://oracledbabay.blogspot.co.uk/2013/05/steps-to-change-scan-ip-address-in.html
    2. The Standard LISTENER is specific for particular node for which it is running. It cannot be relocated as its specific for the node its running. SCAN listeners are not replacements for the node listeners.A new set of cluster processes called scan listeners will run on three nodes in a cluster (or all nodes if there are less than 3).  If you have more than three nodes, regardless of the number of nodes you have, there will be at most three scan listeners. So no relation for standard LISTENER and SCAN LISTENER.
    3. Hmmm. let me put it in easy way for this question. All the RAC services like, asm, db , services, nodeapps registers with this SCAN_LISTENER. So if any of these services (asm, db , services, nodeapps) got down/not running, the SCAN_LISTENER will know the down status, and if any client requests to access the node/service which is down, the SCAN_LISTENER will redirect the client request to the least loaded node. So here all these process will happen without the knowledge of client. And As usual the standard LISTENER looks only for incoming request to connect with the database. So we need both LISTENER and SCAN LISTENER.
    4. If you provide SRCVTL STOP LISTENER,  it stops the default listener on the specified node_name, or the listeners represented in a given list of listener names, that are registered with Oracle Clusterware on the given node. No failover will happen under this case.
    5. Yes you can relocate if you want to relocate the scan.
    Hope this helps!!
    Regards,
    Pradeep. V

  • SQL Dev 2.1:Ability to save and load visual query models?

    At SQL Dev 2.1, do we now have the ability to save and load visual query models as with TOAD? Or has that functionality been rolled into the for-pay Data Modeler extension? Seemed strange to hide the functionality deep within SQL Worksheet, then not allow query models to be saved or loaded. From what I recall, load/save was scheduled to be in 2.0.
    I've not yet downloaded and installed 2.1, but also as I recall, it was promised to be a significant (e.g. new-feature rich) release. Has it lived up to that promise? Hoping also that it's not so buggy as to not merit an upgrade. At my workplace, folks have different versions of SQL Dev 1.X installed, each for the purpose of retaining functionality that got broken in future releases, etc. Would love to be able to advise them to retire their 1.X installs in favor of 2.1.
    Edited by: Dana N on Jan 21, 2010 6:45 AM

    Dana, We are working on the query builder. We have not done anything with it in recent releases as we knew that it needed completely overhauled and a
    couple of bug fixes were not going to give us the query builder we needed. Sue will be able to tell you more as the we get closer to releasing it as a feature.Thanks Barry. I know it's probably impossible to give firm dates, but my colleagues would love to know, ballpark, when query builder might be ready. Any particular year/quarter that's targeted for?
    A lot of the bugs in the 2.1 are probably my fault as we decided to build a framework which allowed tasks to be scheduled like eclipse and push them to the
    background. Coupled with this, we tore apart the worksheet to allow us to fit tasks in, but to also give us the ability to do some of the enhancement requests
    that you guys, our users, have been asking for. While its not perfect, I believe its getting much better from both a functionality and performance standpoint. The
    worksheet will not change again and there are no enhancements logged or scheduled which will do that. The issues that have come as part of 2.1 are being
    addressed and we are fixing the highest priority ones as we speak. One of my priorities is to make these components as rock solid as possible.Thanks again. It really is a nice tool to work with, and I'm grateful to have it. I would choose stability for existing features over new ones, but I suppose there always has to be a balance in development. What was really scary in the past was getting bizarre / wrong answers in query results--that's a complete show stopper; e.g. clicking on a row/col intersection in a result set row would show strange and false values. New features can wait, but core functionality must be solid. If one can't presume integrity of query results, it's game over--using a version of SQL Developer that returns inconsistent result sets between runs could be Considered Harmful, or so it is to me.
    Anyway, thanks for responding and I hope Oracle Corp gets you whatever assistance you need to improve the quality of existing functionality while adding new features; with one not being at the expense of the other. :-) Glad also to see Sue has authored a book on the tool. Hopefully that will drive customer demand and force increased allocation of development resources toward the product. I'd like to think having out-of-the-box tools that are a joy to use might even increase market share.
    Data Modeler I would love to use, but am completely priced out of it. Enterprise Architect from Sparx Systems is the best value there so far as I can tell.
    Dana

  • TS4124 how do sync a book that I have added as music to itunes on my iMac and then listen to this book on my iPhone.  Itunes says the icloud status is waiting so the song(book) is in the process of being matched but has not yet been processed.  (no help t

    how do sync a book that I have added as music to itunes on my iMac and then listen to this book on my iPhone.  Itunes says the icloud status is waiting so the song(book) is in the process of being matched but has not yet been processed.  (no help there)

    Hi,
    Why are you trying to add a book as music? It will not match as this only applies to music files. It will be uploaded if the bit rate is 96 Kbps or greater.
    You should change media type to audiobook and you will be able to sync by wifi or USB.
    Jim

  • Pass values to bind variales and execute VO query

    Hi All,
    I have a requirement to add validation to an appraisal page via OAF.
    As a part of testing I need to check, if the values in the query of VO is displayed in the page.
    VO - QuestAnsValuesVO
    EO - QuestAnswerValueEO, QuestFieldEO
    The VO query is
    SELECT * FROM (SELECT QuestAnswerValueEO.QUEST_ANSWER_VAL_ID, QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID, QuestAnswerValueEO.FIELD_ID, QuestAnswerValueEO.OBJECT_VERSION_NUMBER, QuestAnswerValueEO.VALUE, QuestFieldEO.FIELD_ID AS QUEST_FIELD_ID, QuestFieldEO.NAME, QuestFieldEO.TYPE, QuestFieldEO.HTML_TEXT, rank() over (partition by QuestFieldEO.NAME order by QuestFieldEO.FIELD_ID) AS RANK, QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID AS QUESTIONNAIRE_ANSWER_ID1 FROM HR_QUEST_ANSWER_VALUES QuestAnswerValueEO, HR_QUEST_FIELDS QuestFieldEO WHERE QuestFieldEO.QUESTIONNAIRE_TEMPLATE_ID(+) = :1 and QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID(+) = :2 AND QuestFieldEO.FIELD_ID = QuestAnswerValueEO.FIELD_ID (+)) QRSLT ORDER BY QUEST_FIELD_ID
    I am trying to execute this query in the extended controller class so that i can get the values printed on the page. I am getting SQL exception saying - not all variables are bound.
    How do i pass values to bind variables :1 and :2 and execute this query?
    Please help.
    Thanks
    Geetha

    Geetha,
    Instead of :1 and :2 use a named bind variable as part of your VO and then set either a default value or set its value during runtime. See this example on how to create bind variable:
    http://formattc.wordpress.com/2010/04/02/custom-java-bind-variable-in-a-where-clause-of-an-adf-view-object/
    Once created, you can set its value during runtime either in ApplicationModuleImpl or in ViewObjectImpl class
    e.g.,
             ViewObjectImpl view = this.getEmpView();
            VariableValueManager vm = view.ensureVariableManager();
            vm.setVariableValue("empNo", value);
            view.executeQuery();regards,
    ~Krithika

  • Need information abt ServletContext and ServletConfig

    i want to know the information and difference b/w in ServletContext and ServletConfig pls help me.
    Thanks&Regards
    kishore

    ServletConfig serves a very specific purpose, a means to get configuration parameters from the web.xml INTO you servlet. AFAIK, it doesn't serve much purpose beyond that...
    ServletContext provides the mechanism for a Servlet to communication with the Container. You can get path information, use it to store application wide attributes and parameters, etc.
    The two really have absolutely nothing in common. So to answer your rather vague question:
    "The difference b/w ServletContext and ServletConfig: Everything."
    Do you have a more specific question? Is there a particular thing (like maybe the fact they both have methods named getInitParameter and getInitParmaterNames....) that is confusing you?

  • Start and Stop Listener

    Hi,
    Can someone please tell me the commands to stop and start listener?
    I can't find them anywhere.
    Thanks,

    Hi,
    >>I can't find them anywhere.
    Starting and Shutting Down the Listener
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14196/network004.htm#sthref203
    for more information, you can take a look on:
    http://www.praetoriate.com/teas_prae_util22.htm
    Cheers

  • Rename RKF and CKF in query using ABAP

    Hi guys,
    I am supposed to rename RKF and CKF in query using ABAP.  (RKF: restricted key figures, CKF: calculated key figures)
    Right now, I am using FM RSZ_X_COMPONENT_GET to load query definition. I can find and rename all used RKF and CKF technical names and rename them in returned tables and then save it using  RSZ_X_COMPONENT_SET.
    But  I see that both RKF and CKF are reusable elements and they are can be probably used somewhere else.
    Can you tell me where can I find information in what header table are they saved or maybe some "where used" table.
    What FM am I supposed to use to rename CKF and RKF in given query and also in other parts of SAP system?
    Even some information how to get deeply into this problem would be very helpful.
    Thanks.

    Hi,
    You can see the query element definitions in RSZ* tables, but not sure if you will be able to find complete info, like a particular RKF is restricted by following selections by looking at the tables. Also, please do not try to change the info directly in the tables even though you seem to have a lot of objects to changes.
    Hope this helps...

  • Link Query and Ref Cursor Query

    Hi all!!
    How can I link Query and Ref Cursor Query??
    I mean, How can I pass input parameters to the PL/SQL procedure if they are not User parameters but they come from another table??
    Thanks a lot
    F.

    I have searched the forum and this is the closest to my problem.
    Just started using ref cursors in my reports.
    The problem I am running into is that I have two ref cursor queries in my report - they each contain a column named seq_no which forms a join (in the database) .
    My report returns the correct number of records in each query, but I can't find a way to enforce the join. I've tried all the methods I can think of including combining the results into one query.
    The IDE won't let me join on a column and when I join on the group (which I make only contain the seq_no fields) that join is ignored.
    Can anyone help me on this?

  • I have been using itunes for 6 years now, and was listening to my music the other day and noticed that some of my songs were stopping short of finishing.

    I have been using itunes for 6 years now, and was listening to my music the other day and noticed that some of my albums songs were stopping short of finishing. They just stop and go to the next song. Any solutions? 

    I have experienced the same problem on my my iPad1, my former iPhone 4 my laptop and even my new iPhone5  though I had really hoped that the new phone and IOS would solve the problem.  About 5% of the songs are affected and the stoppage can range from seconds short to a minute and a half.  The file shows more of the music left, but it stops playing and goes to the next song.  Very aggravating.  Appears to happen on purchased and uploaded music.
    Any help Apple?

  • No flashback versions query and flashback transaction query tools on EM?

    No Flashback Versions Query and Flashback Transaction Query tools on EM Console?
    How to do Flashback Versions Query work and Flashback Transaction Query on EM Console?

    No Flashback Versions Query and Flashback Transaction
    Query tools on EM Console?WOrks on mine.
    How to do Flashback Versions Query work and Flashback
    Transaction Query on EM Console?Part of the Maintenance , Recovery wizard. Not intended to be a casual query tool.

Maybe you are looking for

  • 'mailto' links no longer open a new message

    Hi, Since I upgraded to Lion I no longer get a new message with a pre-filled address when I click a mailto link on a webpage.  Is there a way to get this functionality back?  Also, when I click the Mail icon in the dock I no longer get taken to my in

  • Some videos do not play when "Block all sites from storing information on this computer" is selected

    I have CS5 installed on my i Mac, running OS X Lion 10.7.5. Using Firefox, I have been having trouble with Adobe TV and the other instructional video's, however some of the video's promoting the new products do work (not all), but when I right click

  • How to display html content in flex hero..

    i need to display html content using flex hero for balckberry playbook..i could not find a component for it..i have tried with spark text area by setting its html text property via MobileTextField. bt i need a webview to load html content to execute

  • (1) Partner Code Invalid !

    Hi All, I have just came across a rather strange issue. When adding a Business Partner the system is retuning the following message (1) Partner Code Invalid !.  I have tried various combination of letters and numbers but cannot add a Business Partner

  • Elements 7.0 Patch

    I just downloaded a patch for elements 7.0.  It's now telling me I have to uninstall then reinstall.  I bought it online and don't have cd.  I'm not a seasoned computer person.  Help.