connection

Java detect lost connection

When I'm using e.g. PuTTY and my connection gets lost (or when I do a manual "ipconfig /release" on Windows), it responds directly and notifies my connection was lost. I want to create a Java program which monitors my internet connection (to some reliable server), to log the date/times when my internet fails. I tried use Socket.isConne...

Oracle database connections - what are all the fields I need to fill in?

I'm used to using SQL Server and I'm now faced with connecting to Oracle. Can I get some completely unambiguous descriptions for what all the fields I need to fill in are? Specifically, I want to understand what these are: Home Hostname Port SID Service name Network Alias Connect identifier My basic understanding is that hostname ...

connection reset for concurrent usage by two users GAE

I am trying to access same python web app in GAE from firefox and IE with different user login and when I start the IE session I get the following error with IE going standstill. why? error: (10054, 'Connection reset by peer') ...

PHP and mysql connections

Is it possible to create a connection in a PHP class file and use it in all of the different methods in the class? I am trying to open a connection in the constructor and i get an error when i get to the close connection method saying that the argument that I've provided in the mysql_close() statement isn't a valid MYSQL-Link souce. ...

Connection speed test in Silverlight

I'd like to put some sort of "connection quality" indicator on a Silverlight 3 app that would give the user an idea of their connection speed. This could be an icon that turns red, yellow or green to give a basic idea of the performance the user should expect. What's a good way to measure connection speed in Silverlight? ...

Infopath 2007 Repeating table - two data connections

I have two data connections. One (we'll call DC1) pulls FIRSTNAME and LASTNAME from a database. The other, (we'll call DC2) uses this information to query a web service that returns a USERNAME after matching it to another database. On my form, I have a repeating table that lists all the information from DC1. In the repeating table,...

Unspecified Error - 80004005

Hello, I am getting error Microsoft JET Database Engine error '80004005' Unspecified error in ASP code on line whilc open database connection. Sometime it works sometime not. Not gettings ne solltion. Plz help. Kartik ...

How to obtain the list of Oracle's SIDs

I have the host, port, user id and password but missing SID for connecting to Oracle DBMS. How can I find the list of SIDs on that server? ...

debugging Error establishing mySQL database connection under extreme load

Under high traffic my mysql 5.0.45 server /Apache2/ CentOS 5 is getting "Error establishing mySQL database connection". I need to find the root cause. I would very much appreciate any pointer to information about the procedure I should take to find the cause (memory limit, thread limits, CPU load, slow queries etc, large dataset, wrong ...

Unable to rescue from "Lost connection to MySQL server" error

I have a block like so: begin # some SQL request rescue Mysql::Error => e logputs "Mysql::Error occurred, retrying in 10s: #{e.message}" sleep 10 retry end But when a "Lost connection to MySQL server" error occurred, this block was not able to catch it and retry (the MySQL server was restarted). Any idea how I ...

Finding connection strings in code programatically

Seems like a fairly straightforward problem. I want to look through about 6gb of content and classic asp code and find anything that looks like a connection string. Problem is, the connection strings are formatted in a dozen different ways. I was thinking of using a regex to look for specific properties like "catalog=" or "password=" ...

Post a message to a remote JMS queue using JBoss

This looks simple but I can't find a simple answer. I want to open a connection to a remote JMS broker (IP and port are known), open a session to the a specific queue (name known) and post a message to this queue. Is there any simple Java API (standard if possible) to do that ? EDIT Ok I understand now that JMS is a driver spec jus...

DataAdapter update method - which connection does it use?

Sorry for the probably stupid question. Since I found nothing about it on the internets, its probably totally obvious and I'm just to blind to see?! I'm trying to update a table in a database from a dataset via DataAdapter.Update(dataset) But there is no possiblity to set the connection, the DA should use. Where does the DA know how t...

How to tell the host from the client in iPhone bluetooth with GameKit

I have made a multiplayer game using the GameKit Framework where 2 iPhones/iPods can connect to each other via bluetooth and play. I am thinking of a way to choose which device will be able to play first. So the logical solution is to pick the host of the connection. Is there even a server and a client in the GKSession? Are they all pee...

sql server connection error

I keep getting the following error when I try to register a db server: TITLE: Connect to Server Cannot connect to p3swhsql-v14.shr.phx3.secureserver.net. ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that u...

Relation between Oracle session and connection pool

Let me explain the set up first. We have an oracle server running on a 2GB RAM machine. The Db instance has the init parameter "sessions" set to 160. We have the application deployed on Websphere 6.1. The connection pool settings is Min 50 and Max 150. When we run Load test on 40 Users (concurrent, using jMeter), everything goes fine....

Session StateServer connection string issue

We implemented the session state server and deployed in local PC(windows xp) its working fine. WE deployed in windows server 2003 we got the issue in connection string. Any one help me. ...

Connection Reuse with Curl, Apache and mod_wsgi

I am deploying a mod_wsgi application on top of Apache, and have a client program that uses Curl. On the CURL api on the user side, I have it attempt to reuse connection, but looking at the connections from wireshark, I see that for every HTTP request/response, a new connection is made. At the end of every HTTP request, the HTTP resp...

How to avoid accidentally closing an SQL Connection in Java?

Currently what i am doing for transaction management is: Connection connection = getConnection(); connection.setAutoCommit(false); updateTableX ( connection, ... ); updateTableY ( connection, ... ); connection.commit(); closeConnection(); I would like to know, if it is possible to avoid closing the connection in my 'updateTableX' meth...

How can I change the connection being used by Castle ActiveRecord

I have an application build using ActiveRecord for which there is a new requirement to allow the user to select a database they wish to operate at various times in the course of the running of the application. The database connection is set up in the ActiveRecordStart.Initalize call. I would like to be able to change this connection whe...