You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metamodel.apache.org by "Vimal Sharma (JIRA)" <ji...@apache.org> on 2016/10/05 12:00:26 UTC

[jira] [Created] (METAMODEL-1120) How to set a socket timeout while connecting with the database in Apache Metamodel

Vimal Sharma created METAMODEL-1120:
---------------------------------------

             Summary: How to set a socket timeout while connecting with the database in Apache Metamodel
                 Key: METAMODEL-1120
                 URL: https://issues.apache.org/jira/browse/METAMODEL-1120
             Project: Apache MetaModel
          Issue Type: Bug
            Reporter: Vimal Sharma


I am using the latest version of Apache Meta-model and trying to connect with SQL Server using
{code} 
DriverManager.getConnection(String url,
        String user, String password) throws SQLException
{/code}
but it stuck for 6 hours now therefore I need to set a socket time out. I saw a method
{code}
public static void setLoginTimeout(int seconds) {
        loginTimeout = seconds;
}
{/code}
Does it for the setting a socket time out? Please help



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)