aspose file tools*
The moose likes Java in General and the fly likes Date-controlled Release Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Date-controlled Release" Watch "Date-controlled Release" New topic
Author

Date-controlled Release

Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Suppose you have developed a solution and will deliver the system within a few days. But you are not sure whether your client will pay you the rest of the price of the solution. So you want to develop a mechanism where your code will run upto 30 days or upto a fixed date or day-length.
What are the options you can do as a developer?
Possible Answers I thaught Of
  • Developing a key based solution and the system will ask for the key every 30 day. [but how should I do it? ]
  • Provide an XML file and the system reads some texts from the file before starting the modules of the application. In that XML file supply the date-range as validation logic. [But client may find the xml file and manually increase the date ]
  • Other standard industry practice from all your experiecnes. [This is what I am waiting for now ]


  • Regards,


    Ashik Uzzaman
    Senior Member of Technical Staff, Salesforce.com, San Francisco, CA, USA.
    John Smith
    Ranch Hand

    Joined: Oct 08, 2001
    Posts: 2937
    Read the time from a time server (not the local machine time, which can be set back), and when you detect the due date, pop up a reminder to pay and exit. The client must be connected to Internet for this solution to work, of course.
    Eugene.
    [ April 03, 2003: Message edited by: Eugene Kononov ]
    Ashik Uzzaman
    Ranch Hand

    Joined: Jul 05, 2001
    Posts: 2370

    Time Server?
    Well, how should I build a time server then? That time server I guess will take time the server machine...
    But I need to provide this mechanism in a non-web client/server solution developed in Swing. Then what may be the other options?
    Any light please! :roll:
    [ April 05, 2003: Message edited by: Ashik uzzaman ]
     
    wood burning stoves
     
    subject: Date-controlled Release