Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey H. Coffield" Newsgroups: comp.lang.java.programmer Subject: Re: Network license control for a Java application Date: Mon, 21 May 2012 07:47:49 -0700 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 21 May 2012 14:47:51 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="+DEw9szhsfaErv7+xHBaTQ"; logging-data="10877"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186BAg7TqmwcGyg+EdDZ8thM3Lo3/TWoCM=" User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: Cancel-Lock: sha1:QvyikmNnnHYaLrEasQj/JrEjg9k= Xref: csiph.com comp.lang.java.programmer:14739 On 05/21/2012 02:08 AM, 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. > My first idea would be to have the application open a connection to a "license server" that would only accept N connections. With some sort of keep-alive packet you could time out systems that crashed. (I have seen windows systems crash and leave TCP/IP connections open). Jeff Coffield www.digitalsynergyinc.com