Ghost connections "Java(TM) 2 Platform Standard Edition"

We have a server application with multiple threads each using JDBC connections. On the Database server (MS SQL Server 7) we notice more and more connections with the SQLQueryAnalyzer-ProgramName "Java(TM) 2 Platform Standard Edition". But all our (known) connections have custom names or the default name of the JDBC driver (jTDS). The developer of jTDS answered that the driver only have connections that are requested by the application. But we don't have connections named dbc connections "Java(TM) 2 Platform Standard Edition" ... ?

[544 byte] By [MartinHilperta] at [2007-10-3 1:30:47]
# 1
*push*I still haven't found a solution for this ...
MartinHilperta at 2007-7-14 18:28:39 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
Are you using a connection pool?
dcmintera at 2007-7-14 18:28:39 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
nope
MartinHilperta at 2007-7-14 18:28:39 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 4

Well then what other architectural components are you using? What application server? Frameworks? Any other third party libraries? How about your own stuff - is your code base small enough that you can be positive that the application isn't obtaining connections in places that you're not familiar with?

Basically if the jTDS guys say it isn't originating in their logic I believe 'em. So it's somewhere on the other side of the fence.

dcmintera at 2007-7-14 18:28:39 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 5

We don't use an application server, it's just a plain Java application. No frameworks and only 3rd party libs that don't handle any database connection - and the JDBC driver jTDS. As one of the developers got very angry about my bug report, because he insists that it's not the fault of jTDS, I have to rule out jTDS. That would mean that it's somewhere in my application. But I just have 1 single class that actually creates a JDBC connection, so it's not hard to debug this. And I can't see any additional connections as all of my connections get specific names and not "Java(TM) 2 Platform Standard Edition".

I searched all source code of the Java SDK, jTDS and my source code for occurences of "Java(TM) 2 Platform Standard Edition" and can't find any. I hoped that somebody knows who is using this string (and when). It sounds like general Java (SDK/JRE) is setting this name, but I haven't found it.

MartinHilperta at 2007-7-14 18:28:39 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 6
Have you checked to see if it's pulling it from a system property?
dcmintera at 2007-7-14 18:28:39 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 7
How? I don't read system properties locally because I don't need them. Iwonder if ther's a way to somehow find out who is creating a database connection.
MartinHilperta at 2007-7-14 18:28:39 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 8
Well, presumably the source code for jTDS is available, so you could add some logic to that and to your own connection aquisition logic and see if there's a one-to-one correspondence.
dcmintera at 2007-7-14 18:28:39 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 9
Post code that can reproduce the problem.That's the ONLY way to resolve this.
cotton.ma at 2007-7-14 18:28:39 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...