-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: hibernate.cglib.use_reflection_optimizer in Jboss-service.xm
PostPosted: Mon Jan 19, 2004 11:31 am 
Beginner
Beginner

Joined: Thu Jan 08, 2004 4:40 am
Posts: 48
Location: Bangkok, Thailand
Dear all
I have used ,hibernate.cglib.use_reflection_optimizer=false, in hibernate.properties for my cool Jboss server, however I would like to put it in jboss-service.xml, so is this possible for me?
I have tried to add this tag in jboss-service.xml

<attribute name="CglibUseReflectionOptimizer">false</attribute>

but I have got this complain from my jboss console:

22:30:37,171 INFO [ServiceConfigurator] Problem configuring service jboss.jca:service=hibernate
org.jboss.deployment.DeploymentException: No Attribute found with name: CglibUseReflectionOptimizer
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:176)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
at org.jboss.system.ServiceController.install(ServiceController.java:225)
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)


Thanks

_________________
<name>arin</name>
<at>netplus software</at>


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 19, 2004 11:44 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This is a system level property, so you have to init it either:
- in hibernate.properties
- using -Dhibernate.cglib.use_reflection_optimizer=...

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 20, 2004 3:18 am 
Beginner
Beginner

Joined: Thu Jan 08, 2004 4:40 am
Posts: 48
Location: Bangkok, Thailand
That's cool
One more stupid question, where can I get a properties list and its meaning, I think I may need it in someday.
Thanks again.

_________________
<name>arin</name>
<at>netplus software</at>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 20, 2004 3:45 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Take a look at net.sf.hibernate.cfg.Environment for a complete list of properties. Look at net.sf.hibernate.jmx.HibernateServiceMBean for properties setable in JBoss-service.xml


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 20, 2004 6:01 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
And chapter 3 of the reference guide.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.