Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14731
| From | Hatter Jiang <jht5945@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Network license control for a Java application |
| Date | 2012-05-21 05:04 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <ea0f67ab-986c-41dd-ab07-8590bdd9257a@googlegroups.com> (permalink) |
| References | <tL-dnV9Cee7NmyfSnZ2dnUVZ_q2dnZ2d@westnet.com.au> |
How does this method; create a database table : ID, TASK_NAME, TASK_RUN_COUNT insert (id, task_run_count) values(1, 10); when run : update set task_run_count=task_run_count-1 where id=1 and task_run_count > 0; if update one record the the application can run, if no record updated then the application cannot run. but if the application crash, i have no good idea, it depends on your requirement. On Monday, May 21, 2012 5:08:45 PM UTC+8, Qu0ll wrote: > I have been tasked with providing some form of network license control for a > Java application. The app would be stored on a network drive and run from a > client machine. The basic idea is that it will be able to work out how many > times it is being run concurrently and prevent the N+1th user from running > the software where N is the number of concurrent licenses the customer has > purchased. > > Is this possible somehow with a Java application? I was thinking of maybe > incrementing a number stored in a file every time the app is run and then > decrementing it again when the app exits. I also thought of storing a time > when each app invocation started so I could "time-out" users in the cases > where the app may crash. > > Is this a viable solution or is there a better way? > > -- > And loving it, > > -Qu0ll (Rare, not extinct) > _________________________________________________ > Qu0llSixFour@gmail.com > [Replace the "SixFour" with numbers to email me]
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Network license control for a Java application "Qu0ll" <Qu0llSixFour@gmail.com> - 2012-05-21 19:08 +1000
Re: Network license control for a Java application Hatter Jiang <jht5945@gmail.com> - 2012-05-21 05:04 -0700
Re: Network license control for a Java application "Jeffrey H. Coffield" <jeffrey@digitalsynergyinc.com> - 2012-05-21 07:47 -0700
Re: Network license control for a Java application Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2012-05-21 09:48 -0700
Re: Network license control for a Java application "Qu0ll" <Qu0llSixFour@gmail.com> - 2012-06-02 13:01 +1000
Re: Network license control for a Java application "Qu0ll" <Qu0llSixFour@gmail.com> - 2012-06-15 19:31 +1000
csiph-web