Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SdeTest {
- public static void main(String[] args) {
- SeConnection connection = null;
- try {
- System.out.println("Connecting");
- connection = new SeConnection("none", "sde:oracle11g:geobase_tns", "none", "{my-user}", "{my-password}@geobase_tns");
- System.out.println("CONNECTION OK");
- } catch (SeException e) {
- e.printStackTrace();
- } finally {
- if(connection != null) {
- try {
- connection.freeAllLocks();
- connection.close();
- } catch (SeException e) {
- e.printStackTrace();
- }
- }
- }
- }
- }
- geobase_tns =
- (DESCRIPTION =
- (ADDRESS_LIST =
- (ADDRESS = (PROTOCOL = TCP)(HOST = {my-host-ip})(PORT = {my-port-number}))
- )
- (CONNECT_DATA =
- (SERVICE_NAME = {my-service-name})
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement