Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14977 > unrolled thread
| Started by | bob <bob@coolfone.comze.com> |
|---|---|
| First post | 2012-06-01 06:50 -0700 |
| Last post | 2012-06-01 14:26 -0700 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.java.programmer
NTP client bob <bob@coolfone.comze.com> - 2012-06-01 06:50 -0700
Re: NTP client Gunter Herrmann <notformail0106@earthlink.net> - 2012-06-01 12:38 -0400
Re: NTP client Roedy Green <see_website@mindprod.com.invalid> - 2012-06-13 12:34 -0700
Re: NTP client Gunter Herrmann <notformail0106@earthlink.net> - 2012-06-14 10:39 -0400
Re: NTP client Roedy Green <see_website@mindprod.com.invalid> - 2012-06-01 14:26 -0700
| From | bob <bob@coolfone.comze.com> |
|---|---|
| Date | 2012-06-01 06:50 -0700 |
| Subject | NTP client |
| Message-ID | <de20892c-8be9-4954-bac4-0a6dcfa77cfc@googlegroups.com> |
Does anyone know of a really good implementation of an NTP client in Java? Thanks.
[toc] | [next] | [standalone]
| From | Gunter Herrmann <notformail0106@earthlink.net> |
|---|---|
| Date | 2012-06-01 12:38 -0400 |
| Message-ID | <4fc8efff$0$6563$9b4e6d93@newsspool4.arcor-online.net> |
| In reply to | #14977 |
Hi! bob wrote: > Does anyone know of a really good implementation of an NTP client in Java? Why not run a client on the OS? Works perfectly for me on Windows XP and Linux. Gunter in Orlando, Fl.
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-06-13 12:34 -0700 |
| Message-ID | <6fqht75hhntgqpcec7hsvp0rh47ojfjei8@4ax.com> |
| In reply to | #14985 |
On Fri, 01 Jun 2012 12:38:47 -0400, Gunter Herrmann <notformail0106@earthlink.net> wrote, quoted or indirectly quoted someone who said : >Why not run a client on the OS? >Works perfectly for me on Windows XP and Linux. in windows you spawn w32tm.exe /resync to resync your clock. From there you can get time via java. see http://mindprod.com/jgloss/timesources.html for details. -- Roedy Green Canadian Mind Products http://mindprod.com Controlling complexity is the essence of computer programming. ~ Brian W. Kernighan 1942-01-01 .
[toc] | [prev] | [next] | [standalone]
| From | Gunter Herrmann <notformail0106@earthlink.net> |
|---|---|
| Date | 2012-06-14 10:39 -0400 |
| Message-ID | <4fd9f77e$0$6565$9b4e6d93@newsspool4.arcor-online.net> |
| In reply to | #15251 |
Hi! Roedy Green wrote: > in windows you spawn > w32tm.exe /resync In a corporate network you should have (at least) 2 servers that run ntpd getting the time signals from multiple outside sources. You should ask for permission to use these sources. Then close the ntp port in the firewall for everyone except these servers. All your other systems should get the time from your own time servers. On Unix/Linux boxes install ntpd and have it point to your corporate time servers. Sync your Windows domain controllers with your corporate ntp servers, all computers in the domain will get their time from there. Your windows systems that are not part of a domain should get their time from your ntp servers. To automate this I use a batch file to set/change the registry entries. Here the content: w32tm /register w32tm /config /manualpeerlist:"Your corporate servers" reg add HKLM\System\CurrentControlSet\Services\W32Time\Parameters /v "Period" /t REG_DWORD /d 0 /f reg add HKLM\System\CurrentControlSet\Services\W32Time\Config /v "MaxNegPhaseCorrection" /t REG_DWORD /d 4294967295 /f reg add HKLM\System\CurrentControlSet\Services\W32Time\Config /v "MaxPosPhaseCorrection" /t REG_DWORD /d 4294967295 /f Setting the maximum correction to infinity makes sure that a system with a bad CMOS battery is still synced. Regards Gunter
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-06-01 14:26 -0700 |
| Message-ID | <2ncis79vks3sglicpim5p21ev0v8osip8q@4ax.com> |
| In reply to | #14977 |
On Fri, 1 Jun 2012 06:50:07 -0700 (PDT), bob <bob@coolfone.comze.com> wrote, quoted or indirectly quoted someone who said : >Does anyone know of a really good implementation of an NTP client in Java? If you want something simple, cannibalise the code inside SetClock. It works at the UDP level. see http://mindprod.com/products1.html#SETCLOCK.html For background on NTP see http://mindprod.com/jgloss/ntp.html including lists of servers. -- Roedy Green Canadian Mind Products http://mindprod.com Controlling complexity is the essence of computer programming. ~ Brian W. Kernighan 1942-01-01 .
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web