Thanks for your answer. Today my ofbiz cookbook arrived which has a chapter about both, security and accessing multiple databases.
Hopefully this helps when the time comes. Your answer shows a way very similiar to what i had in mind. So thanks again.
