Hi all,
I am currently designing a
Java Stand-alone Application in WSAD 5.1.2.
I try to look up JNDI name from the DataSource that I set from the
Testing server 5.0 of WSAD. However, it throws "can't not cast java.util.HashMap" when I try to execute the following code:
However, if i treat it as web application and execute as
servlet, then I can bind the JNDI name successfully.
Later on, I debugged with the following code:
what I got from the println in
Servlet lookup is "javax.naming.Reference"
what I got from the println in
pure java(Stand-alone application) lookup is "com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource"
So is that something to do with classloader ? Please suggest me what to do since I am getting crazy with this kind of technical question.
Thanks in advance
Transistor
[ February 01, 2006: Message edited by: YuenLian Wu ]