The following is the background debug information when persistencesessionfactory. openpersistencesession () is called,
Here we can learn two points:
1) What is the table structure of jbpm? Check the HBM file.
2) How does jbpm use hibernate, such as what optimizer is used and what connection pool is used?
15:11:33, 653 debug hibernatesessionfactory: creating the hibernate session Factory
15:11:33, 754 INFO Environment: hibernate 2.1.7
15:11:33, 774 INFO Environment: hibernate. properties not found
15:11:33, 804 INFO Environment: Using cglib reflection Optimizer
15:11:33, 814 INFO Environment: Using JDK 1.4 java. SQL. timestamp handling
15:11:33, 864 info configuration: Mapping Resource: ORG/jbpm/persistence/hibernate/sequenceblock. HBM. xml
15:11:34, 905 info Binder: mapping class: org. jbpm. Persistence. hibernate. sequenceblock-> jbpm_sequenceblock
15:11:35, 476 info configuration: Mapping Resource: ORG/jbpm/model/definition/impl/actionimpl. HBM. xml
15:11:35, 596 info Binder: mapping class: org. jbpm. model. Definition. impl. actionimpl-> jbpm_action
15:11:35, 807 info configuration: Mapping Resource: ORG/jbpm/model/definition/impl/definitionimpl. HBM. xml
15:11:36, 007 info Binder: mapping class: org. jbpm. model. Definition. impl. definitionimpl-> jbpm_definition
15:11:36, 257 info configuration: Mapping Resource: ORG/jbpm/model/definition/impl/nodeimpl. HBM. xml
15:11:36, 397 info Binder: mapping class: org. jbpm. model. Definition. impl. nodeimpl-> jbpm_node
15:11:36, 598 info Binder: Mapping subclass: org. jbpm. model. Definition. impl. stateimpl-> jbpm_node
15:11:36, 628 info Binder: Mapping subclass: org. jbpm. model. Definition. impl. startstateimpl-> jbpm_node
15:11:36, 628 info Binder: Mapping subclass: org. jbpm. model. Definition. impl. endstateimpl-> jbpm_node
15:11:36, 658 info Binder: Mapping subclass: org. jbpm. model. Definition. impl. processstateimpl-> jbpm_node
15:11:36, 678 info Binder: Mapping subclass: org. jbpm. model. Definition. impl. milestoneimpl-> jbpm_node
15:11:36, 708 info Binder: Mapping subclass: org. jbpm. model. Definition. impl. decisionimpl-> jbpm_node
15:11:36, 728 info Binder: Mapping subclass: org. jbpm. model. Definition. impl. forkimpl-> jbpm_node
15:11:36, 748 info Binder: Mapping subclass: org. jbpm. model. Definition. impl. joinimpl-> jbpm_node
15:11:36, 758 info configuration: Mapping Resource: ORG/jbpm/model/definition/impl/transitionimpl. HBM. xml
15:11:36, 938 info Binder: mapping class: org. jbpm. model. Definition. impl. transitionimpl-> jbpm_transition
15:11:36, 958 info configuration: Mapping Resource: ORG/jbpm/model/definition/impl/swimlaneimpl. HBM. xml
15:11:37, 068 info Binder: mapping class: org. jbpm. model. Definition. impl. dataglaneimpl-> jbpm_w.lane
15:11:37, 068 info configuration: Mapping Resource: ORG/jbpm/model/definition/impl/typeimpl. HBM. xml
15:11:37, 158 info Binder: mapping class: org. jbpm. model. Definition. impl. typeimpl-> jbpm_type
15:11:37, 168 info configuration: Mapping Resource: ORG/jbpm/model/definition/impl/variableimpl. HBM. xml
15:11:37, 229 info Binder: mapping class: org. jbpm. model. Definition. impl. variableimpl-> jbpm_variable
15:11:37, 229 info configuration: Mapping Resource: ORG/jbpm/model/definition/impl/delegationimpl. HBM. xml
15:11:37, 279 info Binder: mapping class: org. jbpm. model. Definition. impl. delegationimpl-> jbpm_delegation
15:11:37, 299 info configuration: Mapping Resource: ORG/jbpm/model/definition/impl/fileimpl. HBM. xml
15:11:37, 379 info Binder: mapping class: org. jbpm. model. Definition. impl. fileimpl-> jbpm_file
15:11:37, 409 info configuration: Mapping Resource: ORG/jbpm/model/execution/impl/processinstanceimpl. HBM. xml
15:11:37, 509 info Binder: mapping class: org.jbpm.model.exe cution. impl. processinstanceimpl-> jbpm_processinstance
15:11:37, 589 info configuration: Mapping Resource: ORG/jbpm/model/execution/impl/tokenimpl. HBM. xml
15:11:37, 699 info Binder: mapping class: org.jbpm.model.exe cution. impl. tokenimpl-> jbpm_token
15:11:37, 759 info configuration: Mapping Resource: ORG/jbpm/model/execution/impl/variableinstanceimpl. HBM. xml
15:11:37, 900 info Binder: mapping class: org.jbpm.model.exe cution. impl. variableinstanceimpl-> jbpm_variableinstance
15:11:37, 980 info configuration: Mapping Resource: ORG/jbpm/model/log/impl/invocationlogimpl. HBM. xml
15:11:38, 090 info Binder: mapping class: org. jbpm. model. log. impl. invocationlogimpl-> jbpm_invokelog
15:11:38, 130 info configuration: Mapping Resource: ORG/jbpm/model/log/impl/executionlogimpl. HBM. xml
15:11:38, 290 info Binder: mapping class: org. jbpm. model. log. impl. executionlogimpl-> jbpm_exelog
15:11:38, 320 info Binder: Mapping subclass: org. jbpm. model. log. impl. variablecreationlogimpl-> jbpm_exelog
15:11:38, 320 info Binder: Mapping subclass: org. jbpm. model. log. impl. variableupdatelogimpl-> jbpm_exelog
15:11:38, 340 info Binder: Mapping subclass: org. jbpm. model. log. impl. actionlogimpl-> jbpm_exelog
15:11:38, 350 info Binder: Mapping subclass: org. jbpm. model. log. impl. statelogimpl-> jbpm_exelog
15:11:38, 360 info Binder: Mapping subclass: org. jbpm. model. log. impl. endoftokenlogimpl-> jbpm_exelog
15:11:38, 380 info Binder: Mapping subclass: org. jbpm. model. log. impl. messagelogimpl-> jbpm_exelog
15:11:38, 410 info Binder: Mapping subclass: org. jbpm. model. log. impl. subtokenlogimpl-> jbpm_exelog
15:11:38, 440 info configuration: Mapping Resource: ORG/jbpm/model/Scheduler/impl/jobimpl. HBM. xml
15:11:38, 561 info Binder: mapping class: org. jbpm. model. scheduler. impl. jobimpl-> jbpm_job
15:11:38, 571 info configuration: processing one-to-register Association Mappings
15:11:38, 581 info Binder: Mapping collection: org. jbpm. model. Definition. impl. definitionimpl. Actions-> jbpm_action
15:11:38, 581 info Binder: Mapping collection: org. jbpm. model. Definition. impl. definitionimpl. swimlanes-> jbpm_swimlane
15:11:38, 591 info Binder: Mapping collection: org. jbpm. model. Definition. impl. definitionimpl. types-> jbpm_type
15:11:38, 591 info Binder: Mapping collection: org. jbpm. model. Definition. impl. definitionimpl. nodes-> jbpm_node
15:11:38, 591 info Binder: Mapping collection: org. jbpm. model. Definition. impl. definitionimpl. variables-> jbpm_variable
15:11:38, 601 info Binder: Mapping collection: org. jbpm. model. Definition. impl. nodeimpl. Actions-> jbpm_action
15:11:38, 601 info Binder: Mapping collection: org. jbpm. model. Definition. impl. nodeimpl. leavingtransitions-> jbpm_transition
15:11:38, 601 info Binder: Mapping collection: org. jbpm. model. Definition. impl. transitionimpl. Actions-> jbpm_action
15:11:38, 611 info Binder: Mapping collection: org. jbpm. model. Definition. impl. typeimpl. variables-> jbpm_variable
15:11:38, 611 info Binder: Mapping collection: org.jbpm.model.exe cution. impl. tokenimpl. Children-> jbpm_token
15:11:38, 611 info Binder: Mapping collection: org.jbpm.model.exe cution. impl. tokenimpl. variableinstances-> jbpm_variableinstance
15:11:38, 621 info Binder: Mapping collection: org.jbpm.model.exe cution. impl. tokenimpl. invocationlogs-> jbpm_invokelog
15:11:38, 621 info Binder: Mapping collection: org.jbpm.model.exe cution. impl. variableinstanceimpl. updatelogs-> jbpm_exelog
15:11:38, 621 info Binder: Mapping collection: org.jbpm.model.log.impl.invocationlogimpl.exe cutionlogs-> jbpm_exelog
15:11:38, 621 info configuration: processing one-to-one association property references
15:11:38, 621 info configuration: processing foreign key constraints
15:11:38, 861 info Dialect: using dialect: net. SF. hibernate. dialect. hsqldialect.
15:11:38, 941 info settingsfactory: Use Outer Join fetching: True
15:11:38, 961 info drivermanagerconnectionprovider: Using hibernate built-in Connection Pool (not for production use !)
15:11:38, 971 info drivermanagerconnectionprovider: hibernate connection pool size: 20
15:11:39, 011 info drivermanagerconnectionprovider: Using DRIVER: org. HSQLDB. jdbcdriver at URL: JDBC: HSQLDB :.
15:11:39, 011 info drivermanagerconnectionprovider: Connection Properties: {user = SA, password =}
15:11:39, 071 info transactionmanagerlookupfactory: No transactionmanagerlookup configured (in JTA environment, use of process level read-write cache is not recommended)
15:11:40, 834 info settingsfactory: Use scrollable result sets: True
15:11:40, 844 info settingsfactory: Use jdbc3 getgeneratedkeys (): false
15:11:40, 854 info settingsfactory: optimize cache for minimal puts: false
15:11:40, 864 info settingsfactory: Query Language substitutions :{}
15:11:40, 864 info settingsfactory: cache provider: net. SF. hibernate. cache. ehcacheprovider
15:11:40, 884 info configuration: instantiating and refreshing caches
15:11:41, 685 info sessionfactoryimpl: building session Factory
15:11:42, 566 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. dataglaneimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:42, 646 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. log. impl. endoftokenlogimpl, bulkbeanexception: cannot find specified property (property settoken)
15:11:42, 686 info reflecthelper: Reflection optimizer disabled for: org.jbpm.model.exe cution. impl. processinstanceimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:42, 767 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. stateimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:42, 837 info reflecthelper: Reflection optimizer disabled for: org.jbpm.model.exe cution. impl. variableinstanceimpl, bulkbeanexception: cannot find specified property (property settype)
15:11:42, 917 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. forkimpl, bulkbeanexception: cannot find specified property (property setcorrespondingjoin)
At 15:11:43, 087 info reflecthelper: Reflection optimizer disabled for: org.jbpm.model.exe cution. impl. tokenimpl, bulkbeanexception: cannot find specified property (property setprocessinstance)
15:11:43, 297 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. startstateimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:43, 438 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. log. impl. actionlogimpl, bulkbeanexception: cannot find specified property (property setaction)
15:11:43, 588 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. definitionimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:43, 638 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. delegationimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:43, 758 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. joinimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:43, 808 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. decisionimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:43, 878 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. processstateimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:43, 918 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. log. impl. invocationlogimpl, bulkbeanexception: cannot find specified property (property settoken)
At 15:11:44, 018 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. transitionimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:44, 068 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. nodeimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:44, 129 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. endstateimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:44, 259 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. milestoneimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:44, 289 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. actionimpl, bulkbeanexception: cannot find specified property (property setelement)
15:11:44, 319 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. Definition. impl. typeimpl, bulkbeanexception: cannot find specified property (property setdefinition)
15:11:44, 369 info reflecthelper: Reflection optimizer disabled for: org. jbpm. model. log. impl. statelogimpl, bulkbeanexception: cannot find specified property (property setprevious)
15:11:46, 021 info sessionfactoryobjectfactory: not binding factory to JNDI, no JNDI name configured.
15:11:46, 302 info hibernatesessionfactory: No jbpm _ tables in the database, creating the tables for you...
15:11:46, 322 info Dialect: using dialect: net. SF. hibernate. dialect. hsqldialect.
15:11:46, 332 info configuration: processing one-to-register Association Mappings
15:11:46, 332 info configuration: processing one-to-one association property references
15:11:46, 342 info configuration: processing foreign key constraints
15:11:46, 352 info configuration: processing one-to-register Association Mappings
15:11:46, 352 info configuration: processing one-to-one association property references
15:11:46, 352 info configuration: processing foreign key constraints
15:11:46, 362 info schemaexport: Running hbm2ddl schema Export
15:11:46, 372 info schemaexport: Exporting generated schema to database
15:11:46, 372 info drivermanagerconnectionprovider: Using hibernate built-in Connection Pool (not for production use !)
15:11:46, 372 info drivermanagerconnectionprovider: hibernate connection pool size: 20
15:11:46, 372 info drivermanagerconnectionprovider: Using DRIVER: org. HSQLDB. jdbcdriver at URL: JDBC: HSQLDB :.
15:11:46, 372 info drivermanagerconnectionprovider: Connection Properties: {user = SA, password =}
15:11:46, 582 info schemaexport: schema export complete
15:11:46, 602 info drivermanagerconnectionprovider: Cleaning Up Connection Pool: JDBC: HSQLDB :.
15:11:46, 602 debug hibernatesessionfactory: created the jbpm _ database tables successfully
15:11:46, 612 debug hibernatesessionfactory: created the hibernate session Factory
15:11:46, 612 debug jbpmconfiguration: for key 'jbpm. Persistence. session. Factory ', an object of Type 'org. jbpm. Persistence. hibernate. hibernatesessionfactory' was instantiated
15:11:46, 632 info configuration: Mapping Resource: ORG/jbpm/persistence/hibernate/sequenceblock. HBM. xml
15:11:46, 742 info Binder: mapping class: org. jbpm. Persistence. hibernate. sequenceblock-> jbpm_sequenceblock
15:11:46, 742 info configuration: processing one-to-register Association Mappings
15:11:46, 752 info configuration: processing one-to-one association property references
15:11:46, 752 info configuration: processing foreign key constraints
15:11:46, 752 info Dialect: using dialect: net. SF. hibernate. dialect. hsqldialect.
15:11:46, 762 info settingsfactory: Use Outer Join fetching: True
15:11:46, 762 info drivermanagerconnectionprovider: Using hibernate built-in Connection Pool (not for production use !)
15:11:46, 762 info drivermanagerconnectionprovider: hibernate connection pool size: 20
15:11:46, 762 info drivermanagerconnectionprovider: Using DRIVER: org. HSQLDB. jdbcdriver at URL: JDBC: HSQLDB :.
15:11:46, 772 info drivermanagerconnectionprovider: Connection Properties: {user = SA, password =}
15:11:46, 772 info transactionmanagerlookupfactory: No transactionmanagerlookup configured (in JTA environment, use of process level read-write cache is not recommended)
15:11:46, 782 info settingsfactory: Use scrollable result sets: True
15:11:46, 792 info settingsfactory: Use jdbc3 getgeneratedkeys (): false
15:11:46, 792 info settingsfactory: optimize cache for minimal puts: false
15:11:46, 792 info settingsfactory: Query Language substitutions :{}
15:11:46, 802 info settingsfactory: cache provider: net. SF. hibernate. cache. ehcacheprovider
15:11:46, 802 info configuration: instantiating and refreshing caches
15:11:46, 812 info sessionfactoryimpl: building session Factory
15:11:47, 273 info sessionfactoryobjectfactory: not binding factory to JNDI, no JNDI name configured
15:11:47, 283 debug sequenceblockidgenerator: created the hibernate session factory for the ID Generator
15:11:47, 283 debug jbpmconfiguration: for key 'jbpm. Id. generator', an object of Type 'org. jbpm. Persistence. hibernate. sequenceblockidgenerator' was instantiated
15:11:47, 323 debug jbpmconfiguration: for key 'jbpm. Service. Factory ', an object of Type 'org. jbpm. impl. defaultservicefactory' was instantiated