Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail NNTP-Posting-Date: Mon, 21 May 2012 04:09:36 -0500 From: "Qu0ll" Newsgroups: comp.lang.java.programmer Subject: Network license control for a Java application Date: Mon, 21 May 2012 19:08:45 +1000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 Message-ID: Lines: 23 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 124.169.156.83 X-Trace: sv3-NebxJuB76LZRyWSnAcz6WriZ0d4T54M8NXkbQFxrZD3JutesJoTUV9SmcHS5txgDtBbL5Zx75cg5Xdm!KQoHNxvuLMOWrYD1GFmh6/6xp/R+3XJ+ZwohP6A3ugwD6PKcwEcuwxFHQh8DL5eMBPVWsaiOfWKp!Bh2aHE/Q9Mhqm40tAxudOQ== X-Complaints-To: abuse@westnet.com.au X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2183 X-Received-Bytes: 2324 Xref: csiph.com comp.lang.java.programmer:14726 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]