Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / October 2005

Tip: Looking for answers? Try searching our database.

Getting a date of the remote machine from a Java desktop application

Thread view: 
nilangini - 26 Oct 2005 12:53 GMT
Greetings,

Is it possible to get a date of the remote server from a Java desktop
application?

Thanks for your help.
Roedy Green - 26 Oct 2005 13:13 GMT
>Is it possible to get a date of the remote server from a Java desktop
>application?

see how Setclock gets it from an atomic time server on the web..
http://mindprod.com/webstarts/setclock.html
Links to source.

An easier way would be just to send it in an HTTP packet. That would
be close enough for most purposes.

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

nilangini - 26 Oct 2005 13:26 GMT
Thanks a lot for the reply.
I could not find a way to see the code of setclock application. Sorry,
I am very new to this technology. I may be asking something very basic.

Actually, I am writing a Java desktop application which accesses the
database from a remote server. We are using an MS Access database
residing on the remote server.
In some of the tables when a new record is inserted, we need to insert
the server date in one of the field (like CeationTimestamp). Currently,
whenever a new record is inserted, the client date and time goes in
this field.

Do you have any idea how to achieve this?

Thanks you very much once again,
Nilangini
Roedy Green - 28 Oct 2005 09:58 GMT
>I could not find a way to see the code of setclock application. Sorry,
>I am very new to this technology. I may be asking something very basic.

see http://mindprod.com/products1.html#SETCLOCK
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

JavaByExample_at_KickJava_com@yahoo.com - 31 Oct 2005 13:26 GMT
>Actually, I am writing a Java desktop application which accesses the
>database from a remote server. We are using an MS Access database
>residing on the remote server.

Assuming you knows how to retrieve data from the remote Database.  Just
do a select datetime from the database, and pass that back to the
client.

David
=====================================
http://KickJava.com - FREE Java Resources, Examples, Source Codes,
Books, News and Articles


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.