How do I obtain a time from a server, when I have no process running on it?

I have a program that is running on many machines.
They all write files to a shared DIR on a server.
I need to obtain a time that is constant, as the only constistant thinh I know they can all see is the server, I'd like them to beable to get the time from the server.
This way I can keep my locks (so only 1 pc can write at any one time) consistant
How do I do this?
(I have no process on the server)
I'm looking for a call that'll tell me the time on a computer, in millis or somthing else. (I can then use Calendar.setTimeInMillis(long millis) )
But I don't know where to look....

This way I can keep my locks (so only 1 pc canwrite at any one time) consistant
I doubt having something depending on times being
synchronized is the right approach for this. You
should instead actually lock things, such as by using
a Mutex or actually locking files/records/bytes.it is unwise to actually lock a file as if there is an error, the file stays locked,. So you still need a time to work out how long it has been locked incase there has been a problem and it has gone 'stale'.
If 'stale' the locked ness should be able to be overridden.
But it is poor to use client time, as they all may be different.
I'd like to use the time on the NFS, or whatever has the shared DIR. It looks from what you're saying is that I can't find this out in Java.
:o(

Similar Messages

  • How do I export the music from my itouch when I have recently lost my computer and cd's?

    How do I export the music from my itouch when I have recently lost my computer and cd's?

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • How to access the MDX application from SQL server when working with OBIEE?

    Hi,
    I am new to MS SQL Server 2005. We have developed the OLAP Cubes on SQL Server Business Intelligence Development Studio with its integration with Oracle Business Intelligence Enterprise Edition (OBIEE).
    The backend query is in MDX language. Now if I need to run that query I need to access the MDX Application, rite?
    So need to know how to connect to MDX application.
    Regards,

    Administration Tool: File - Import - "from multidimensional". There you choose "Provider Type" = "Analysis Server 2005". You specify the URL, user name and password. Then you can import MSAS cubes just like Essbase ones.
    Cheers

  • How do I prevent my iPod from powering on when I have the Hold switch on?

    After I power off my iPod I turn on the Hold switch to prevent it from powering on and using up my battery life, but for some strange reason when I pull it out of my purse to use it again I often find a song playing. To make things even stranger every time this happens it is always a song from the same playlist. I really just want this to STOP b/c it drains my battery. Thanks to anyone that can help me.

    Make sure you don't have an alarm set.
    Cheers!
    -Bryan

  • How to call procedure in Java from SQL Server Database

    Hello Every Body
    i Have Question about
    How to call procedure in Java from SQL Server Database
    Thanks

    Hi,
    have you tried a Google search? I just gave it a 3 second try and already found: http://stackoverflow.com/questions/6113674/how-do-i-execute-a-ms-sql-server-stored-procedure-in-java-jsp-returning-table-d
    Frank

  • How do I get face time on my phone when visiting from dubai?

    how do I get face time on my phone when visiting from dubai?

    If your phone was purchased in a country/region that has banned FaceTime, there is no way to undo this.

  • 1. How do I separate my library from my kids'? We have different itunes accounts, 1 computer.

    How do I separate my library from my kids'?  We have different iTunes accounts and log in and out when we sync our various devices, all on one Windows 8 (new to us) computer.  All I want is to plug my devices in and sync ONLY my songs!  I've been managing to manually manage and check and uncheck songs, but it's such a pain and that doesn't always work anyway.  It is as if there are more than 2 locations for my music and I just want them all to show up in my own library.  Does that make sense?  Please help.

    Stop manually managing content, that is simply not smart or efficient.
    Create playlists with the desired content, sync those playlists to the device. iTunes remembers what to sync to each device.
    If you really want to split the library, that can be done but it will be a time consuming and entirely manual process.

  • How can I remove ASCII text from a field when I use it in a query

    How can I remove ASCII text from a field when I use it in a query?
    I am running a select statement on a table that appears to have ASCII text in some of the fields. If I use these fields in the where statement like the code below nothing returns:
    SELECT FIELD1 FROM TABLE1 WHERE FIELD1 IS NULL
    But the field looks empty if I do a straight select without the where clause. Additionally, one of the fields has text but appears to be padded out with ASCII text, which I need to strip out before I can use this field in a where or join statement. I have tried using a trim, ltrim, rtrim, to_char, nvl, decode and nothing works. When I use excel to run the same query it looks as if these ASCII fields are boxes.
    I have asked our DBA team to see what they can do to prevent these from going into the table, but in the mean time I still need to run this report.
    Do you have any suggestions?

    Can you provide an example? I've been trying (for
    example) "select translate(' test one', ascii(' '),
    'X') from dual" with no luck.
    Thank you.To replace space, you should query like this:
    select translate(' test one', chr(32), 'X') from dual instead of select translate(' test one', ascii(' '), 'X') from dual Thanks,
    Dharmesh Patel

  • How do i keep my cursor from jumping around when i am typing

    how do i keep my cursor from jumping around when i am typing [email protected]
    == This happened ==
    Every time Firefox opened
    == none

    Check your settings in System Preferences >  Trackpad
    Try a different Tracking speed.
    Sometimes just cleaning the trackpad can avoid erratic cursor behavior.
    How to clean Apple products

  • How can I delete an app from launchpad, that doesn't have the little cross in the left top corner. The app isn't an App Store app. The application is also not present anymore in my application's folder in finder.

    How can I delete an app from launchpad, that doesn't have the little cross in the left top corner. The app isn't an App Store app. The application is also not present anymore in my application's folder in finder.
    I tried to use the attached command through TERMINAL :
    sqlite3 ~/Library/Application\ Support/Dock/*.db "DELETE from apps WHERE title='Help';" && killall Dock
    sqlite3: Error: too many options: "DELETE from apps WHERE title='Help';"
    Use -help for a list of options.
    But i didn't work as I got the above error message.
    best regards
    Jeroen

    I'm in the same boat as you -- except that I manage both a school lab (volunteer job) and macs in the enterprise (pay job).  What I think we need is the Education Volume Purchasing Program
    http://www.apple.com/education/volume-purchase-program/faq.html
    Unfortunately this all seems a little rough around the edges -- for example, I have found updates for AppStore apps on the support.apple.com updates download site, but then when I install them via ARD they don't actually update the software.  (The AppStore icons still show as needing the updates, and the version info reports the old version.)  The documentation is also vague about which AppleID to use in which circumstance.  I think they just haven't finished thinking through the implications of the various procedures and policies upon the various kinds of customers.  When we deployed Mountain Lion on the school lab, we made an install usb and went around and installed it on each computer -- and it appears that you are on the honor system as far as paying for all of the licenses that you install.  We did!  But they appear to have no way to enforce it.
    So far, I have only deployed 9 Lion macs in my day job, and our "solution" to the AppStore showing updates problem has been to drag the AppStore icon off of the users' docks so they don't see them!

  • How can you move the objects from one server to another?

    how can you move the objects from one server to another?

    Hi,
    Collecting objects for Transporting
    1. rsa1->transport connection
    2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
    3. then choose your infocube and 'transfer'
    4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
    5. after objects collection finished, create request
    6. If they are $TMP, then change the package.
    7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
    8. You can check the request in SE09 to confirm.
    Releasing Transport Request  
    Lets say you are transporting from BWD to BWQ
    Step 1: In BWD go to TCode SE10
    Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
    Note: First release the child request and then the parent request
    Steps below are to import transport (generally done by basis )
    Step 1: In BWQ go to Tcode STMS
    Step 2: Click on Import queue button
    Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
    Step 4: Click on refresh button
    Step 5: High light the trasnport request and import it (using the truck icon)
    Transport
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps.
    thanks,
    JituK

  • How can I log onto iCloud from my iPad when the option is in grey and therefore not available

    How can I log onto iCloud from my iPad when the option is in grey and therefore not available. I deleted my account as it was showing up with an old Id ( I'd changed my email) but now I've done that it won't give me the option of logging back on. Do I have to do this on another device Or computer linked to iTunes first?
    THanks

    Hi Kate, have you perchance enabled restrictions on your device. (Settings > General > Restrictions)

  • How do i stop photoshop cs4 from quitting unexpectedly when saving a photoshop pdf? i attempted to download the adobe drive 5 but the installation keeps failing.

    How do i stop photoshop cs4 from quitting unexpectedly when saving a photoshop pdf? i attempted to download the adobe drive 5 but the installation keeps failing. I went through the process of clicking through the how to's and the troubleshooting and came to the conclusion that I need to install the adobe drive 5 but I can not complete the installation. I may be incorrect on this so I need immediate assistance as I have poster and ad deadlines. I also tried disabling the gatekeeper and solution 3 on the troubleshooting of slow saving on photoshop.
    Any help is much appreciated!
    Thank you!

    Are you attempting to save the file to a network location instead of your local hard drive? If so, this is probably why you are encountering an issue and why Adobe Drive would be the solution. As we've documented, it is a bad idea to open from or save directly to a network source: Networks, removable media | Photoshop | CS4 and later. Drive can help you get around this by setting up an Adobe supported virtual connection to the network. Thus, if installing Adobe Drive is the solution you need and your need help with installing Drive, please post to the Downloading, Installing, Setting Up forum.
    If you are not saving to a network location, then Adobe Drive is not going to be the answer. Then we'll need to know more about the file you are saving.

  • How do I delete music from my iPhone when I have downloaded it from the cloud using iTunes Match?

    How do I delete music from my iPhone when I have downloaded it from the cloud using iTunes Match?

    Hey MerrillSharon,
    Thanks for using Apple Support Communities.
    You can delete these songs and redownload them from iCloud.
    iTunes Store: How to delete songs from iCloud
    http://support.apple.com/kb/ht4915
    Have a nice day,
    Mario

  • How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    Hi,
    Thanks for the suggestion. I've been playing around with some of the classes of the java.net package and java.io
    Using the URL class i can get the content of the data from a STATIC page and output that response to file so that is does not display to the client broswer.
    But this only works if the URL i give points to a static html page.
    So the problem i'm getting is if i'm righting in arguments in the URL, this means that server needs to process the arguments i give and its sends back a dynamic result. Because its dynamic the URL class can not handle this and throws me an exception everytime :(
    Have u ever tried to do some things like this?
    Rahul

Maybe you are looking for

  • How to Create a table with numeric trigger for INSERT

    Let me start off by saying that I am very new to DBMS. I need to create a Table with INSERT Trigger. I am not exactly sure if I need to have a BEFORE ot AFTER insert trigger but leanning towards AFTER. I have a Java code that will need insert a row e

  • Is there a way to detect if the page is in edit mode or not? [WC Framework]

    I just can't find any system bean to provide such information. If any one know, that'd be very helpful. This is for Webcenter Framwork (not the Space). and by "edit-mode", I mean when user hit Ctrl+Shift+C and the blue dotted lines show up. Thanks in

  • Can a Mac book air connect to non wifi

    Can a MacBook Air connect to the internet without a wireless modem/router? (With a cord)

  • Resizing a MovieClip's contents

    I'm loading an external swf into a movieclip (the external sfw plays a slideshow of JPEGs). When the slideshow plays, the JPEGs extend way beyond the bounds of the movieclip. How would one go about constraining the JPEGs to their original size and ce

  • Invocation of weblogic.jspc within a java process

              We have created a Java program to support our build process to pre-compile all of           our JSPs. Things work fine as long as we exec a process each time we inovke weblogic.jspc           (java weblogic.jspc -d...etc). Is it possible to