Link to home
Start Free TrialLog in
Avatar of jl66
jl66Flag for United States of America

asked on

Is possible to make a jsp script work with oracle wallet?

Have a jsp script that connects to oracle database. Since I wants to hide the username/password to oracle schema, I would like to use oracle wallet to achieve it. Is it possible? Can any guru shed some lights on how to do that or point to a link? The connection portion using wallet is critical for me.  (Oracle database version v11.2)

If it is not possible, is there any way to hide the username/password somewhere?
Avatar of jl66
jl66
Flag of United States of America image

ASKER

The webserver is Tomcat on Linux.
SOLUTION
Avatar of johnsone
johnsone
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jl66

ASKER

Thanks for the tip.
For a plain java program, this is no problem. I already worked out. However if you put in jsp script running on Tomcat, that always complains the wrong password no matter hard hard I tried. I am really interested in the link or example for jsp script with wallet.

Can any guru find it or show some more tips for me?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jl66

ASKER

johnsone, Thanks a lot for your tips again. I tried it. It says the wrong username/password, and tried other similar things, not been successful yet. I am wondering that usually Tomcat is installed and owned by one user (U1), but the wallet owner is different. Usually it is a normal oracle database user (U2). Without any wallet password involvement, how can U1 get known the info in wallet via jsp page? Do you have a test env? Maybe I am asking too much.

Recently I read something on jndi, can I use it instead of wallet? The purpose is that in jsp page, there should not be a schema password there?  Maybe I need to open another ticket for it after this one.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jl66

ASKER

Thanks for your tips.