Skip to content

Send client process ID to server on Java 9+#1595

Merged
lilgreenbird merged 2 commits intomicrosoft:devfrom
David-Engel:pid
Jun 11, 2021
Merged

Send client process ID to server on Java 9+#1595
lilgreenbird merged 2 commits intomicrosoft:devfrom
David-Engel:pid

Conversation

@David-Engel
Copy link
Copy Markdown
Collaborator

@David-Engel David-Engel commented Jun 3, 2021

Since we can easily do it in Java 9 and up, we should. If catching NoClassDefFoundError is objectionable, I'm open to other suggestions.

You can validate the behavior by querying sys.dm_exec_sessions when a connection is active:
select * from sys.dm_exec_sessions

@David-Engel David-Engel changed the title Send process ID to server on Java 9+ Send client process ID to server on Java 9+ Jun 3, 2021
Comment thread src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
@lilgreenbird
Copy link
Copy Markdown
Contributor

/azp run Microsoft.mssql-jdbc.macOS

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

@lilgreenbird
Copy link
Copy Markdown
Contributor

/azp run Microsoft.mssql-jdbc.macOS

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

Comment thread src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
@lilgreenbird lilgreenbird merged commit 574b1e1 into microsoft:dev Jun 11, 2021
@lilgreenbird lilgreenbird added this to the 9.3.2 milestone Jun 12, 2021
@cheenamalhotra
Copy link
Copy Markdown
Member

Just curious.. should this call be wrapped under JDBC 43 support check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants