-->
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.  [ 13 posts ] 
Author Message
 Post subject: new jboss related files found at new 2.1rc1 lib
PostPosted: Sun Nov 30, 2003 9:10 pm 
Beginner
Beginner

Joined: Fri Nov 28, 2003 3:45 am
Posts: 23
Location: malaysia
dear all,

could Hibernate tell the user whether the jboss related files are necessary to copy into jboss lib folder whenever one needs to employ mbeans jmx sar files or perhaps the existence meant to server othe specific objectives?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 30, 2003 11:46 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
The jboss-xxx jars are only for people not using JBoss who want to use TreeCache.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 01, 2003 1:20 am 
Beginner
Beginner

Joined: Fri Nov 28, 2003 3:45 am
Posts: 23
Location: malaysia
Dear Gavin


Thanks a lot, with new 2.1 rc1 , any new additional library need to be copy to the jboss lib in order for it to function or not , it seems that ehcache is required now.


Just one more query , do j2ee.jar is a must if one wish to employ standalone hibernate ?

If so, please state in the reference manual to help those beginners.

Just a suggestion only, I hope is ok with you.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 01, 2003 9:29 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
tsg26 wrote:
Thanks a lot, with new 2.1 rc1 , any new additional library need to be copy to the jboss lib in order for it to function or not , it seems that ehcache is required now.

ehcache is required if you use it as second cache level


tsg26 wrote:
Just one more query , do j2ee.jar is a must if one wish to employ standalone hibernate ?

No

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 09, 2003 7:19 pm 
Beginner
Beginner

Joined: Sun Sep 21, 2003 12:19 am
Posts: 40
The treecache.xml sample bundled with 2.1rc depends on MBean including naming, transaction etc..,and dressed itself as MBean too.

Is there any configuration we can use which doesn't contain MBean requirement for the folks not using app-server?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 09, 2003 7:34 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
you don't need an actual running MBean server to use the same treecache.xml. It should Just Work.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 09, 2003 7:51 pm 
Senior
Senior

Joined: Tue Nov 25, 2003 9:35 am
Posts: 194
Location: San Francisco
I documented the Hibernate 2.1/JBoss configuration in http://www.hibernate.org/66.html. Check it out, and if you learn anymore, please update the wiki page.

Thanks,


Sherman


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 10, 2003 12:40 pm 
Beginner
Beginner

Joined: Sun Sep 21, 2003 12:19 am
Posts: 40
gavin wrote:
you don't need an actual running MBean server to use the same treecache.xml. It should Just Work.

Thanks Gavin, I just gave it a try. After fix some loose ends, I made it up running. The parts missing in RC1 are jboss-common.jar and log4j since TreeCache use JBoss logger and in turn uses log4j. Anotherthing change is in treecache.xml, change the cachemode to literal string instead of number since the treecache jar rc1 bundled does conversion itself.

Now the hard part, I got the following exception:
Code:
TreeCache is a full transactional cache: ...
   at net.sf.hibernate.cache.TreeCache.unlock(TreeCache.java:102)
   at net.sf.hibernate.cache.ReadWriteCache.get(ReadWriteCache.java:92)
   at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2030)
   at net.sf.hibernate.impl.SessionImpl.immediateLoad(SessionImpl.java:1857)
   at net.sf.hibernate.proxy.LazyInitializer.initialize(LazyInitializer.java:49)
   at net.sf.hibernate.proxy.LazyInitializer.initializeWrapExceptions(LazyInitializer.java:56)
   at net.sf.hibernate.proxy.LazyInitializer.getImplementation(LazyInitializer.java:156)
   at net.sf.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:72)
   at net.sf.hibernate.proxy.HibernateProxy$$EnhancerByCGLIB$$7cbe25aa.getFactory(<generated>)
...


I don't use tx for query operation at all, but in this case it seems transaction is mandatory. What should I do instead of creating transaction?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 10, 2003 12:44 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
You could try using org.jboss.cache.transaction.DummyTransactionManager ... see http://www.jboss.org/developers/project ... orial.html, under "CacheAop with Transactions" - don't know how this works out however


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 10, 2003 12:57 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Quote:
The parts missing in RC1 are jboss-common.jar and log4j


jboss-common is not required.

yeah, we probably should start bundling log4j.jar with Hibernate (grumble)

Quote:
change the cachemode to literal string instead of number


Yes, this was a change in TreeCache since I added the example config file. Will fix.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 10, 2003 12:57 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Quote:
Now the hard part, I got the following exception:


<cache usage="transactional"/>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 10, 2003 1:15 pm 
Beginner
Beginner

Joined: Sun Sep 21, 2003 12:19 am
Posts: 40
Code:

jboss-common is not required.

yeah, we probably should start bundling log4j.jar with Hibernate (grumble)



Well, not you are requiring it, JBoss-cache need it since the first import it has is 'import org.jboss.logger...' so it is required.

I like the 'grumble' on log4j :-)

Yeah, transactional does the trick.

Any performance degrade if I use transactional cache compare to read-write cache? Okay, okay, I know I have to benchmark it but doesn't hurt to ask since my application has intensive read vs. mild write activities.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 10, 2003 6:33 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Quote:
Well, not you are requiring it, JBoss-cache need it since the first import it has is 'import org.jboss.logger...' so it is required.


I am getting that from jboss-jmx.jar


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