Did you try setting the following properties in the respective databases:
derby.user.<user name>
as mentioned in the documentation at:


That should help in controlling access to a particular db. Is this what you were looking for.


On 5/12/06, Souciance Eqdam Rashti < theprophet18@gmail.com> wrote:
Hello Everyone
I have a rather annoying problem. I was wondering if anyone could provide sample code as to how I can restrict a user to a single database or basically a certain number of database. So for example user fred would  only be allowed to access accounting and not sales.  
It seems to be that once a user gets database access he can login into any database but I want to restrict a user to a certain database. Thanks.