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:

  1. some sort of broker/proxy-capable data abstraction layer (hibernate, jpa, etc)
  2. jms communicate software somewhere behind customer firewall
  3. the server side of #1
  4. 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

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -