-->
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.  [ 4 posts ] 
Author Message
 Post subject: JBoss Management Console
PostPosted: Mon Aug 09, 2004 11:00 am 
Newbie

Joined: Wed Jun 16, 2004 9:54 am
Posts: 7
Hi!

I' using JBoss 3.2.4 and Hibernate 2.1.4 and would like to change the Hibernate configuration using the JBoss Management Console. When I, for example, turn on the ShowSQL Option and then click on "Apply Changes" nothing happens. I cannot see the generated SQL (it works fine when I turn it on in the jboss-service.xml). Is it not ment to work that way, or am I doing something wrong? (JBoss is running and the application deployed fine)

Thanks,
Jonas


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 09, 2004 12:05 pm 
Regular
Regular

Joined: Mon Feb 23, 2004 10:42 pm
Posts: 102
Location: Washington DC
My understanding is that when you change a JMX attribute, such as the ShowSQL attribute, the changes will not go into effect until you rebuild your sessionFactory.

_________________
Matt Veitas


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 10, 2004 4:51 am 
Newbie

Joined: Wed Jun 16, 2004 9:54 am
Posts: 7
When I stop the MBean and then restart it, it starts up fine, but when I try to run my application again, I get an exception:

net.sf.hibernate.cache.CacheException: java.lang.IllegalStateException: The fooEntity Cache is not alive.
at net.sf.ehcache.hibernate.Plugin.put(Plugin.java:149)
at net.sf.hibernate.cache.ReadOnlyCache.put(ReadOnlyCache.java:45)
at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2210)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java:240)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133)
at net.sf.hibernate.loader.Loader.doList(Loader.java:955)
at net.sf.hibernate.loader.Loader.list(Loader.java:946)
at net.sf.hibernate.loader.CriteriaLoader.list(CriteriaLoader.java:121)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:3609)
at net.sf.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:238)
....

I have included all the Hibernate .jars in the .sar and the .sar is in my .ear. Or must I explicitly rebuild the SessionFactory in my code to apply the changes?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 10, 2004 9:43 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://opensource.atlassian.com/project ... se/HB-1140

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.