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.