Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14731
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | Hatter Jiang <jht5945@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Network license control for a Java application |
| Date | Mon, 21 May 2012 05:04:38 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 38 |
| Message-ID | <ea0f67ab-986c-41dd-ab07-8590bdd9257a@googlegroups.com> (permalink) |
| References | <tL-dnV9Cee7NmyfSnZ2dnUVZ_q2dnZ2d@westnet.com.au> |
| NNTP-Posting-Host | 121.0.29.206 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1337601879 10639 127.0.0.1 (21 May 2012 12:04:39 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Mon, 21 May 2012 12:04:39 +0000 (UTC) |
| In-Reply-To | <tL-dnV9Cee7NmyfSnZ2dnUVZ_q2dnZ2d@westnet.com.au> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=121.0.29.206; posting-account=qWnZgAoAAAD6Ed89vG6fTjHNOjDIuMl- |
| User-Agent | G2/1.0 |
| X-Received-Bytes | 2531 |
| Xref | csiph.com comp.lang.java.programmer:14731 |
Show key headers only | View raw
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