Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Single concurrent user access

Status
Not open for further replies.
May 13, 2002
75
GB
Hi all,

I have some data in a database and am about to start to write a simple querying / viewing application (probably Swing/webstart, maybe JSP). Because of the nature of the data, we are only licensed for a single concurrent user, so i have to make sure that not more than one person can use an instance of my app at the same time. Any ideas how i can acheive this?

Many thanks
Alistair

Alistair [monkey]
 
Won't the database jdbc connector have some licencing checks that make it throw exceptions if more than one connection is attempted?

Your software could propagate this to the client and then terminate.


Tim
 
Even easier than that is to write a "gateway" to which your queries must run - and then synchronize this method.

Or, most pooling systems allow you to specifiy how many concurrent connections are available - if you set it one, then this will work (as long as the pool implements a queueing system for requests for connections).

Click here to learn Ways to help with Tsunami Relief
--------------------------------------------------
Free Database Connection Pooling Software
 
The pooling configuration seems more flexible. If the query facade was synchronized and they bought some extra licences they wouldn't benefit.


Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top