[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2153?page=c...
]
Steve Ebersole commented on HHH-2153:
-------------------------------------
bytecode provider is one of a few properties in Hibernate that are currently
"global". By global we mean scoped within a classloader (specifically the
classloader for the Hibernate Environment class).
This is very complex to change (it has been discussed quite a few times on the dev list,
so I will not expound on it here), although it is planned to change such that this is
eventually a SessionFactory-scoped property.
JBossAS wants to use javassist simple to avoid bundling another dependency.
Not possible to overwrite System property defaults with
hibernate.properties (e.g. use cglib bytecode provider in jboss)
------------------------------------------------------------------------------------------------------------------------
Key: HHH-2153
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2153
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.2.0.ga
Environment: JBoss 4.0.4GA, hibernate 3.2.0.ga
Reporter: Armin Haaf
It is not possible to set the bytecode provider by hibernate.properties, because jboss
ejb3.deployer sets it in System.properties. System.properties is added to the
GLOBAL_PROPERTIES in Environment.class after hibernate.properties and overwrites the
values in hibernate.properties. A solution would be to change the order of adding the
properties to GLOBAL_PROPERTIES. First add System.properties, then add
hibernate.properties, to be able to overwrite as needed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira