connection

weblogic context lookup error : java.rmi.UnmarshalException: error unmarshalling arguments

Hi, We are facing an issue in our production env. We have searched the net high and low and we were not able to come up with any answers. This error(stacktrace below) occurs when an ejb lookup is made from managed server 1 to manager server 2. Virtual ip is used for the lookup. It occurs intermittently and at random intervals. We are no...

Blackbery getting notified when the internet connection is available.

Hi there, is there any way to know whether the net is connected or not in a blackbery device .I have the following code but it was waiting till the network timed out. int rc = connection.getResponseCode(); if (rc != HttpConnection.HTTP_OK) { throw new IOException("HTTP response code: " + rc); } Is there any other way. ...

Connecting to MySQL using zend

I've set up a virtual host on my local machine myhost.com, have installed zend there and am now trying to connect to the MySQLdatabase. I get the following error message: Message: SQLSTATE[HY000] [2003] Can't connect to MySQL server on ''myhost.com'' (10060) All the tips I've found via google haven't helped. I use kaspersky antivir...

Maintain a single connection or open only when i need to change something?

I have an SQL server on a server at home (which is an Atom processor with 1GB ram), and i'm using it to store data for one or two of my applications. I was wondering if i should create a DataContext object when the program starts then hold onto it for the entire life of the app, or only create the connection when necessary. What happens...

Tomcat JNDI Connection Pool docs - Random Connection Closed Exceptions

I found this in the Tomcat documentation here What I don't understand is why they close all the JDBC objects twice - once in the try{} block and once in the finally{} block. Why not just close them once in the finally{} clause? This is the relevant docs: Random Connection Closed Exceptions These can occur when one request gets a db ...

Connecting to MSAccess with Java

I am developing my project in Java. I would like to know how I can connect to MSAccess. Any links, or small examples would be greatly appreciated. ...

Read Java Internet Connections settings - jdk1.4

Is there a way of getting internet connection settings (proxy information) being used by java to connect to the internet? With Java 1.5 you can use the ProxySelector introduced then, is there any way of doing it in jdk1.4? I tried getting these seeting using the following code snippet, but returning nulls even though i have set my prox...

connecting to my local virtualized debian

Hello I have installed Debian as a VirtualBox guest on Windows XP. Now I have installed ssh and apache on this virtualized Debian yet I couldn't find a way to connect. I have already tried "10.0.0.2", "10.0.2.2" and inet addresses I get from running "ifconfig". (I can get the "it works!" page of apache2 when I try 127.0.0.1 under guest D...

Closing WCF connection

We are using WCF service on the client side we are planning to explicitly close the connection It seems there are more then one way of closing Sample1: In the finally block of the WCF service consumption use if (client.State == CommunicationState.Faulted) { client.Abort(); } client.Close(); Since if the service is in fault state...

php fsockopen unable to connect, connection timeout error

Hello, I am running a local apache server on an ubuntu machine, and i am trying to use the phpmailer class to send mail. It tries to connect by fsockopen to the mail server, but it throws a timeout error. I tried setting the timeout to 15sec with no luck. It does work on other machines. How can i find out if my ISP has blocked requests...

How to check if internet connection is present in java?

How do you check if you can connect to the internet via java? One way would be: final URL url = new URL("http://www.google.com"); final URLConnection conn = url.openConnection(); ... if we got here, we should have net ... But is there something more appropriate to perform that task, especially if you need to do consecutive checks very...

How to create a bash script to check the SSH connection?

I am in the process of creating a bash script that would log into the remote machines and create private and public keys. My problem is that the remote machines are not very reliable, and they are not always up. I need a bash script that would check if the SSH connection is up. Before actually creating the keys for future use. ...

How to set ODBC connection string for adaptive server anywhere network server in C#

I have a adaptive server anywhere network server(version 7.0),it's name is "TestServer". Now, Client want to connect this server using OdbcConnetion in DOTNET,How to set the connection string ? ...

Is it possible to kill or force closure of a JDBC connection from apache derby/javadb?

I'm basically using a direct connection, no pooling. thanks. ...

Closing a TCPlistener/client connection

Is it necessary to close the connection of a tcplistener or tcpclient after every message received, or is it possible to close it at a later time while it continues to receive data? Is there any major security issue with leaving it open and listening? I know trojans tend to open a listener and leave it open, will my program be detected a...

Help troubleshooting SqlException: Timeout expired on connection, in a non-load situation

I have a server hosting a website of mine that has almost zero-traffic. A few people (< 20) enter the site every day, and a few RSS readers are subscribed to some feeds we put out. Almost every night, an RSS reader will hit us in the middle of the night and get an exception that the website can't connect to the SQL Server because of a T...

when i execute get LDAPConnection thorugh Swing it hangs!!!

When I run following code through Main method, it works fine but when i try to execute it on click of swing button, it hangs. Please help import java.util.Hashtable; import javax.naming.AuthenticationException; import javax.naming.Context; import javax.naming.NamingException; import javax.naming.directory.DirContext; import javax.nami...

Using Memcache for storing connection objects

Is it advisable to store SQL Connection objects in memcache? ...

Trying to connect to MDF Database without using a trusted connection

Hi, Is there anyway to connect to an MDF file without using a trusted logon? I've gone into management studio and created an account called bob with password bob, given that account full access and also added the account to the database. When i try to connect using that account I get the following error Login in failed for user 'bob'....

Can a PHP script detect if a socket has been closed?

How can a PHP script detect if a socket has been closed by the remote party? ...