connection

Problem with Java Sockets (in tic tac toe game)

Hey everyone, I have built a two-player tic tac toe game in Java, using sockets (no threads). I have it working, except for terminating the clients when the game is over. Basically, I have it set up so that once a game is over (the server recognizes a win or a draw), then the server will send a message to the two clients. If the clients...

Getting Connection timeout in OCCI

Hi All, I need to test the connectivity if the Oracle::OCCI::Connection, and how can i get and set the connection timeout value? i read the documentation of Oracle OCCI but i can't find the required functions. Thanks in Advance. ...

Oracle Home for Visual Studio

Okay. Forgive me, but I'm going to vent a little here. Visual Studio doesn't recognize my TNSnames for oracle so I can't connect to my database. I believe the problem is that I have multiple homes on my machine, one for me (In C:/app/{UserName}/product/11.1.0) and one general one which was already installed on my machine (In C:/oracle/pr...

PHP: Is there a way to change request address?

For some reason, if I request a file using a url such as this: http://localhost/proxy.php?url=http%3A//anintranetsite/file.jpg It works! I can get the file. But if I use, http://127.0.0.1/proxy.php?url=http%3A//anintranetsite/file.jpg I cannot get it to work. I am not unnderstanding what is going on... Any thoughts on what co...

J2me Httpconnection,which one is better get or post?

In J2ME ,Which connection type is better?Get or post.Which one is faster?which one uses less bandwidth?and which one is supported by most of the handsets?What are the advantages and disadvantages of both? ...

Apache -> MySQL multiple connections vs one connection

I've been thinking, why does Apache start a new connection to the MySQL server for each page request? Why doesn't it just keep ONE connection open at all times and send all sql queries through that one connection (obviously with client id attached to each req)? It cuts down on the handshake time overhead, and a couple of other advantag...

How do I make my Java application identify itself to Oracle on connection?

When my application connects to an Oracle database I want to be able to see by looking at the active sessions in the database that it is connected. Currently it identifies itself as "JDBC Thin Client" because that's the driver that I'm using, but other Java based applications that I have are somehow able to set this value to something mo...

Java: Socket close connection and ObjectInputStream

Hi, My code looks like this, this is Server code (Runnable) public void run() { while (true) { try { System.out.println("Waiting for client..."); this.socket = serverSocket.accept(); System.out.println("Client accepted"); while (true) { readCommand(); ...

ASP.NET: Connection closing after repeater databinding

Hi, I recently changed the way the connection worked on my web app and now I'm facing something that I don't understand. I hava a page that call a function called "ItemGet" in the Page_Load and it work perfectly when there is no data in the first repeater (Repeater1). When I click on a button that reload the page with different data (I...

How do you detect when the connection breaks when a web service is returning a result?

In a C# ASP .NET application I have a web service that receives a DataSet, processes it, and returns it. Returning it can take up to a minute over a slow connection. What happens in the background if that connection breaks after the last line of the web service method has run but while the data is still being sent? I tried wrapping my...

How to detect network connection failures in mod_proxy?

We have an Apache server accepting connections through mod_proxy from random computers with bad internet connections in Africa. We would like to know how many of these connections are attempted (and fail, or are truncated) as possible. How do we set up such logging in mod_proxy? All the other threads I've found online imply that mod_pro...

Remote SQL Server 2008 performance

My company has recently put up a demo database on his remote servers to allow some of our partners to test our beta version of the software. We noticed, as expected, some bottlenecks in some parts of the program, in particular on the places in which many queries are done. For example, I have to load customer from database, with all...

Cannot connect to MySQL 4.1+ using old authentication

I'm trying to connect to a mySQL database at http://bluesql.net, but when I try to connect, it gives this error: Connect Error (2000) mysqlnd cannot connect to MySQL 4.1+ using old authentication I've looked into this, and it has to do with some old password scheme used before MySQL 4.1. Newer versions have the option to use old passw...

oracle nhibernate connection

Hi, I am trying to connect oracle 10g database through n hibernate, can anyone help me the preliminary steps to be done to establish the connection, I've connected sq l server 2000 easily and its working fine, now i try to connect oracle but i am getting error "cannot open connection". please help me in this regard. Thanks in advance. ...

ini_set, set_time_limit, (max_execution_time) - not working

If I do set_time_limit(50) or ini_set('max_execution_time',50) when I echo ini_get('max_execution_time') on my localhost i get 50, when i do on another server it echoes the default 30 and completely ignores my request. why is this? ...

Where/How do I handle different connection types using Repository Pattern with ADO.Net?

I am new to the repository pattern but am creating a repository to connect to two different database types that have the same data structure. Where and how should I handle the connection? Here are my requirements/constraints/project description I will be connecting to SQL Server 2005 and DB2 (on Iseries) I will be using the repository...

Unclosed connection - Connection Pool debugging SQL Server

We have a suspect application leaving a connection open. Just wondering on the debugging tools for this, as to whether anyone has any good tools for isolating this, commercial or otherwise. I've Googled but only seem to bring up articles that describe the problem - not the steps for a solution. This is the best article I've seen so f...

Smart device connect with sql server

I want to connect to sql server with samart device application but error is there . sql execption so please help me ...

MS Access 2000: Is it possible to open a connection to query Lotus Notes?

Can I create either an ODBC connection or a connection string in VBA to get into a lotus notes database to pull data out of it? ...

Setting Quercus db connection encoding to UTF-8 (urgent problem and need your great help)

Now we are going to use java class in my website developed with PHP + mySQL. I came to know Quercus and it worked well. But only problem is encoding. Quercus is providing ISO8859 encoding in default and all database in UTF-8 is not shown properly like ???. If anybody know the way to set Quercus db connection encoding to UTF-8, please he...