Sequence of events in shutdown

Hi,
What is the sequence of events that occur when the
server is issued a SHUTDOWN command? like the destroy of ejb,servlet, jndi, etc,
and the user shutdown class. Is the shutdown class is performed before the server
shuts down? what
i am trying to say is what kind of resource I still can use in shutdown class.
Last week when i shutdown our production server,
I saw javax.naming.NameNotFoundException thrown by jsp page,
which called the ejb but obviously the ejb already unbounded.
Shoud the server stopped to listen the request first and then
do some other stuff?
Thanks.

I am using a 'On Submit After Page Submission -
Before Computations and Validations' process to do
all my validations in a generic way.Not sure what you mean, could you please elaborate?
For the problem you told about in point 4.
May be you can build a validation in a before
computation process or build a computation in a after
validation process.I guess, but writing a validation as a Process kind of defeats the purpose. Technically, everything can be written as a "process", validations and computations are nice because they keep the code clean, operate in the context of a specific page item.
Anyway, I was not looking for a workaround, I was trying to understand why things are designed the way they are.
Scott: Could you take a look at my questions when you get a chance? Thanks.
Thanks

Similar Messages

  • How to realize the other three events triggered by a sequence of events occurs?

    How to realize the other three events triggered by a sequence of events that occurs between Labview, and the time interval between three events for the 50ms?
    1110340053

    Are you another student who feels the need to post their "student ID" number as a part of the message?  There is really no need to do that, it is meaningless to us.
    You should ask your instructor to answer your questions rather than allowing them to turn the whole class of students loose on the forums usually asking the same identical question.
    At least in your case, the question is different from most we've seen.  Unfortunately, you haven't asked a clear enough question for us to understand what you are talking about.
    What "events" are you talking about?  Post a VI that demonstrates the code that you have written so far.

  • Sequence of events and handlers in webdynpro

    Hi,
    I am confused with the sequence of events triggered in webdynpro.
    What is the sequence of the events like WDDOINIT of window, view, Inbound plug handlers etc. I am more looking into the details like for example
    I have a window that opens a view. The sequence of events I expected would be
    1) WDDOINIT of Window
    2) Handle inbound plug for window
    3) WDDOINIT of View
    4) Handle inbound plug for view
    Much to my amazement I found that the sequence is
    1) WDDOINIT of Window
    2) WDDOINIT of View
    3) Handle inbound plug for window
    The inbound plug of view is not called at all.
    So is there an exhaustive reference that explains these things. Most of the references I found explain only about WDBEFOREACTION, WDMODIFYVIEW etc. But not about WDDOINIT or WDDOEXIT.
    Any pointers in this regard will be great.
    Thanks,
    Anand

    A great way to learn WDA and build a simple WDA at the same time.
    Define a simple CONTEXT. with 2 attributes
         CONTROLLER_NAME string
         EVENT string.
    On a view declare a table that shows this table.
    IN EVERY STANDARD METHOD
    add an entry to the table so the table grows:
          context_node->bind_table NEW_ITEMS  ( the new row in this table
                                                 SET_INITIAL_ELEMENTS =  true
    Add a button that calls a dummy action
    Add a button that exits.
    Even navigate  to and from a view.
    you will learn the phase model in a flash.
    About 15 20 mins  work.
    worth it.  Thats how I learnt it.
    Cheers
    Phil.

  • Sequence of events execution in ABAP reports

    can anyone explain me the Sequence of events execution in ABAP reports

    Ámit Güjärgoüd wrote:
    > search-before-post  Event Must before any posting.Else  <delete-after-input event triggered by moderator> would be trigger and thread may be going to Dump as well without ST22 information(What haapend,How to correct error) available 
    >
    > Edited by: Ámit Güjärgoüd on Oct 7, 2008 7:42 AM
    this looks perfect ABAP event sequence example.

  • Sequence of events in accept processing

    The sequence of events in accept processing is
    http://tinypic.com/foj80w.jpg
    Questions
    1. When would a Before Computation branch be used? Real-world examples.
    2. Similarly, when would a On Submit Before Computation process be used?
    3. When would a Before Processing branch be used?
    4. Why do computations fire before validations? Dont computations deserve to act upon validated session state? Currently, if my validation fails, the computation gives an error, so I have to code some twisted condition to "anticipate" that the validation is going to fail and if so, dont run the computation. Kind of defeats the purpose of the validation.
    Thanks

    I am using a 'On Submit After Page Submission -
    Before Computations and Validations' process to do
    all my validations in a generic way.Not sure what you mean, could you please elaborate?
    For the problem you told about in point 4.
    May be you can build a validation in a before
    computation process or build a computation in a after
    validation process.I guess, but writing a validation as a Process kind of defeats the purpose. Technically, everything can be written as a "process", validations and computations are nice because they keep the code clean, operate in the context of a specific page item.
    Anyway, I was not looking for a workaround, I was trying to understand why things are designed the way they are.
    Scott: Could you take a look at my questions when you get a chance? Thanks.
    Thanks

  • Changing date (and sequence) of events by changing dates of photos no longer seems to work. Any idea what to do?

    I am scanning in old slides and negatives (from the 1960s and 70s), and I want to get the resulting "events" in sequence from when the photos were taken, rather than when they were scanned. So I have been changing the dates of the photos, and previously this resulted in the associated event moving to the proper sequence. This definitely worked a month or so ago, both with prints scanned in on a flat-bed scanner, and also with slides and negatives scanned with a Veho scanner. That was faulty, however, and so it has been replaced with a Plustek 7500i scanner, using SilverFast scanning software, and importing the resulting images into iPhoto. I have recently tried to change the dates of the resulting events, and it doesn't seem to work as it used to. There has been an update to iPhoto 9.1.3 since my earlier success.
    Take for example one event, CS73A. Hovering over the event in the "All events" display gives dates of 1 Apr 2011 to 2 Apr 2011; these are the dates the slides were scanned in. If I open the event and choose the Info tab, it gives the event date as 02/03/1973 (which is the approximate date that I changed it to). I had done a batch change on the event this time, so the date and time on the first slide is 2 March 1973 09:30:48. Each successive slide is 1 minute later, and the last is 2 March 1973 10:08:48 (38 slides). I asked for the dates in the files to be changed as well.
    I don't know what I'm doing that's different from before. The only things I can think of are (a) something has changed in the iPhoto update, or (b) the SilverFast software stores the scanning date in some part of the EXIF that iPhoto can read but not change. I don't have tools to examine the EXIF unfortunately.
    What to do?

    Chris, I have run into the same problem.
    Try this:
    Open an event with more than one photo in it.
    Adjust the date of one or more photos. The event date does not update.
    Delete any one photo. The event date now updates to match the above date change.
    Undo the delete photo. The event date stays matching.
    Change the date of any photo again. The event date updates now every time.
    If you close the event and reopen it, you have to start over with the delete one photo thing.
    I don't understand it but it works here.
    I also have had the problem of events not sorting themselves in order of the dates when VIEW, SORT, BY DATE is selected. This seems to affect only the events were photo date changes had been made. Using the delete thing seems to keep the events in order.
    Another funny thing: When I put photos into iMovie the times in iMovie show as 7 hours off the photo time.
    I think Apple owes us an update to iLife!

  • Sequence of Events Fired and Triggers Fired in Forms.

    Hi,
    Please help me to know how the events and Triggers will be fired in Forms Developer 9i.
    Thanks in Advance.

    Please take a look into Forms-Builder Online Help, there you'll find some sequence diagrams describing the order of Triggers firing on certain actions.
    e.g. search for "Post and Commit Transactions"
    brds,
    Peter

  • How can I guarantee a sequence of events?

    Hi all,
    I am running a LabView application that communicates via a serial port and I have a section of code that retrieves a series of data values. The sequence I go through is this:
    1. The user presses a button to initiate the data retrieval
    2. An event fires, starting the sequence
    3. A command asking for a data point is enqueued to be transmitted on the serial port
    4. The application waits for a notifier
    5. The DUT sends back the data
    6. The application receives the data and generates the notifier
    7. The event handler proceeds to the next data point and the process repeats
    I have to make sure the events go in this order, at least to make sure the entire while loop in the attached .jpg executes before we leave the loop. I keep getting timeouts. Any ideas?
    Thanks,
    Jason
    Attachments:
    Get Gains Event.jpg ‏373 KB

    Hi Jason
    First of all - remove the while-loop from the event-structure. Otherwise it will be blocked until the while-loop finished execution.
    Put it in a separate while-loop. The sequence you need can be done using a state-machine (there are templates and examples to this topic).
    What I can say to the timeout - either increase the value you set or try to recieve the data several times.
    Hope this helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • Sequence of events after ConfigMgr Client has successfully installed

    So, I was just wondering is there anything official documented about exactly what happens after the Client has successfully installed and in particular the timings involved in these events?
    For instance, My clients in my test lab will always receive their patches and applications after the client is installed - but sometimes it could take 5 mins for the process to start other times it could take 45 mins before I see anything starting to happen.
    (I'm not talking about app and patch download and install times).
    I know the general answer is that ConfigMgr "needs time" - but I would just like to be able to know exactly what happens in case I ever need to explain it.
    Thanks!

    Hi,
    Theoretically, client will try to retrieve policy after SMS Agent Host service startup. But there are some processes lead to the time is undetermined, such as communicate with MP etc.
    Best Regards,
    Joyce Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Check the sequence of events

    Hi all.
    I have to check the order of a series of events than represents the route of some product. Depending if i'm receiving or delivering the product can occur differents events, the problem is that not all the events are sequential.
    For example:
    I f i am delivering a product, can occur any of this events
    1.- Loaded
    2.- Stopped for repair
    3.- Released for repair
    4.- Stopped for rain
    5.- Released for rain
    6.- Delivery
    The 2 and 3 events are sequential such as 4 and 5, but 2 is not always before 4. Another variant is that the events 2 and 3 could happen but not 4 and 5 or vice versa.
    To complete my task I have only the following tables:
    -- If a delivery or receiving cargo
    CATALOG _ROUTE (
    ID_R      NUMBER
    TYPE      VARCHAR2
    -- All possible events
    CATALOG_EVENTS(
    ID _E             NUMBER
    TYPE      VARCHAR2
    -- Combination of events and routes
    ROUTE_EVENTS(
    ID_RE           NUMBER
    ID _R                  NUMBER
    ID_E          NUMBER
    Precedence     NUMBER
    The precedence field is used only for certain cases, such events 2 and 3 or 4 and 5.
    -- Events
    Events(
    ID_EV NUMBER
    EVENT_DATE DATE)
    The aim is to ensure that all events have been captured correctly

    Hi,
    Welcome to the forum!
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data. You don't have to post a lot of data. In this case, it looks like maybe six routes (some of which are valid, and some of which have various illegal combinations of events) would be enough.
    This looks like a job for analytic funtions. LEAD and LAG are great for comparing values from consecutive rows of the the same data set. Other analytic functions, such as COUNT, FIRST_VALUE and MIN, sometimes combined with a CASE expression, can find values from farther away.
    Sorry, I don't fully understand your business rules, so I can't be more specific now. Maybe I could show you exactly if I had a concrete example, including CREATE TABLE and INSERT statements for all the relevant tables, and the results you wanted from that data.

  • Sequence of event tasks

    Hi All,
    I defined 2 different tasks on change and modify event of the attribute MXREF_MX_PRIVILEGE to change the group assignments in Active directory.
    When I change the value of MXREF_MX_PRIVILEGE from  "<mskeyvalue_priv1>|<mskeyvalue_priv4>" to "<mskeyvalue_priv1>|<mskeyvalue_priv2>|<mskeyvalue_priv3>", sometimes priv1 is assigned in AD and sometimes not, because the adding event is finished before the delete event.
    How do I know the deleting event for priv1 is finished before the modify event?
    thanks,
    Joachim

    Hi Joachim,
    I read your question again. I think there is a way to prevent one job to start before another has finished.
    Did I get you right that you first handle the add event for
    <mskeyvalue_priv1>|<mskeyvalue_priv4>
    and then the modify event for
    <mskeyvalue_priv1>|<mskeyvalue_priv2>|<mskeyvalue_priv3>
    sometimes the delete handler finishes faster than the add handler?
    If so, then I can perhaps answer the question. What you can do is to check in table mxp_provision whether an instance of the event handler is still running. Let's say the event handler is an ordered task group with id 100 and the mskey of the person is 200 then the statement to check whether something is currently being processed is:
    select count(mskey) from mxp_provision where mskey=200 and parentid=100
    If the result is 0 then nothing is in the queue.
    Another question is how you make the other operations wait. Here I have 2 approaches, one is simple, one is complex:
    1) you code the query above in a conditional task and if result is >0 then you wait some minutes and try again then. If it doesn't succeed after several retries then make the entire thing fail.
    2) You make the event handler run into an approval task. This way the execution is stopped until the approval is approved. This is a kind of semaphore mechanism: If somebody else has the lock then I wait until the lock is released. The lock holder must run a query when done in order to determine which other tasks are waiting in an approval and approve the one which waits the longest. All this can be done with a little scripting. But I wouldn't like to implement this, it's a pretty tedious.
    Cheers,
    Kai
    http://kaidentity.blogspot.com/

  • Running a sequence of events

    I'd like a bit of advice if possible on my 'solution' to a requirement:
    The requirement is to have a 'Save and Close' button to update a table (using MRU) in a popup window, then close the popup.
    Sounds simple? - It probably is and there's quite a few posts relating to this general subject. My problem was that I wanted to retain the MRU (multi row update) process, rather than call a bespoke stored procedure which would have updated the data and contained the appropriate JavaScript to close the popup after the process finished.
    My work-around was to put window.close() script in the 'Success Message' part of the MRU process but this seems very clunky. How should I go about doing this?
    Thanks ,
    Toby

    For the sake of anyone else drifting through this particular mire - one option I'd tried was to branch (after processing) to a URL when my button request evaluated to true.
    The value I'd put in the URL was "javascript:window.close()". The engine was trying to direct to to a page with this name on my server which caused me great confusion, as I was assuming the behaviour would be the same as when directing to a URL following a button click. (assumptions, assumptions).
    Finally, I realised there was a 'Branch to PL/SQL' option in the create Branch wizard, which enabled me to add the following code in the "Action" section
    begin
    htp.p('script language = "javascript">');
    htp.p('window.close()') ;
    htp.p('</script>') ;
    end ;
    Interestingly, I alighted on this by searching through references to 'branches' on this forum, where initially I thought my problem was with using default MRU.
    Cheers,
    Toby

  • Unable to capture startup and shutdown event of Photoshop in automation Plugin.

    Hi,
    I am creating an automation plugin and I want to register some events. I have seen listener plugin sample to register event in startup and unregister event in shutdown. I have used same code in my plugin but I am unable to capture the startup nad shutdown event of Photoshop. On clicking the menu item of my plugin the calls come inside the AutoPluginMain but during the startup or shutdown of plugin, the calls does not come inside the AutoPluginMain.
    I am unable to detect the cause of the problem. Can someone please giude me??
    Thanks in advance.

    Hi Tom,
    Thanks for the suggestion.
    Yes, I am working on Windows. As you suggested, I compiled .rc file but the compile option for .r file was disabled. After compiling the .rc file, I again rebuild the complete project and tested my build. But still I was not able to achive the desired result.
    Any other thing that I need to do to make it work?
    Thanks

  • Sun Access Manager Event Sequence

    I have a third party black box piece of hardware that is redirecting browser requests to my server for authentication. I want to utilize the Sun Access Manager to perform these authentications. Do I need to use the Policy Agent, or should I attempt to communicate directly with the Access Manager? What benefit will I gain from including the Policy Agent into the mix?
    If I don't use the policy agent, here is the sequence of events as I understand them:
    1) Browser hits Black Box (BB) for protected information.
    2) BB redirects the browser to me.
    3) Browser sends me a SAML snippet. I decode and inflate the snippet, then send it off to the access manager (AM).
    4) The AM throws an invalid id exception because the user has never logged in.
    5) I catch the invalid id exception, and redirect the browser to the AM login URL. The user enters a valid id and password and hits submit.
    6) ... ?
    Is this correct up to step 5, and what happens after step 5? Any hints would be greatly appreciated.

    Okay, never mind then.

  • In sequence events - error?

    I am trying to make a sequence of events happen one after another. I have a background image that I want to fade in, blur, and then a panel slides in. Flash is giving me 2 errors when I test:
    Description: 1119: Access of possibly undefined property MOTION_CHANGE through a reference with static type flash.events:Event.
    Source: blurTween.addEventListener(TweenEvent.MOTION_CHANGE, onMotionChanged);
    Description: 1119: Access of possibly undefined property MOTION_FINISH through a reference with static type flash.events:Event.
    Source: blurTween.addEventListener(TweenEvent.MOTION_FINISH, onMotionFinish);
    Thanks.
    import fl.transitions.*
    import fl.transitions.Tween
    import fl.transitions.easing.*
    import flash.filters.BlurFilter
    import fl.transitions.TweenEvent
    var BgTweenAlpha:Tween = new Tween(behindTheBrushBg, "alpha", Strong.easeOut, 0, 1, 1, true);
    BgTweenAlpha.addEventListener(TweenEvent.MOTION_FINISH, onAlphaFinish);
    function onAlphaFinish(TweenEvent:Event):void{
        var totalBlur:Number = 0;
        var blur:BlurFilter = new BlurFilter(totalBlur, totalBlur, 3);
        behindTheBrushBg.filters = new Array(blur);
        var blurTween = new Tween(blur, "blurX", Strong.easeOut, blur.blurX, 8, 1, true);
        blurTween.addEventListener(TweenEvent.MOTION_CHANGE, onMotionChanged);
            function onMotionChanged(TweenEvent:Event):void{
                blur.blurY = blur.blurX;
                   behindTheBrushBg.filters = new Array(blur);
        blurTween.addEventListener(TweenEvent.MOTION_FINISH, onMotionFinish);
    function onMotionFinish(TweenEvent:Event):void{
        var panelTweenX:Tween = new Tween(behindTheBrushPanel, "x", Strong.easeOut, -460, 0, 1, true);

    From a brief look you pass a wrong event into the event handler:
    function onMotionFinish(TweenEvent:Event):void{
    It should be:
    function onMotionFinish(event:TweenEvent):void{

Maybe you are looking for

  • MacBook Pro 15 with Windows 8.1 installed via Boot Camp problem with keys "@" and " " of the keyboard

    Hello, I have a MacBook Pro Retina Maverick in 2013 on which I installed Windows via Boot Camp 8.1. The installation went well but when I am running Windows 8.1, I have a problem with "@" and "<" keys on the keyboard. When I type the "@" key, I get "

  • Switch on Condition

    Hi,  I want to capture ON instant in switch. In my application want to clear the Chart's history by switch, when it is changes from OFF to ON . I am using switch when pressed as mechanical action. Please give me some ideas help me out... Thankyou

  • Hw to know if there is any related ldb

    convert the following select statement into a GET stmt. for this we need to have a ldb relating three tables t001w--knvvtvkbt-- can any one plz help............   SELECT * FROM t001w WHERE werks IN zstore.     hier-store = t001w-werks.     hier-name1

  • E-commerce and taxes

    I was wondering how you "advise" your clients to set taxes on e-commerce sites before you hand off the site. Do you just tell them to use the state sales tax for their home state and advise them to get an accountant for the rest? There are 11,000 sal

  • Recovering after a hard drive crash and restore

    I have a question before I sync my iPod again; I had a operating system hard drive crash a little while ago, and I reimaged my drive with a three month old backup, basically I rolled back my computer's state a couple months, and with it, the state of