-
1. Re: LoginModule & hibernate & jndi datasource.
artsi May 4, 2004 3:40 AM (in response to artsi)I changed hibernate's DatasourceConnectionProvider's code to list all object's from JNDI, and it was empy, then i tried these properties:
p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
p.put(Context.PROVIDER_URL, "localhost:1099");
.. 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?!??
Artsi -
2. Re: LoginModule & hibernate & jndi datasource.
omni May 4, 2004 1:08 PM (in response to artsi)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.
---Jason -
3. Re: LoginModule & hibernate & jndi datasource.
artsi May 4, 2004 11:44 PM (in response to artsi)Hi Jason.
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.
Artsi