Issue Details (XML | Word | Printable)

Key: JDBC-118
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Roman Rokytskyy
Reporter: Thomas Steinmaurer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Jaybird JDBC Driver

Remote PID and process name for FB 2.1 monitoring tables

Created: 15/Jul/08 07:55 AM   Updated: 16/Dec/13 05:42 PM
Component/s: None
Affects Version/s: Jaybird 2.1
Fix Version/s: Jaybird 2.1.6

Issue Links:
Duplicate
 
Relate
 


 Description  « Hide
Discussed with Roman in Firebird-java. Thread "Process name in monitoring tables with Jaybird?" from July 15th, 2008.

Jaybird should set the proper DPB so that the remote process ID and the remote process name is shown for Jaybird applications in FB 2.1 monitoring tables (MON$ATTACHMENTS). Regarding the remote process name, we came to the following solution:

* If a particular -D parameter is present, use this one

* If this particular -D parameter is NOT present:

- Use the classname with the entire package information, if it fits into DPB / VARCHAR(253).
- If it doesn't fit into that, make a substring of the class name from right to left.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Roman Rokytskyy added a comment - 18/Jul/08 03:39 PM
The only platform independent solution turns out to be via the -D property, therefore two new properties: org.firebirdsql.jdbc.pid and org.firebirdsql.jdbc.processName. If they are specified, values are passed to Firebird 2.1. Also the behavior with previous versions of FB is undefined, so use them with care.