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:01:20 UTC
[jira] [Commented] (METAMODEL-1120) How to set a socket timeout
while connecting with the database in Apache Metamodel
[ https://issues.apache.org/jira/browse/METAMODEL-1120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15548501#comment-15548501 ]
Vimal Sharma commented on METAMODEL-1120:
-----------------------------------------
Created on behalf of [~apancholi@chambal.com]
> 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)