java - Best way to access MS SQL DB behind a firewall -
i have multi-tenant app needing access customer-provided database residing behind firewall, without requiring user open ports, etc. if write ourselves, we're thinking path our app customer's database be:
- some sort of broker/proxy-capable data abstraction layer (hibernate, jpa, etc)
- jms communicate software somewhere behind customer firewall
- the server side of #1
- jdbc customer's database
is better approach running jdbc on ssh or vpn? can recommend existing open-source solutions might want?
thanks! :)
the easiest way use ssl connection, can use data access technology:
- jdbc
- jpa
you need configure secure connection url:
<property name="hibernate.connection.url"> jdbc:sqlserver://system:port;databasename=mydb;integratedsecurity=true;encrypt=true;trustservercertificate=true </property>
Comments
Post a Comment