-->
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: oscache and hibernate
PostPosted: Mon Dec 08, 2003 3:19 pm 
Beginner
Beginner

Joined: Tue Oct 28, 2003 12:09 pm
Posts: 46
I've brought up hibernate using oscache and I'm having a hard time getting it to work within a cluster using the JavaGroups listener.

My cached data is never being invalidated between VMs and I think, from what I describe below, that they aren't registering with each other in the broadcast group.

Here's what I'm seeing (or not seeing):

If I start one VM, it prints a message for it's own broadcast listener being added to the group:
"14:01:56,601 INFO JavaGroupsBroadcastingListener:166 - A new member at address 'MarcusPopetz:3350' has joined the cluster"

When I bring up the second VM, it prints a similar message to the log file with a it's own slightly different port number but nothing about adding the new member shows up in the 1st vm's log file.

I then load a cached object in one VM (and it IS being cached because I've lowered the log level for both hibernate.cache and the opensymphony packages to check), change the object and call hibernate.update, hibernate.flush, hibernate.close

The other VM never sees the change and continues to use it's stale version of the cached object.

Does anyone know what sorta log4j settings I have to have to see messages about broadcasting stale object announcements or have any other ideas to figure out what I'm doing wrong?

If it's important, I'm running both these on the same machine. (I don't know much about broadcast protocols)

Thanks,
Marcus


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 08, 2003 7:28 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
We don't intend that you would use OSCache as a clustered cache. Use SwarmCache or TreeCache for clustering.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 02, 2004 1:55 pm 
Newbie

Joined: Wed Dec 31, 2003 3:34 pm
Posts: 5
Location: Toronto, Canada
gavin wrote:
We don't intend that you would use OSCache as a clustered cache.


Given that OSCache supports clustering, what was the reasoning behind that? I'm curious because based on the research I've done so far OSCache seems to be more flexible and more mature than SwarmCache.


Top
 Profile  
 
 Post subject: OSCache and Clustering
PostPosted: Mon Sep 20, 2004 10:55 pm 
Regular
Regular

Joined: Tue Jun 22, 2004 8:01 pm
Posts: 106
Location: PowderTown, Utah, USA
I'm also interested in this subject. I'm a fan of OSCache and it does support clustering through clustered flushing. Seems like OSCache would handle the flushing outside Hibernate, so is there a reason why it would not work?


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.