Timer triggers, setDaemon

Hello,
I am wondering how reliable/clusterable repeating timers are using
the weblogic.common.time package are. I would want to start
a recurring daemon which runs on an hourly or daily basis, which
begins when the server starts up.....But I don't need every
server in the cluster necessarily to run the timer function,
but I need to be sure that one of them does, in the event
that any server fails, etc....Alternatively, it would be manageable
to just have all the servers execute the timer action, but not
as desirable....
Can I initialize a timer object from a startup class?
I saw reference in a previous thread to a setDaemon method.
Is this documented somewhere?
Jason
Jason Rosenberg
SquareTrade
(remove 'nospam' from my return address)

Are there known plans in the works for J2EE to support functionality
present within the WebLogic services? Especially time services and
JMS connection pooling?
Jason
Michael Girdley <[email protected]> wrote in message news:396a5edf$[email protected]..
>
>
Our focused for clustering features is primarily centered on J2EE. Until a
timing service becomes part of those J2EE platform, it will be at a lower
priority.
Thanks,
Michael
Michael Girdley
Product Manager, WebLogic Server & Express
BEA Systems Inc
Jason Rosenberg <[email protected]> wrote in message
news:396a44a5$[email protected]..
Ok, I'll just have them running by default on each server....
Any plans to make them clustered?
Jason
Michael Girdley <[email protected]> wrote in message
news:396a43c1$[email protected]..
Timers are not a clustered service.
Thanks,
Michael
Michael Girdley
Product Manager, WebLogic Server & Express
BEA Systems Inc
Jason Rosenberg <[email protected]> wrote in message
news:[email protected]..
Hello,
I am wondering how reliable/clusterable repeating timers are using
the weblogic.common.time package are. I would want to start
a recurring daemon which runs on an hourly or daily basis, which
begins when the server starts up.....But I don't need every
server in the cluster necessarily to run the timer function,
but I need to be sure that one of them does, in the event
that any server fails, etc....Alternatively, it would be manageable
to just have all the servers execute the timer action, but not
as desirable....
Can I initialize a timer object from a startup class?
I saw reference in a previous thread to a setDaemon method.
Is this documented somewhere?
Jason
Jason Rosenberg
SquareTrade
(remove 'nospam' from my return address)

Similar Messages

  • How to write a time triggered portal service/ schedule a portal service

    Hi,
    Can some one please provide me with some info/url about how to a create a time triggered portal service i.e., scheduling portal service.
    Any help will be greatly appreciated.
    Thanks & Regards,
    Sudhir

    Hi,
    see my reply to your post in PortalDevelopment area:
    <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=249185&tstart=0">https://www.sdn.sap.com/irj/sdn/thread?threadID=249185&tstart=0</a>
    Romano

  • Time triggered graphics swaps

    I have a banner on my site that displays graphics promoting
    TV show finales on the days that they happen. Currently I am
    updating my banner every morning at 8:00am but that leaves the
    problem of having yesterday’s event posted from
    midnight-8:00am. I was wondering if there is a way to have images
    swap automatically at midnight so that anyone awake at 1:00am or
    7:00am will be looking at the correct finale for that night and I
    can be sleeping. I am looking for a way to have a time triggered
    graphic swap.

    OK, that's something.
    Now, what type of server side language do you use? You could
    also use
    Javascript, but that seems silly.
    What you're going to do is dynamically load an image
    according to the
    timestamp.
    1.Get Timestamp as variable
    2. Feed variable into function that will strip out everything
    but the day
    3. "suck" the day of the week out and converts it to string
    (new variable or
    reused timestamp var)
    4. <img srce="images/<?php $DAYofWEEKvariable ?>.jpg
    Name your images according to the day of the week.
    http://us2.php.net/manual/en/function.date.php
    HTH,
    Jon
    "edwheels" <[email protected]> wrote in
    message
    news:e4vmkj$3pt$[email protected]..
    >I was planning in creating a weeks worth or images every
    Monday so I would
    >have them all ready to go throughout the week.

  • Time-triggered Ethernet in LabVIEW

       I've got a client who potentially wants to use Time-Triggered Ethernet for communication within a system.  This is a relatively new protocol, described here.
       I remember a few years ago that NI began talking about using deterministic Ethernet with their hardware and software.  I've found a few reference to it on ni.com, including this overview.  However, this particular technology, if I understand it correctly, is a proprietary NI protocol, and (probably) not the same as the Time-Triggered Ethernet standard.
       Does anyone have experience with Time-Triggered Ethernet communication from/to LabVIEW?
    Thanks,
        DaveT
    David Thomson Original Code Consulting
    www.originalcode.com
    National Instruments Alliance Program Member
    Certified LabVIEW Architect
    There are 10 kinds of people: those who understand binary, and those who don't.

    Hi Mnoman,
    I actually don't see your post, but amazingly someone REPLIED! Thats some telepathic support. Anyhow, if you could repost your question for the rest of us, that would be awesome.
    Regards,
    National Instruments
    RIO Embedded Hardware PSE
    CompactRIO Developers Guide

  • Time-Triggered Network crashing

    Hello
    I've encountered a problem when trying to use Time-Triggered Network.
    My RT hardware are two desktop PC used as ETS targets. They specifications are as follows:
    Pentium III 800MHz
    two 82550 chipset based network adapter (Intel PRO, but i cant remember
    exact name), one for normal Ethernet, and one for deterministic network (both computers connected by crossed cable)
    128-256MB RAM
    additonally i use another Pentium III as host computer.
    My aplication is really simple, one of RT machines generate random
    values, and send them to other RT machine. Everything happens in timed
    loop.
    When i use network-shared variables everything runs smoothly. When i
    try to use time-triggered variables, VIs deploy normally, but then one
    of RT machines (slave) reboots. Host computer shows synchronisation
    window (connecting, 0% progress) and after a few minutes announces
    time-out. Rebooting RT target show unhandled exception error in a
    moment before reboot, but its really hard to read exception code (it
    happens too fast, it is something like 0xC00(few zeroes here)05)
    I have also tried to use old AMD K6 computer as RT machine (i am aware
    that it is far below requirements) and in this case there is no reboot
    but still synchronization isn't happening.
    Another strange thing is that my VIs worked correctly for one time (no
    reboot, synchronisation done normally), but it happened only once and
    naver happened before and after. If i remember correctly i've been
    deploying VIs normally, just as usual.
    Where lies the problem?
    Thanks in advance
    Jan Kienig

    Thanks for reply
    I've made few VIs from scratch and rebooting occurs every time. They
    are basically the same (generating random value and sending it to
    another machine) but they differ in details (ie. i've used timed loop
    once and normal loop other time). When i use network-shared variables
    instead of time-triggered variables everything runs normally.
    In a few days (maybe tomorrow) i'll post my VIs and get exact code of
    exception that is causing reboot (i have it in lab, and i am posting
    from home). Maybe it will help to clarify the situation.
    Jan Kienig

  • GUEST Account Time Triggering after first login In WCS

    Hi,
    I just need to know that is WCS capable of creating guest account in a way that the starting time line can be triggered after first login
    Thanks

    Hi,
    I just need to know that is WCS capable of creating guest account in a way that the starting time line can be triggered after first login
    Thanks

  • Need to restrict triggering of workflow only once(first time).

    Hi guys,
    I hv a requirement to trigger the workflow only once(first time).
    whatever is the the condition/changes in document, it should not trigger for second time.
    do we hv any options available for this........
    thanks in advance...
    santosh.

    Hi susan,
    Below is the requested information,
    Release : ECC 6.0
    we are working on custom WF for ECO creation(CC01).
    Description,
    ECO is created in SAP by legacy system, thru bapi CCAP_ECN_CREATE, the WF will take the editing of the material in that ECO to different departments like MRP, accounting, sales,quality etc.... & respectively creates the views.
    we cannot use CREATE event, bcos first the ECN(CC01) is created by bapi & further bapi creates the material & inserts it into ECN again, which is CHANGING the document. once this is done, our WF should trigger.
    As we dont have CHANGE event in ECM BO, i am using CREATE event & settting it for ON CHANGE in SWEC t-code.
    Bottomline is , it is triggering as soon as any changes happens.
    But, we want it to restrict for one time triggering.
    Regards.
    santosh.

  • Process Chain Triggers Multiple times

    Hi All,
    I have Meta process chain say ZAAA  which has multiple Local Chains example ZBBB , ZCCC and ZDDD. .This Local chain ZCCC trigger multiple times of  in one day . we had a issues today  with deactivation of Transformations and DTP in different levels because of that Local Process chain ZCCC is failed along with other process chains . when I reach to ZCCC started by repeat or repair ,before Local Chain ZCCC finished whole process ,ZCCC triggers second time .
    Now first times  triggered process chain ZCCC is in  yellow , and second time triggered process chain ZCCC gone through all the way to gree ,  and Meta chain showes red.
    what I have do make Meta chain green.
    Regards
    Hari

    Hi Hari,
    I wonder what you mean by below statement:
    one of the sub pc still yellow first time trigger and went to red and second time trigger whole process is green. all Sub PC are green
    For the sub pc mentioned above, you trigger it all over again? Or you repeat/repair the step failed?
    If you trigger it the second times all over again it is a new run and the first run remain fail,ed so the meta chain will never get green, if you want to make the meta chain green, you need to repeat/repair the step failed in first run.
    Regards
    Bill

  • Stop a timer that triggers progress bar

    This timer triggers a progress bar. The goal is to stop the timer (and therefore the progress bar) when a label changes its text.
    However, the timer goes on for ages and the progress bar keeps going until it reaches 100%. The timer never stops, it just that the progress bar can't go any further.
    In other words,
    1. How do you stop the timer below?
    2. How do you make this timer below to listen to other events such as threads terminated or label text change?
    Feel free to tweak around the code below so I can see what you mean. I learn by example.
    Thanks in advance,
      int i = 0 ;
      public void timer2 ()
        Timer t2 = new Timer ( 10000, new ActionListener () //10 seconds
          public void actionPerformed ( ActionEvent event )
            progressBar.setValue ( i ) ;
            progressBar.setStringPainted ( true ) ;
            i++ ;
        t2.start () ;
        if ( lblStatus.getText ().equals ( "CD succesfully created" ) ) {
          i = 100 ;
          progressBar.setValue ( i ) ;
          progressBar.setStringPainted ( true ) ;
          t2.stop () ;
      }

    Thanks John. You can tell I'm a newbie huh.
    Where do I put the property listener for the label?
    If I put the listener inside the timer I get a compilation error saying that an "identifier is expected beginning at 'CD successfully completed' "
    int i = 0 ;
      public void timer3 ()
        Timer t3 = new Timer ( 5000, new ActionListener () //5 seconds
           public void actionPerformed ( ActionEvent event )
            progressBar.setValue ( i ) ;
            progressBar.setStringPainted ( true ) ;
            i++ ;
        t3.start () ;
       lblStatus.addPropertyChangeListener("CD successfully completed", new PropertyChangeListener() {
                               public void propertyChange(PropertyChangeEvent evt) {
                                       t3.stop();
                       } );if I put the property listener inside, I get a different error "the variable t3 is being accessed from within inner class and that it needs to be declared final."
      int i = 0 ;
      public void timer3 ()
        Timer t3 = new Timer ( 5000, new ActionListener () //5 seconds
           public void actionPerformed ( ActionEvent event )
            lblStatus.addPropertyChangeListener("CD successfully completed", new PropertyChangeListener() {
                             public void propertyChange(PropertyChangeEvent evt) {
                                     t3.stop();
            progressBar.setValue ( i ) ;
            progressBar.setStringPainted ( true ) ;
            i++ ;
        t3.start () ;

  • Event not triggering in ALV

    Hi All,
    I am using ALV GRID in object oriented with editing option.If user made any changes in the Grid ,then i will captured the changes by the event DATA_CHANGED and i will display the error message inside the DATA_CHANGED event method using Method ADD_PROTOCOL_ENTRY and DISPLAY_PROTOCOL(which displayed a message in popup window with the field name ,row etc.).
    The Method CHECK_CHANGED_DATA in PAI will trigger DATA_CHANGE event.It is some time triggering DATA_CHANGED and some time it is not triggering DATA_CHANGED event..Why it is not triggering DATA_CHANGED event?
    Can any one give me solution for this.....
    Thanks in Advance..

    Hi,
    i have to register an ENTER  event:
    that is
    CALL METHOD alv->register_edit_event
    EXPORTING
    i_event_id = cl_gui_alv_grid=>mc_evt_enter.
    For this also it is not triggering...

  • Transactional triggers and commit processing

    I have only been an active member of this thread for a couple of weeks and have tried to contribute to a few postings. But I have also noticed lots of postings relating to the use of DML statements inside what I would call non commit time triggers.
    What I mean here is, for example, a WHEN-BUTTON-PRESSED trigger that does inserts, updates, deletes, followed by the COMMIT_FORM procedure.
    I thought it might be useful to draw attention to the possible pitfalls of this approach. I'm not saying that this approach is wrong - far from it, but sometimes it means that people aren't leveraging the functionality that you get "for free" from Forms.
    By coding some DML followed by a Commit_Form, you are not getting any rollback functionality from Forms. For example:
    INSERT INTO A
    INSERT INTO B
    COMMIT_FORM;
    Let's imagine that the insert into A worked but the insert into B failed for some reason. The user gets an unhandled exception. Now imagine that the cause of the error is cleared up, and the user presses the button (or whatever the invokation action was) again, and the commit works. You will have 2 records in A and 1 in B. You may not have expected that, and without coding your own rollback/savepoint that's what you would get.
    You also (1) don't get a Working... message without coding it yourself, and (2) get the "No changes to commit" message; removing this is the subject of many threads on this site.
    If you have a block which is based over a table which you need to update, then all of the DML statements ought to be coded inside PRE/POST/ON INSERT/UDPATE/DELETE statements, or other Forms transactional triggers (pre-database-commit etc..). If you need to change other tables then put the DML for them inside those triggers. Then you don’t have to worry about which records the user changed – if the user didn’t touch them then Forms won’t fire the triggers. And when you call the COMMIT_FORM procedure, Forms will fire the triggers for you and if any of them fail, it will rollback back to where the COMMIT_FORM started.
    An example in 1 thread I saw this morning, was a Delete button, which was to delete the current record in a multi-record block. This button performed the “DELETE FROM <table> WHERE <key=:block.key>” followed by a Commit. Then of course the block needed to be re-queried to reflect the fact that the record had gone. Using the power of Forms to simply call the DELETE_RECORD procedure would have achieved the same result without needing to requery the block. And Forms would do the delete by ROWID, the fastest way of doing it.
    If you don’t have a block based over a table, then you can consider creating a dummy block which uses Transactional Triggers. Code an ON-INSERT on that block which includes the DML you want to execute. Then in the trigger initiating the commit processing you would do something like:
    :DUMMY_BLOCK.ITEM1 := ‘X’;
    COMMIT_FORM;
    IF (NOT FORM_SUCCESS) OR :SYSTEM.FORM_STATUS != ‘QUERY’ THEN
    -- the commit failed
    END IF;
    Then you’ll get a nice Working.. message and full rollback control.
    I think the moral of what I’m trying to get across is to use the power of Forms in the way it handles the transactions. Whilst we moan about it, it is actually quite good at that!
    I hope this posting is taken in a positive light, I am certainly not trying to teach anyone to “suck eggs”.
    PS. I find it ironic that you were prevented from coding DML statements outside of commit time triggers, in Forms 2.3!

    Thank you, Kevin. Very informative.

  • How can I create RT time-trigg​ered events?

    We have a RT VI running on a PXI.  One of the RT event loops handles turning on and off digital outputs at precise times.  Because we want high precision, the loop is running at a high rate (1 KHz) and every iteration, we check to see if it's time to do something.  But this seems inefficient to me because the vast majority of the time, we're sitting and spinning.  Is there a way to turn this from a polled system to an even-driven system?  I'd like to schedule events to occur at given times and use an event handler to process them.  But how do I schedule a time-triggered user event?
    Thanks,
    Keith.

    There are other RT timed loops running, but I'm not sure if it counts as "a lot of stuff."  As for what controller, I'm not sure (I inherited the system) but MAX says it's a PXI-8187 with a SCXI-1102 and a PXI-1052 (SCXI) SCI with a few cards in it.  Is that what you're asking?
    How do I find out how much CPU is being used?
    The time trigger is like this: The operator hits a "go" button on the host VI.  This signals a sequence of on/off timed events that are relative to the time when the button was pressed.  The relative timing sequence is fixed before the VI is run and does not change afterwards.  It's also a one-shot -- each digital output is turned on once and off once, just at different times.
    If the way we're doing it is fine, I'm cool with that.  I'm just trying to see if I can simplify things.  The previous developer had mentioned doing a lot to optimize, so looking for inefficiencies is fresh in my mind, but I don't know (yet) for sure if there are current problems.
    Thanks,
    Keith.

  • SCOM 2012 R2 - Generate an alert when a specific event will not come in specific time range

    Hello SCOM people,
    I need to figure out what kind of monitor shall I choose for my monitoring of a specific event. I need to generate an alert when no specific event was generated by server.
    Our company uses FIM 2010 with scheduled tasks, after each completed task is generated an event to application log. When sync is stuck or something is wrong no event will come to application log and I need to be warned. Tasks run each 30minutes and there
    should not be an hour break between the previously created event.
    I hope it makes sense :)
    Thank you
    Liibas

    Hi Liibas,
    That sounds like a good scenario for using Orchestrator and the SCOM Integration Pack, since you can have time-triggers, etc. to check for Alerts and then trigger a Runbook to email someone if the Alert does/does not appear. 
    Please remember to click “Mark as Answer” on the post that helps you.
    AdinE MCSE, MCSA, MCITP, MCTS; (Specializing in System Center and Private Cloud)
    2015 Microsoft MVP in System Center Cloud and Datacenter Management
    LinkedIn: http://ca.linkedin.com/in/adinermie
    Website: http://micloud.azurewebsites.net

  • Using the timer

    Hi,
    I am implementing the timer() class to schedule a task to be done at a certain time and how often it should be done after that. I have that working fine. What I am wondering about is, is there any way to implement the timer to start on a certain date, the same way it starts at a certain time. I would eventually like to be able to set the timer to start at a certain date at a certain time. Would anybody be able to help me with this problem?
    I am currently using the following code:
    public ThreadMain(int seconds) {
    timer = new Timer();
    Calendar calendar = Calendar.getInstance();
    calendar.set(Calendar.HOUR_OF_DAY, 10);
    calendar.set(Calendar.MINUTE, 54);
    calendar.set(Calendar.SECOND, 0);
    Date time = calendar.getTime();
         /*What this thread does is it starts at the specified time
         and runs at specified intervals
         timer.schedule(new RemindTask(),time,seconds*1000);
         class RemindTask extends TimerTask {
              int num = 4;
              public void run() {
              if(num > 0)
              System.out.println("hello!");
              num--;
              else
              System.out.println("Canceling timer thread");
              timer.cancel(); //Terminate the timer thread

    Hi Tones411,
    I modified things a tiny bit:
    <html>
    <body>
    <script>
    <!--
    var trace = window.runtime.trace
    var TimerEvent = window.runtime.flash.events.TimerEvent
    var Timer = window.runtime.flash.utils.Timer
    var theTimer;
    function timerInit(){
    trace("in timerInit()");
    theTimer = new Timer(3000, 0);
    theTimer.addEventListener(TimerEvent.TIMER, onTimer);
    theTimer.start();
    trace("timer started");
    function onTimer(){
    trace("timer triggered");
    theTimer.stop();
    theTimer.removeEventListener(TimerEvent.TIMER, onTimer);
    -->
    </script>
    <input type="button" onClick="timerInit()"
    name="startTimer" id="startTimer" value="Start Timer">
    </body>
    </html>
    I hope it helps!
    -Erica

  • Explanation of "hello-time,forward-time & max-age" in spanning-tree

    Hi,
    what is the exact meaning for the following command using in spanning-tree?
    spanning-tree vlan 1-2,5,175,182-205 hello-time 1
    spanning-tree vlan 1-2,5,175,182-205 forward-time 4
    spanning-tree vlan 1-2,5,175,182-205 max-age 6

    Here are the answers:
    The Hello Timer triggers periodic ?hello? (actually the Configuration BPDU) messages that are sent
    from the Root to other bridges in the network. This timer also sets the interval in which a bridge
    expects to hear a hello relayed from its neighboring bridges. Configuration BPDUs are sent every
    2 seconds, by default. You can modify the Hello Timer per VLAN with the hello-time keyword,
    along with a value of 1 to 10 seconds.
    The Forward Delay Timer determines the amount of time a port stays in the Listening state before
    moving into the Learning state and how long it stays in the Learning state before moving to the
    Forwarding state. You can modify the Forward Delay Timer per VLAN with the forward-time
    keyword. The default value is 15 seconds but can be set to a value of 4 to 30 seconds. This timer
    should be modified only under careful consideration because the value is dependent upon the
    diameter of the network and the propagation of BPDUs across all switches. A value too low allows
    loops to form and cripples a network.
    The MaxAge Timer specifies a stored BPDU?s lifetime that has been received from a neighboring
    switch with a Designated Port. Suppose BPDUs are being received on a non-Designated switch port
    every 2 seconds, as expected. Then an indirect failure, or one that doesn?t involve a physical link
    going down, occurs that prevents BPDUs from being sent. The receiving switch waits until the Max
    Age Timer expires to listen for further BPDUs. If none are received, the non-Designated Port moves
    into the Listening state, and the receiving switch generates Configuration BPDUs. This port then
    becomes the Designated Port to restore connectivity on the segment.
    To modify the Max Age Timer on a per-VLAN basis, use the max-age keyword. The timer value
    defaults to 20 seconds but can be set from 6 to 40 seconds.
    bye
    FCS
    Please rate me if I helped.

Maybe you are looking for

  • I made an account to convert a .pdf file to Excel but it didn't work. Now the file's gone from my computer. How can I retrieve it?

    The product doesn't work and it removed an important form my computer. Anyone know how to retrieve it? I also don't need an account anymore, so how do I delete it?

  • Trouble with play back

    I have two monitors one computer monitor that I have hooked straight into my computer. The second a TV I have hooked to my sony DSR 11 and DVD player. I use the TV as a playback monitor. My problem is at times the TV won't play back from the time lin

  • Help: Modifying inner join

    Hello Folks, I have an Access Query and am rewriting the whole query in Oracle to run a report.The thing is Am a beginner in oracle and am scratching my head on how to modify this inner join. please help me in rewriting this inner join in oracle. tha

  • Count number of elements

    Dear All, probably there is somethin wrong in how I use the xmlsequence... I have a table called XML_WORD with a fiels with XML Docs called XML_CONTENT As you see what I want to try is to count the number of elements into a certain node... What is wr

  • DVD Decrpter help!!!

    I used dvd decrtpter and then videora to get a dvd on my ipod. It came out fine, except there was no volume when played in itunes or on my ipod. Im thinking it was in dvd decrptter. Which volume setting shud be used? Audio-ac3/6ch/english or Audio-ac