Re: Network license control for a Java application
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
> 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)
> [Replace the "SixFour" with numbers to email me]
|All times are GMT. The time now is 05:10 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.