tomcat DB access with port forwarding

S

sime

I wrote a simple java app to test SSH port forwarding to a DB that
doesn't allow direct access, and it works. When I use the same code for
a servlet, tomcat isnt happy about it...

ssh -L 2020:db.server.com:1521 public.server.com -C

thus
dbDriverName = "oracle.jdbc.driver.OracleDriver";
dbURL = "jdbc:eek:racle:thin:mad:localhost:2020:db_name";

works for the simple app, but not with tomcat.

-sime
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top