I am connecting to Sybase Database from Java application (using JDBC) using Hibernate. When application connects to database, it logs application name as NULL. This was checked out by querying "master..sysprocesses" table. program_name column appears NULL.

Question is: Is there an attribute for "property" element in Hibernate Config xml file, where a application name can be passed. So that any application connects to DB using Hibernate logs app name (prog name).

Please let me know any other way also to this issue.