I changed hibernate's DatasourceConnectionProvider's code to list all object's from JNDI, and it was empy, then i tried these properties:
.. and i got my bean's and some other stuff, but no that datasource.
But anyway, does someone know why i got different Context's in my LoginModule and DatasourceConnectionProvider?!??
I am going through the same thing, the JAAS howto is not very specific on how best to implement this.
I wish jBoss would make a step-by-step for this issue.
I'm quite newbie with JAAS, and in my situtation the problem was, that i didn't known that in standalone client LoginModule is driven in client, not in server (very innovative idea!). That's why jndi couldn't find datasource.
Anyway i think that there is quite little information at standalone client's, and this information i got some old JBoss book. I think it was JBoss Development & Administration or something like that.