|
It is necessary to disconnect from the database after the job is done in Java? If it is not disconnected, will it lead to memory leaks?
Started by flyingfromchina on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I don't have a source, but I believe (if I remember right, it's been a while since I've... .
If not, is more probable you can't obtain new connections from the pool than a memory leak .
You must always close all your Connections, Statements and ResultSets .
|
|
How can I handle WCF Client Disconnects ?
I Tried CallBacks but it seems to only works when Client Disconnect "clearly" by using a "Disconnect" button for example.
I want my server to be notified when Client got disconnected, even on manual disconnect...
Started by Yoann. B on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
To disconnect a client and clean up.
That´s one of many reasons why we have session timeout .
|
|
How to disable the Reconnect at logon setting for a mapped network drive on Vista? How to disconnect already mapped drives?
Started by Toro on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
To disconnect, use:
net use Z: /d.
disconnect from the server, then map it again to change it.
|
Ask your Facebook Friends
|
Hi all
how do i disconnect RDP session programatically in c# or c++?
Abdul Khaliq
Started by Abdul Khaliq on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You could try running tsdiscon: http://support.microsoft.com/kb/321705.
Use WTSDisconnectSession.
|
|
I have this computer case . It has a large fan on the side which makes too much noise. Is this fan necessary, or can I disconnect it?
Started by Mirage on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at superuser):
Then disconnect the fan and have an eye on the temperature, see can disconnect the side fan for a short period of time and verify that the noise goes away will vary, we rarely see any lasting effects.
GPU-Z and monitor your video card.
|
|
Someone I know wants to use diconnected recordsets in an application. To me it sounds like if I have a ORM tool there would really be no need to even touch disconnected recordsets. The way I understand it with ORM the ORM takes care of not hugging connections...
Started by Ramiro on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
That includes any application where it feels like the quickest thing you can do, and you don't see a reason it... .
I'd consider using a recordset in small "assemble and forget" applications or when you have simple reporting needs like read-only grid views .
|
|
I have a graph which contains an unknown number of disconnected subgraphs. What's a good algorithm (or Java library) to find them all?
Started by Ollie G on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm assuming you want to find all the (strongly) connected components? For that you can use Tarjan's algorithm (a variant of DFS)
What about a breadth first search to find all connected nodes? Once you have the list of connected nodes, you subtract this... .
|
|
Hey all. I have a server written in java using the ServerSocket and Socket classes.
I want to be able to detect and handle disconnects, and then reconnect a new client if necessary.
What is the proper procedure to detect client disconnections, close the...
Started by windfinder on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In this case, you can detect the end-of-stream when the corresponding read operation returns -1 (for raw read() calls), or null (for readLine... .
Presumably, you're reading from the socket, perhaps using a wrapper over the input stream, such as a BufferedReader .
|
|
What are your experiences with the latest version of NHibernate (2.0.1 GA) regarding disconnected scenarios?
A disconnected scenario is where I fetch some object graph from NHibernate, disconnect from the session (and database connection), do some changes...
Started by Patrick Peters on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The main reason to move in this direction is not NHibernate... .
This means, the detached entities are not directly sent to the client anymore, but specialized objects .
Now we are moving to DTO (data transfer objects).
We tried this in a client-server architecture.
|
|
In some circumstances I wish to send an error message from a server to client using non-blocking I/O ( SocketChannel.write(ByteBuffer) ) and then disconnect the client. Assuming I write the full contents of the message and then immediately disconnect ...
Started by Adamski on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Your question makes me think that you expect the write method to consume the entire buffer and try asynchronously... .
SocketChannel.write will in non-blocking mode return the number of bytes, which could immediately be sent to the network without blocking .
|