DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005
    Posts
    17

    Logging Java Program

    I am quite new to Java; I have done some tutorials and have played around with sockets, sending information between a client and server. I want to build a program in Java either an applet or application which can detect when a user has logged onto a Linux or a Windows machine and record how long they have been logged on for. I then want to display this information on a webpage.
    Does this sound like something that can be achieved in Java, and if so where can I start with a program like this, just trying to get my head round how I would do this.

    Thanks in advance for any advise.

    Sam

  2. #2
    Join Date
    Mar 2005
    Location
    UK, London
    Posts
    150
    Hi, my personal opinion, you could use a database on a host such as Mysql. If you want your java desktop program to connect to a Mysql database, you will need to download the connector/j from the mysql web site. I have tried connecting to mysql on a hosting account and never got it to work, I can connect to mysql running on localhost with no problem. Hope this link will help.

    http://www.cy2online.net/ViewTutoria...anguageID=Java

  3. #3
    Join Date
    Nov 2005
    Posts
    17
    Thanks I will have a run through the tutorial, see if it helps me out.

Similar Threads

  1. Help! Simple Java Program.
    By SlickWilly440 in forum Java
    Replies: 2
    Last Post: 01-28-2006, 09:17 PM
  2. DevX does seem one sideded
    By Rob Abbe in forum Talk to the Editors
    Replies: 44
    Last Post: 01-13-2003, 02:57 PM
  3. Has Sun Given Up on the Desktop?
    By Lori Piquet in forum Talk to the Editors
    Replies: 114
    Last Post: 10-10-2002, 06:01 AM
  4. .NET vs. Enterprise Java: Who's Got Better Security?
    By Glen Kunene in forum Talk to the Editors
    Replies: 17
    Last Post: 03-23-2002, 12:43 AM
  5. Replies: 0
    Last Post: 11-16-2000, 12:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links