Basically we are planning to have OLS (Oracle Label Security) in our database and for this we will be making different set of user with different privileges ( Some of users will have different access to any row depending on data label of this row )
And to achieve this from application we need to have user logging to Database using different credentials .
I can see such thing in Oracle C++ Call Interface (OCCI) and also In Weblogic (
http://download.oracle.com/docs/cd/E11035_01/wls100/jdbc_admin/jdbc_datasources.html) .
But I am looking to implementing same in Jboss server . I know if I won't find anything then we will have to write our own pooling logic .. but I was looking if someone has already done this or if there is any work around .