How to use server time in  Timer Class

Hai,
I have develped an application(stand alone) using swings. the exe runs in all the systems in my company.
requirement is
--> application has to be closed at 11.59 P.M everyday.
i did this task using Timer class. Timer class takes the system time in which the application runs. what i need is the server time. so when the application runs it has to check the server time and when the server time is equal to 11.59 PM application has to be closed.
so how do i map the timer class to my server time?
iam breaking my head for this for past few days. is there any way to do this?
thanks

1)Do you have one database in total? I mean all Java Application read and save data to this database. If so, try to get time from database by using database function. I recommend you to do this because database is central and all application share data with the database.
2) You can still call web server in Java application. My link in last post will tell you.
3) You can write a Java Server application for providing current server time for all your Java application. Socket technique may be used.
Therefore, solution 1 and solution 2 look simpler than solution 3.

Similar Messages

  • How to use airport time capsule on a dell portable pc with windows 7 taking in consideration that Time machine doesn't run with Windows ?

    how to use airport time capsule on a dell portable pc with windows 7 taking in consideration that time machine doesn't run with Windows ?

    TM does not work like that.
    If you want files to use later.. do not use TM.
    Or do not use TM to the same location. Plug a USB drive into the computer and use that as the target for the permanent backup.
    Read some details of how TM works so you understand what it will do.
    http://pondini.org/TM/Works.html
    Use a clone or different software for a permanent backup.
    http://pondini.org/TM/Clones.html
    How to use TC
    http://pondini.org/TM/Time_Capsule.html
    This is helpful.. particularly Q3.
    Why you don't want to use TM.
    Q20 here. http://pondini.org/TM/FAQ.html

  • How to use Real time execution trace toolkit with Dual-core processor??

    hi there
    the situation as follows:
    i have a computer (PC and Laptop) types with Dual-core processors, and am trying to do simulation using Multi-core technology and based on different simulation scenarios...starting from sequantial processing,.......Piple lining processing strategy. so that i can differentiate the time delay between those types of processing based on (Using 1 processor then dual-core processor Computers)
    my question is: As i read through Ni's white papers i saw many notes refer to Real-time execution trace toolkit to investigate the (processing-time , etc) of multi-core processors in processing diffenent algorithms. My algorithms are to be run on 1 computer with dual-core processor BUT, not in real time environments, that is ( No hardware to be connected to my pc) only algorithms running on my pc....
    So, is it possible to use Real time execution trace toolkit  or anyother tools in LabVIEW to show processing-delays and/or anyother timing critical issues without using my application for  real- time hardware.???
    in other words: how to use Real time execution trace toolkit  in non-hardware and/or real-time scenarios???
    please help me in this.
    Any suggestion, comments, feedback.....is absolutely highly appreciated
    thanks a lot in advance
    Labview Lover

    Hey,
    The Realtime Execution Trace Toolkit only works for NI RT Targets.
    But you can use the Desktop Execution Trace Toolkit, just search for it under ni.com.
    Christian

  • How to use a timer in director to count down to quit

    how to use a timer in director to count down to quit

    Hello Christos,
    I'm sorry, but I have to give you again some links, at the moment I don't have "selfmade" files for you.
    First these Adobe help files:
    http://help.adobe.com/en_US/Director/11.5/Beginners/WS287f927bd30d4b1f5218ba7912ff9103109- 7feb.html
    http://help.adobe.com/en_US/Director/11.5/UsingScripting/WSc3ff6d0ea77859461172e0811d64c1a 1b3-7ae3.html
    Second an interesting thread from the forum with a "cookbook":
    https://forums.adobe.com/thread/1261561
    Hans-Günter

  • How i USe face time?

    How i USe face time? But i dont have friends to try...how i fond friends for face time

    To use FaceTime you must have a Wi-Fi connection to the Internet.  3G won't do it at this time.
    Also, FaceTime may not be available in all countries or regions.
    See page 65 of the iPhone iOS4 User Guide

  • How to use ftace time

    how to use face time on i phone 4

    iOS: Using FaceTime
    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • How to use the time machine?

    how to use the time machine? because i don't know where to find the back up. can you please help me.. thankyou.

    Time machine is a backup application and service that come with Leopard. When you plug in an external drive you can use it as a backup source. All you do is select the drive in the Time Machine control panel and start the backup. It will back up your whole drive and if you lose a file, go to the location on your drive where that file should be and open the Time Machine application. From there you will be able to migrate to all the points in "time" when the file was changed, and select the version of the file that you want. Then select "restore" and the file will be restored to the location where it last was on your drive.
    For more information check out the Time Machine website:http://www.apple.com/macosx/features/timemachine.html

  • How to use abap memory in global class

    Hi experts,
                     I want to  know how to use abap memory in global class. when i try write export and import statement its showing
    error is export statement does not support in object oriented concept.
    Thanks
    Ramesh Manoharan

    Hi Ramesh,
    Export and import statements were not allowed to use in  classes. Create a global variable in public section of that class of type of  export parameter.Then pass value to the global variable of class  by calling that class.
    by
    Prasad GVK.

  • V.Important: How to use se24 to build a class step by step:  Points assured

    hi all
    I am new to OO based abap programming.  I want to build a class using SE24 but i dont know where to put the various pieces of code in SE24.
    Can anyone please provide a step by step procedure (including screenshots) on how to use SE24 to build a class using most of the features like constructor, attributes , interface , friend etc.
    Documents would be more helpful as compared to links.
    Points will be awarded
    thanks in advance

    Hi,
    Just follow the below givenlink. Using this you can create a class in SE24.
    http://help.sap.com/saphelp_nw04/helpdata/en/b3/f4b1406fecef0fe10000000a1550b0/content.htm
    I think the below document would be
    a very good introduction
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0a33479c-0b01-0010-7485-dc8c09d6bc69
    See the Following Dem Program:
    DEMO_ABAP_OBJECTS Complete Demonstration for ABAP Objects
    DEMO_ABAP_OBJECTS_CONTROLS GUI Controls on Screen
    DEMO_ABAP_OBJECTS_DIALOG_BOX Splitter Control for Screen with Dialog Box
    DEMO_ABAP_OBJECTS_EVENTS Demonstration of Events in ABAP Objects
    DEMO_ABAP_OBJECTS_GENERAL ABAP Objects Demonstration
    DEMO_ABAP_OBJECTS_METHODS Demonstration of Methods in ABAP Objects
    DEMO_ABAP_OBJECTS_SPLIT_SCREEN Splitter Control on Screen
    Regards,
    Padmam.

  • Using server time in  Timer Class

    Hai,
    I have develped an application(stand alone) using swings. the exe runs in all the systems in my company.
    requirement is
    --> application has to be closed at 11.59 P.M everyday.
    i did this task using Timer class. Timer class takes the system time in which the application runs. what i need is the server time. so when the application runs it has to check the server time and when the server time is equal to 11.59 PM application has to be closed.
    so how do i map the timer class to my server time?
    iam breaking my head for this for past few days. is there any way to do this?
    thanks

    1)Do you have one database in total? I mean all Java Application read and save data to this database. If so, try to get time from database by using database function. I recommend you to do this because database is central and all application share data with the database.
    2) You can still call web server in Java application. My link in last post will tell you.
    3) You can write a Java Server application for providing current server time for all your Java application. Socket technique may be used.
    Therefore, solution 1 and solution 2 look simpler than solution 3.

  • How to use 2 Time trigger UI elements

    Hi Experts,
      My user doesn't want to see the time out error in the webdynpro application after leaving(idle mode) the browser for hours. And one more thing is he wants a popup for every 15mnts to show a message on the screen.
    So, I have used 2 Time Trigger UI elements to achieve this functionality,
          1st one(Time Trigger UI Element) is used to show the pop up message and It is working fine to show the message in a Pop Up .
          2nd one is used to handle the Time Out Error for hours and this is not working as expected, if user leaves the browser for hours .
    I hope you understand my requirement and issue.
    Could you please suggest me how to achieve this functionality.
    1000 Thanks in advance.
    Regards,
    Giri

    Hi,
    If I set the 3 hours to 2nd Time Trigger UI element and tested after 2 hours and browser is still throwing the time out error message.
    After 2hrs is the time out error throwing by the Timed trigger or the standard session time out? I believe after 2 hrs the standard session time out is throwing! You need to give the delay time less than your session time out.
    You can get the session timeout using wdr_task=>server->session_timeout ( in mins ) And you can get the application server time out using
    data: name type pfeparname,
            value type pfepvalue.
      name = 'rdisp/plugin_auto_logout'.   " parameter
      call 'C_SAPGPARAM' id 'NAME'  field name
                                        id 'VALUE' field value.   " value contains time out 
    Regards,
    Kiran

  • How to get server time in Oracle Internet Directory (OID)?

    Hi,
    How to get current time on OID server? As in case AD, RootDSE contains currentTime attribute, Is there any attribute in OID through which I can get current time on server.
    Thanks in advance for any help.
    Regards,
    Umesh

    Hi,
    wrong forum, use Identity Manager
    Frank

  • How to change server time?

    Can some one guide me how to change the server time in Solaris 10.
    Actually i need to advance the server time to 15 mins.
    thanks!

    Take a glance through the man pages for date.
    It's been a couple of years since I last used it,
    but when I did, it was for the express purposes
    of changing the system date to a specific time.
    It was on an old SB100 with an unpatched OBP.
    Their system clocks would wander all over the place
    until the problem got fixed with an OBP update.
    If I recall, the command syntax I used was something like ...
    # date HHmm.ss <enter>
    For example -- "date 1832.50" would be for 18:32:50 o'clock of the system's current day and timezone.
    ... then I used the simpler date command syntax to check up on the results.
    # date <enter>
    Other forum contributors may have their favorite suggestions, as well.

  • How to use airport time capsule with multiple computers?

    I'm sure there are some thread about this but i couldn't find it... so sorry for that but hear me out! =)
    I bought the AirPort Time Capsule to back up my MBP
    And so i did.
    then i thought "let give this one a fresh start" so i erased all of it with the disk utility and re-installed the MBP from the recovery disk.
    I dont want all of the stuff i backed up just a few files and some pictures so i brought that back.. so far so good.
    Now i want to do a new back up of my MBP so i open time machine settings, pick the drive on the time capsule and then "Choose" i wait for the beck up to begin, and then it fails.  It says (sorry for my bad english, im swedish haha) "the mount /Volume/Data-1/StiflersMBP.sparsebundle is already in use for back up.
    this is what i want:
    i want the "StiflersMBP.sparsebundle" to just be so i can get some stuf when i need them. it's never to be erased.
    i want to make a new back up of my MBP as if it's a second computer...
    so guys and girls, what is the easiest and best solution?
    Best regards!

    TM does not work like that.
    If you want files to use later.. do not use TM.
    Or do not use TM to the same location. Plug a USB drive into the computer and use that as the target for the permanent backup.
    Read some details of how TM works so you understand what it will do.
    http://pondini.org/TM/Works.html
    Use a clone or different software for a permanent backup.
    http://pondini.org/TM/Clones.html
    How to use TC
    http://pondini.org/TM/Time_Capsule.html
    This is helpful.. particularly Q3.
    Why you don't want to use TM.
    Q20 here. http://pondini.org/TM/FAQ.html

  • How to use my time capsule on my new macbook pro retina (time machine error)

    Hello all,
    I've been using my old mac for a while with my time capsule, but recently I bought the new macbook pro retina and I wanted to use the time capsule as the backup disk on the new one. However, whenever I try to run the backup, a message appears "The backup disk image “/Volumes/Data/XXX’s MacBook.sparsebundle” is already in use."
    I wanted to override the settings so that the new macbook will use the time capsule for its backup disk instead of the old one, as I will no longer be using it.
    I was wondering if anyone had this problem before and if anyone know how I can solve it?
    Thank you

    You could delete the old backup from your old laptop? If you need to keep it then you need to rename that folder so that your new macbook can creatie its own file in the same name.
    Regards,
    Ryan

Maybe you are looking for

  • Java 7-25 will no longer launch within Safari 6.0.5 - Any ideas?

    I recently had my Macbook Pro serviced and when I got it back, my java will no longer launch.  It appears to be installed and I'm using version 7-25.  JavaScript is enabled. Java is enabled.  (Manage Website Settings is blank - normal?) Specifically,

  • Compaq presario V2405US laptop...

    Hi, Lol this is an old laptop.... Well not as old as my windows 98 desktop... Well anyways, I was going to get a new hard drive for this laptop, well I still am, but it is having to wait until christmas when I get the money to do so. I upgraded the m

  • I downloaded an itunes update and lost my audiobook collection

    I updated iTunes yesterday and lost my audiobook collection. There are no audiobooks listed in iTunes for me to sync. If I attempt to sync it says that I'll lose the audiobooks on my iphone and ipad.

  • BAPI_PROCORDCONF_CREATE_TT Goods Movement Posting Problem

    When performing a process order confirmation via the BAPI_PROCORDCONF_CREATE_TT, I'm experiencing some difficulties with the goods movements.  Specifically, when attempting to post a goods receipt to the order via a 101 movement along with a goods is

  • Downloading always fails

    hi I'm trying to download a file from some sites. The downloading window is open, i'm pressing on the "download" button but the the downloading always fails. Does anybody have an idea why this is happenning? thanks