[jboss-user] [JBossCache] - Re: Sharing object with READ_COMMITED?
When you say EJB3, are these objects EJB3/JPA entities? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136580#4136580 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136580 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: TreeMap
I'm guessing you're trying to use POJO Cache? If so, please post to http://www.jboss.com/index.html?module=bbop=viewforumf=277 instead. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136589#4136589 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136589 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBoss cache syncronization with Database
How does the data in your DATABASE get into the cache in the first place? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136623#4136623 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136623 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
You need to build a WS wrapper yourself and expose whatever you need to expose. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136626#4136626 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136626 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Exception in thread
We've created a new forum for POJO Cache specific questions - I suggest you post this question there. http://jboss.org/index.html?module=bbop=viewforumf=277 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136632#4136632 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136632 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: FetchInMemoryState InitialStateRetrievalTimeout
Preload specifies which Fqns to preload from a cache loader, regardless of whether you are refereing to a ClusteredCacheLoader or a local persistence engine such as a JDBCCacheLoader. Also, preload allows you to be more fine-grained with what is preloaded, e.g., | preload/catalog, /users, /countryCodes/preload | fetchPersistentState, on the other hand, is a flag that is only used with fetchImMemoryState. If the latter is true and you are retrieving all the state from a neighbouring cache in startup, state in any cache loader marked with fetchPersistentState set to true will be retrieved as well. So, it's not mutually exclusive, and in fact pertains to different functions altogether. Hope this makes sense... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136636#4136636 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136636 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Replication setting per region
Hmm, that is a bit more tricky. Are you suggesting that some entities need to be replicated while others not? If that is the case, perhaps you could use different hibernate configurations, perhaps using shards? Disclaimer: I haven't investigated or thought about this too much, I could be talking rubbish! :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136643#4136643 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136643 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Sharing object with READ_COMMITED?
Hi Manik, I'm still in the design phase, so I don't know exactly what this objects I want to share will end up being. I know their general structure and the information they will hold. From some search around it seems like making them entities would allow some good results, but I'm concerned about the performance issues. Anyway, as I'm still designing, I'm very open to any inputs you might have. Is making them entities preferable over, say, having them serializable and managed by JBoss Cache or similar frameworks? What about using the JNDI to expose them? (but then there are all the synchronization issues that arise...) Regards View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136649#4136649 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136649 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: FetchInMemoryState InitialStateRetrievalTimeout
Thanks, It seems to make sense. I`ll do some test to fully understand it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136653#4136653 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136653 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Sharing object with READ_COMMITED?
There are many tradeoffs that you need to consider, which are specific to your app's requirements. If the objects are EJB3 entities, they will already be cached in the 2nd-level cache. JBoss's EJB3 JPA implementation uses Hibernate, which in turn uses JBoss Cache. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136664#4136664 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136664 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Define CacheLoader for different Regions
If you have written a db4o Cache Loader and think it may be generally useful, do you feel like contributing it to JBoss Cache? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=413#413 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=413 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: newbie question - ReplicationException
Related to what you have been saying - http://www.jboss.com/index.html?module=bbop=viewtopict=131474 But yes, specific to your problem, I have created a JIRA task: JBCACHE-1307 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136668#4136668 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136668 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Need some architectural suggestion about JBoss cache
Are you using something like Hibernate to store entities and run search queries? JBoss Cache, as a 2nd level cache in Hibernate, will ensure that cached objects are up-to-date cluster-wide. But basically, you're looking for Invalidation as a cache mode - so that changes in the cache aren't replicated; instead, stale data is invalidated. Have a look at the JBC user guide on this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136667#4136667 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136667 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Writting cleanup script in JBOSS3.2.6 to delete list of
check out the sheduler service in our documentation. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136672#4136672 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136672 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: TreeMap
Sorry, I haven't seen the pojo cache forum. But strangely, there is no post on it ... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136679#4136679 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136679 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: TreeMap
That's because we just created it yesterday. :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136703#4136703 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136703 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Sharing object with READ_COMMITED?
Thanks for the reply manik. What if I wanted to have the shared objects as POJOs? Can I use JBoss Cache or other frameworks to share them and coordinate their access? Regards View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136715#4136715 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136715 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Define CacheLoader for different Regions
Why not? :) Should i send you the three source files? Should i pay attention to something? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136790#4136790 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136790 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Define CacheLoader for different Regions
email me a patch (off trunk?) and I'll have a look. You should also create a unit test, along the lines of the BDBJECacheLoaderTest or JDBCCacheLoaderTest (just extend the base test class which does all the real work). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136844#4136844 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136844 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Replication setting per region
I don't see why you couldn't subclass the replication interceptors to simply ignore certain FQN. Unfortunately, it's not that straightforward to set up your own interceptor chain. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136854#4136854 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136854 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Random 1.6gb object allocation attempt when using tcppin
It's funny that a packet with bela in it would cause somebody's program to crash. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136855#4136855 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136855 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Exception in thread
Hi I am really sorry for not being clear. But now I have probably pinpointed the problem and could reproduce it and explain it with a simpler example. Say I have a Person class with two fields PrimaryAddress and SecondaryAddress. Now say I created a single address object A and assigned both the addresses to that address A. Now if I try to attach the Person in my cache, it gives the exception java.lang.IllegalStateException: PojoReference.incrementRefCount(): source fqn: /__JBossInternal__/pg/_ID_/aaa4z-hq7ub6-fdr124m4-1-fdr1256j-9 is already present. I understand that, this is because the person object is trying to refer to the Address object twice, because of its two fields .So the PojoInstance.incrementRefCount() method is throwing the exception. Now if I assign PrimaryAddress and SecondaryAddress fields of Person to diffrent Address objects, this exception disappears. But in our product There are classes where two of its fields need to point to the same object. We are creating the object graph using hibernate association and are implementing pojo cache in front of hibernate(not .as second level cache for certain reasons) So can you kindly suggest a fix or any workaround for this problem? Thanks a lot for your previous reply. Waiting to hear from you. Bahata View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136192#4136192 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136192 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: FetchInMemoryState InitialStateRetrievalTimeout
[EMAIL PROTECTED] wrote : Ah, I see your problem - don't preload the root node (/) in your CacheLoader. Let all the data load lazily. From what I see in the docs: anonymous wrote : preload allows us to define a list of nodes, or even entire subtrees, that are visited by the cache on startup, in order to preload the data associated with those nodes. The default (/) loads the entire data available in the backend store into the cache, which is probably not a good idea given that the data in the backend store might be large. | and anonymous wrote : fetchPersistentState determines whether or not to fetch the persistent state of a cache when joining a cluster. Only one configured cache loader may set this property to true. | So it seems to me that this 2 parameters should be mutually exclusive. I mean, if I preload / then setting fetchPersistentState makes no sense. And if I set fetchPersistentState, then preload makes no sense. Now I don`t know what should be the correct way to go. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136230#4136230 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136230 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Random 1.6gb object allocation attempt when using tcppin
My immediate thought it is there is some packet being received that has a bad size value, which is why a 1.6GB buffer might have been allocated. Maybe you could patch the code that allocates that array to throw an exception when a certain size limit is reached? I'd also try to run tcpdump and try and capture the offending packet if possible. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136239#4136239 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136239 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
Are there certain methods that I can call that will generate this export XML, or do I need to construct it myself? What would be the best approach to do this? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136249#4136249 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136249 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Relogin after 30 minutes
The solution might be, istead of having a simple return false; for JaasSecurityManager.refresh(), it may be replaced with this: public boolean refresh() { | expirationTime = System.currentTimeMillis() + (1000 * lifetime); | //where lifetime usually = DefaultCacheTimeout value from jboss-service.xml | return true; | } | Hope this helps. It worked in my case. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136354#4136354 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136354 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Random 1.6gb object allocation attempt when using tcppin
I'll tell our infrastructure to try and grab that information next time they get the opportunity which may be a while since it they have no way to grab the dumps unless the problem happens to freeze the server which is usually just crashes. Looking at the stack traces I'm not sure what would be creating the 1.6gb byte array is it possible that java/net/SocketInputStream.socketRead0(Native Method) is the one creating the byte[]. In the thread dump it appears jgroups is only attempting to read an int from the socket. Mike View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136386#4136386 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136386 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Random 1.6gb object allocation attempt when using tcppin
I have some more info. If found the line of code that is allocating the 1.6gb byte[]. BasicConnectionTable.run():577 | 575: len=in.readInt(); | 576: if(len buf.length) | 577: buf=new byte[len]; | So you were correct it would appear that it is recieving a bad packet of some sort which is identifying it's length incorrectly. Can you provide any insights as to what if any jgroups code might be attempting to send to the socket this code is listening on? Or where this bad packet might be coming from? Mike View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136429#4136429 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136429 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Random 1.6gb object allocation attempt when using tcppin
Another update. This bad packet contains the the following 0x62, 0x65, 0x6C, 0x61, 0x00, 0x00, 0x00, 0x00 Which converted to ascii is bela so I think this is pretty obvious that it is a jgroup/jbossCache originated packet or fragment of a packet Any other ideas? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136448#4136448 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136448 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Random 1.6gb object allocation attempt when using tcppin
Actually I lied the packet's contents are: [98, 101, 108, 97, 17, 2, 4, 10, 108, 34, 34, 0, 0, -30, -112] the first 4 bytes == bela 10.108.34.34 is my server's IP address I don't know what the rest is. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136452#4136452 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136452 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Random 1.6gb object allocation attempt when using tcppin
Suggest you post on [EMAIL PROTECTED] instead. This is a detailed JGroups question, not a JBoss Cache one. Not criticizing you for posting here; you didn't know that. :-) Just telling you where you're more likely to get a useful answer. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136483#4136483 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136483 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: tx completion STATUS_UNKNOWN
Thanks for your thoughts on this. Basically, there is a fundamental flaw in the way JBC deals with Sync callbacks, in that we only commit stuff in the cache in the afterCompletion() callback. There are good reasons why we do this, but in the end it is incorrect and we are working on a better mechanism, one of which is to implement XA interfaces. See http://jira.jboss.org/jira/browse/JBCACHE-70. Sadly, it is not currently high on the prio list since the workaround currently in place works for most JTA compliant TMs out there. Feel free to vote on the JIRA though to bump up it's prio. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135911#4135911 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135911 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Concurrency issue in OrderedSynchronizationHandler (2.0.
Thank you for spotting and reporting this - helps us build a better product. :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135918#4135918 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135918 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Can we configure JBoss Cache to run on separate JVM.
Have you considered using an eviction policy? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135920#4135920 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135920 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: ClassCastException: java.util.TreeSet: while trying to a
What is a hash set or tree set here? Something in DataModel? If this is as critical for your project as you say, you may want to consider buying official support from Red Hat. While the community does try its best to help on these forums, this is a best effort approach only. If you want a guaranteed response time and the like, buying official support is the way to go. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135933#4135933 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135933 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Persistent on-disk caching
Read the user guide - the chapter on Cache Loading will help View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135934#4135934 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135934 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Config Question
lovelyliatroim wrote : | | But just looking back at the posted cache-config, i already had the cache configured as LOCAL. Strange that it should effect it considering the cache is LOCAL. | | Strange but definitely a bug. And something we're looking into. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135935#4135935 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135935 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: locking CacheSPI
Use a Transaction Manager (see the user guide for how to configure one) and start a user transaction before your cache operations (reads, writes). And then commit your transaction. The cache will participate in the transaction and treat all operations as scoped to the same ongoing transaction. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135943#4135943 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135943 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
zurchman wrote : | Gigaspaces is based on JINI and might offer more flexibility if you have tens or hundreds of distributed nodes. | JBoss Cache can scale to tens of nodes, I know of users using it on cluster sizes 100 nodes too. The goal - with 3.x - is to scale to several hundred nodes. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135945#4135945 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135945 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
MThoresen wrote : In either case though, how would I accomplish the following: | | Our client application will be written in C# (visual studio), and utilize the devexpress grid. Using GigaSpaces, I believe that they have APIs for C# .NET. Using JBOSSCache, what would be the best approach to populate the Data Grid? Sadly, we don't have any language bindings for anything other than Java. People have tried a few different approaches though, including wrapping JBC as a CORBA service or using GCJ for native compilation (for access from C/C++) or using IKVM for compiling JBoss Cache to .NET. Certainly not something we support here, but if you do give it a try, I'd love to hear how you get on! :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135946#4135946 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135946 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Exception in thread
You need to be a bit more descriptive about the error you see - I can't make out much from what little you have told me. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135940#4135940 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135940 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
So, I have a Cache (JBOSS) that is filled with nRows. Now, the problem is to get this data into some format that can populate a .NET Grid on a windows front end app. Is it possible to have a WS that can make a call and return the data in XML format? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135992#4135992 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135992 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: FetchInMemoryState InitialStateRetrievalTimeout
What are you trying to achieve here? If you want state to be transferred from neighbouring caches in the cluster, you have 2 options - 1) enable FetchInMemoryState with a suitable InitialStateRetrievalTimeout, or 2) use the ClusteredCacheLoader which will load these elements lazily. Since they are fetched lazily there is no guarantee that all cache instances will have all the state at the same time. Also, the fact that you have an eviction policy with no persistent cache loader means that you could be losing cached state. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136062#4136062 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136062 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: FetchInMemoryState InitialStateRetrievalTimeout
We need to assure that the data that is not evicted is accesible from both nodes of the cluster. We have a big ammount of data in cache, so start up time is very high, if we do an initial state trasfer. We were trying to test if disabling initialStateTransfer and allowing the cache to get state as time passes by, getting it from the other node was a performance point to take into account, wheter it was for better or for worse. We supposed that startup time should have been much better, but instead of this, it gets stuck, while loading, and loads lots of info from the other cache, but not all. We don`t know if this is the correct configuration to use for what we are trying to achieve. Right til`now, it was fine, but we faced an unexpected startup problem in production when we had lot of data, that we had to evict in order to start it up again, until we changed our app to take initial State transfer right. It was safer than changing this we didn't fully understand right at the momment. Thanks, Manik View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136066#4136066 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136066 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
If you have a wrapper that exposes JBC as a WS, then sure. :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136113#4136113 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136113 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Replication setting per region
No - but you could use separate caches View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136114#4136114 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136114 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: FetchInMemoryState InitialStateRetrievalTimeout
Ah, I see your problem - don't preload the root node (/) in your CacheLoader. Let all the data load lazily. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136115#4136115 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136115 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Replication setting per region
[EMAIL PROTECTED] wrote : No - but you could use separate caches Thanks for the answer Manik. I need to do this in a hibernate app in which JBoss cache serves as an L2 cache and due to fine grained performance optimizations I need to mute some regions. Well, if you give me some hints (class name, ...) on how replication works I could implement one and send it to you too if it is useful. Thanks again, Farzad- View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136121#4136121 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136121 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
Hi I tried Gigaspace , ehcache, jboss pojo cache and some other caching solutions to find out which one was more suitable to my appliction. Atlast I sticked to JBoss pojo cache because: 1) Hibernate was used in our project as ORM , and we loaded all the data from DB using hibernate association so that the internal object references were maintained . But GIGASPACE DOES NOT SUPPORT HIBERNATE ASSOCIATION to maintain the object graph unless you use it as hibernate second level cache. 2) Also it does not support : object graph maintenance through object reference (if I am not wrong). UID is used to recreate the object references if needed, through transient objects If you do not have hibernate in your application ,or do not have complex objects, (none of your non-primitive object refers to another non-primitive object , which is quite unlikely), you can go for gigaspace. The good things with Gigaspace is that it supports partitioning, master-local topology ,and various other features. JBoss pojo cache is good in the sense that it supports maintaining the complex object graph with less effort. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135551#4135551 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135551 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Config Question
I wouldnt say its my exact scenario but more a consequence of me playing around with JbossCache. When i was playing around i wanted to use the cache with the ClusteredCacheLoader but in order to use the ClusteredCacheLoader i needed to have it configured to replicate, you cant use the clusteredcacheloader in LOCAL mode which is what I wanted to do. Which resulted in this jira http://jira.jboss.com/jira/browse/JBCACHE-1273. However as a work around, to stop replication happening and use the clusteredcacheloader, the guys gave me a work around. See this thread which kicked it all off http://www.jboss.com/index.html?module=bbop=viewtopict=124722 So back to this, when i was running/playing with this set up, I still had the Option overrides in my code (Unintentionally at the time but i will need it there). So for every entry i put into the cache i have this line of code just before i insert | treeCache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true); | treeCache.put(nodePath,map); | | But just looking back at the posted cache-config, i already had the cache configured as LOCAL. Strange that it should effect it considering the cache is LOCAL. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135673#4135673 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135673 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
In either case though, how would I accomplish the following: Our client application will be written in C# (visual studio), and utilize the devexpress grid. Using GigaSpaces, I believe that they have APIs for C# .NET. Using JBOSSCache, what would be the best approach to populate the Data Grid? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135760#4135760 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135760 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: locking CacheSPI
Right, that's what I would like to do. But how do I do that from application code without having my app code operate in an Interceptor? Am I missing something easy? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135763#4135763 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135763 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
JBossCache is a distributed cache and can handle your requirements. If the cache is updated, the peer caches are notified. It seems that your triggers could be used to update the cache. Gigaspaces is based on JINI and might offer more flexibility if you have tens or hundreds of distributed nodes. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135767#4135767 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135767 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Concurrency issue in OrderedSynchronizationHandler (2.0.
Brilliant. Thanks for the attention. I'll see if I'll have time later this week to give head a swirl. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135344#4135344 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135344 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: locking CacheSPI
anonymous wrote : When our application decides to write to the cache, it needs to check what's already at the node that's there, and then depending on what it finds, it may choose to put the new object in the cache in the same node, or it may decide not to. It's important that a different thread doesn't change the object at that key in that node in between the read and the write. Locking behavior is what we want - the other thread should wait until the first thread is done before writing. | you should open a transaction (REPETABLE_READ) which would only commit after the write. This will assure that the read data won't be modified by other thread until commit/rollback takes place. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135422#4135422 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135422 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Define CacheLoader for different Regions
This shouldn't be too hard to implement, though. You can extend cache loader with a custom one, which would filter request and delegate to JDBCCacheLoader when needed. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135424#4135424 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135424 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Define CacheLoader for different Regions
Yeah ... i thought so, but it would be dirty (my oppinion). Whatever i use a custom CacheLoader, that writes the Cache down into a Db4o Database, written by myself. Now i use two cache instances, one with the CacheLoader. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135472#4135472 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135472 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Config Question
Issue appears when using OptionOverrides with cache mode set to LOCAL. Is this your scenario? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135496#4135496 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135496 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
Look at how Hibernate uses JBoss Cache. Sounds like the same scenario. Who owns the data in your database? I.e., is it only edited/updated by your application that caches the data, or can it be edited/updated by an external process? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135080#4135080 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135080 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
All data is in my own schema. However, it is populated and maintained by another external process (besides our current client application as well). We have a service that currently monitors, what we call an audit table. When rows are added to this audit table, certain triggers are fired depending on weather it is an edit, or insert type of audit. Inserts will create new entries into our schema, and edits will update the existing data in our schema. Our client app updates and maintains our schema directly, but for only edit purposes. So, when these inserts are done, we would also like to create that new record in the cache, and have our clients apps updated as well. Currently, this is done by client JMS subscriptions. Same as the edits. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135083#4135083 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135083 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Is v1.4.1 completely compatible with v1.4.0
Have you read http://wiki.jboss.org/wiki/Wiki.jsp?page=FDVersusFD_SOCK ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134816#4134816 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134816 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Concurrency issue in OrderedSynchronizationHandler (2.0.
I just experienced what might be the same problem. I started up 6 nodes and one node was using up all CPU without any real load on it. Dumping all stacks shows that all threads are parked except one which is stuck on map.get in OrderedSynchronizationHandler. ReceivingGameEventDaemon-1 prio=1 tid=0x092d5eb0 nid=0x5660 runnable [0x85421000..0x85421f30] | at java.util.HashMap.get(HashMap.java:346) | at org.jboss.cache.interceptors.OrderedSynchronizationHandler.getInstance(OrderedSynchronizationHandler.java:50) | at org.jboss.cache.interceptors.TxInterceptor.registerHandler(TxInterceptor.java:901) | at org.jboss.cache.interceptors.TxInterceptor.registerTransaction(TxInterceptor.java:877) | at org.jboss.cache.interceptors.TxInterceptor.attachGlobalTransaction(TxInterceptor.java:342) | at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:292) | at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:131) | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76) | at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:81) | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76) | at org.jboss.cache.interceptors.InvocationContextInterceptor.invoke(InvocationContextInterceptor.java:62) | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76) | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134856#4134856 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134856 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Concurrency issue in OrderedSynchronizationHandler (2.0.
As with all problems of this nature, this is pretty hard to reproduce and I haven't been successful at it, but I can see how it is a problem, both in being not thread safe as well as a static context variable potentially shared across cache instances in the same VM. In general, the whole use of statics here is pretty ugly - I have changed this in HEAD so if you guys have the time, I'd appreciate your giving it a try in HEAD. The change is simple and should be very low risk - OSH has no static variables anymore; instead it is instantiated when a TransactionEntry is created and the ref is stored in and obtained from the TransactionEntry, rather than the factory method on OSH. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134898#4134898 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134898 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Concurrency issue in OrderedSynchronizationHandler (2.0.
http://jira.jboss.org/jira/browse/JBCACHE-1304 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134903#4134903 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134903 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
Why don't you play with the demo and check out the code? http://jbosscache.blogspot.com/2008/01/gui-demo-for-jboss-cache.html I've never used Gigaspaces but looking at the documentation it seems to have a different feel than importing a .jar file and working with configuration keys. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135020#4135020 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135020 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: optionoverrides and DataVersion
Hmmm. Maybe I am wrong. Let me rephrase it: Does getInvocationContext() return a different object per thread? Is that what makes it so that two different threads doing this at the same time don't step on each others' toes? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134693#4134693 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134693 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: optionoverrides and DataVersion
(slaps self on head). I looked at the code, and see that InvocationContext is ThreadLocal. So anybody, can I just have confirmation that using OptionOverrides to set data version for optimistic locking is thread-safe? :-P View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134695#4134695 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134695 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: optionoverrides and DataVersion
Yes, it's thread safe. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134716#4134716 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134716 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: ClassCastException: java.util.TreeSet: while trying to a
Hi Just to add, If I change the tree sets to hash set , the problem disappears View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134737#4134737 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134737 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Is v1.4.1 completely compatible with v1.4.0
I read some articles about FD ,but I can't find a configration that ompletely avoid this problem. I tried to cope with this question by modify the emberlist or reconnecting the channel. But soon find them doesn't work . Finally I recreate the channel and solved the problem to solve this problem. If somebody have good ideas about FD configration , just reply to this post , I'll be very appreciate . Our next version of product may take this solution. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133898#4133898 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133898 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Define CacheLoader for different Regions
No, you're only allowed one cache loader per cache instance. You can of course create multiple cache instances in your application. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134016#4134016 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134016 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: java.io.NotSerializableException POJOCache
This likely means the objects you are attaching have not been instrumented by AOP. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134037#4134037 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134037 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: java.io.NotSerializableException POJOCache
Hi, Thanks for the response. I had the same hunch too. I searched info about it and realized that I had to put pojocache-aop.xml in the classpath, which I did (put pojocache-aop.xml into WEB-INF/classes as its a web application). But still keep getting the exact same error. Is there anything else that need to be done to instrument the class at run/load time. Can you please give me some pointers. Thanks, Rakesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134055#4134055 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134055 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Define CacheLoader for different Regions
Thanks :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134131#4134131 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134131 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Is v1.4.1 completely compatible with v1.4.0
anonymous wrote : Can I delete a member from one cache's member view (delete the other member who has essentially died)? If it is, How can i do it? That's not the way to go. It is JGroups's failure detection protocol(FD) that should manage member removal/addition. I suggest you read /tune the Failure Detection section in the JGroups manual View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133653#4133653 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133653 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBossCache, POJO Cache, Hibernate, field replication - h
That's 3 questions. :-) Answered in order: 1) Yes, that's PojoCache's primary benefit. 2) No, it isn't. 3) A bit of both. Hibernate stores an entity in the 2nd level cache as an Object[], one element per field. To deal with such a representation, PojoCache would need to be able to handle detecting changes in elements in an array, which it currently cannot do. Jason is working to resolve that (perhaps in PojoCache 2.2). But even if that were solved the Hibernate folks would have to ensure that the same Object[] instance is consistently used throughout the Hibernate code (i.e. no creating a new Object[] with the same elements). I don't know how difficult that would be, but I imagine it would be very fragile. In most cases you're better off using JBC invalidation for entity caching anyway, which in terms of intra-cluster message traffic is lighter than any replication-based strategy, including PojoCache. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133496#4133496 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133496 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBossCache, POJO Cache, Hibernate, field replication - h
Excellent. Be sure and let us know how things progress. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133514#4133514 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133514 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBossCache, POJO Cache, Hibernate, field replication - h
ok, thx. i'm just writing my master's degree dissertation on different caching mechanisms in Java... and JBC looks like it's going to be a winner :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133513#4133513 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133513 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Object lifecycle
EvictionPolicyConfig the answer itself is, in the examples. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133265#4133265 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133265 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: NullPointerException when call the get(..) method, W
Thanks for attention! I've post my config in another post:http://jboss.org/index.html?module=bbop=viewtopict=130898 Now I have another fatal problem ,and I am working with it. If i have time later, i'll have you to reproduce it. Thank you ! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133402#4133402 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133402 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: NullPointerException when call the get(..) method, W
This looks very much like a bug. I've tried some scenarios to reproduce it, but couldn't. Can you please post your configuration, and also some code to describe the cache access pattern in which the failure occurs (tx is started? am I doing a get on a non existent node?) A unit test to reproduce the issue would be great! Thanks, mircea View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132915#4132915 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132915 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Is v1.4.1 completely compatible with v1.4.0
what is the configuration where this appears? (JBossCache version, cache config file) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132935#4132935 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132935 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Hibernate 2nd level cache provider for JBoss Cache 2.1.0
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2555 You'd have to ask on the Hibernate forums about the schedule for Hibernate 3.3. Q2 2008 seems reasonable, but I really don't know. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132985#4132985 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132985 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JndiBoundTreeCacheProvider
Looking at the current trunk of Hibernate Core, the cast is still there. Suggest you file a bug report with the Hibernate folks at http://opensource.atlassian.com/projects/hibernate View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132986#4132986 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132986 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JndiBoundTreeCacheProvider
Thanks. I really appreciate the reply. I did post a reply for the same. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132989#4132989 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132989 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Is v1.4.1 completely compatible with v1.4.0
I am sorry the flags in the config content is missings when showed in the page. Now I have another idea. Can I delete a member from one cache's member view (delete the other member who has essentially died)? If it is, How can i do it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4133065#4133065 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133065 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Is v1.4.1 completely compatible with v1.4.0
Fllowing is the config file, thanks to mircea.markus. ?xml version=1.0 encoding=UTF-8? !-- = -- !-- -- !-- Sample TreeCache Service Configuration -- !-- -- !-- = -- !-- -- !-- Defines TreeCache configuration -- !-- -- jboss:service=Naming jboss:service=TransactionManager org.jboss.cache.DummyTransactionManagerLookup READ_UNCOMMITTED INVALIDATION_ASYNC TestCluster_WY_2664-- UDP mcast_addr=228.1.3.5 mcast_port=45577 ip_ttl=64 ip_mcast=true mcast_send_buf_size=15 mcast_recv_buf_size=8 ucast_send_buf_size=15 ucast_recv_buf_size=8 loopback=true/ PING timeout=2000 num_initial_members=3 up_thread=false down_thread=false/ MERGE2 min_interval=1 max_interval=2/ FD shun=true up_thread=true down_thread=true/ VERIFY_SUSPECT timeout=1500 up_thread=false down_thread=false/ pbcast.NAKACK gc_lag=50 retransmit_timeout=600,1200,2400,4800 up_thread=false down_thread=false/ pbcast.STABLE desired_avg_gossip=2 up_thread=false down_thread=false/ UNICAST timeout=600,1200,2400 window_size=100 min_threshold=10 down_thread=false/ FRAG frag_size=8192 down_thread=false up_thread=false/ pbcast.GMS join_timeout=5000 join_retry_timeout=2000 shun=true print_local_addr=true/ pbcast.STATE_TRANSFER up_thread=false down_thread=false/ 2 15000 !-- Max number of milliseconds to wait for a lock acquisition -- 1 !--Name of the eviction policy class. -- org.jboss.cache.eviction.LRUPolicy !--Specific eviction policy configurations. This is LRU -- 5 !--Cache wide default -- 1 0 !--if passivation is true, only the first cache loader is used; the rest are ignored -- false !--comma delimited FQNs to preload -- / !--are the cache loaders shared in a cluster? -- false !--we can now have multiple cache loaders, which get chained -- !--the 'cacheloader' element may be repeated -- com.primeton.eos.wf.service.instpool.treecache.optimize.EOSCacheLoaderOptimize !--same as the old CacheLoaderConfig attribute -- !-- cache.jdbc.driver=com.mysql.jdbc.Driver cache.jdbc.url=jdbc:mysql://localhost:3306/jbossdb cache.jdbc.user=root cache.jdbc.password= -- !--whether the cache loader writes are asynchronous -- false !--only one cache loader in the chain may set fetchPersistentState to true. An exception is thrown if more than one cache loader sets this to true. -- true !--determines whether this cache loader ignores writes -defaults to false. -- false !--if set to true, purges the contents of this cache loader when the cache starts up. Defaults to false. --
[jboss-user] [JBossCache] - Re: Relogin after 30 minutes
mircea.markus wrote : This is not related to JBossCache okay, I see, it's not related to JBoss Cache, but it's related on authenticated users cache. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132406#4132406 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132406 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: TCP clustering problem
Thanks for the info. That configuration seems to be working. Can you give me the reader's digest version of the significance of where the configuration options fall in the stack? Thank you, Tyke View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132579#4132579 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132579 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: TCP clustering problem
Read the documentation and wiki (latter has a good discussion of the protocols) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132580#4132580 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132580 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JndiBoundTreeCacheProvider
To be specific, the exported interface used is a TreeCacheMBean, but the author has type caste it to TreeCache. When it comes to the getCache, the library throws a exception that, the TreeCache which was proxied cannot be type casted to org.jboss.cache.TreeCache. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132594#4132594 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132594 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: NullPointerException when call the get(..) method, W
Forget to tell you , the version is 1.4.0. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132066#4132066 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132066 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Is it correct to have thousands of Nodes with only 1 ele
Node is the basic unit of treecache, so if you catch many data in a simple node, you are not using the facility of treecache . so ,thousands of nodes is needed. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132074#4132074 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132074 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: What isolation mode do you use and why?
I agree to FredrikJ. I can use read uncommitted because I have other db lock mechanism for concurrent running. I need use db lock because the application is in distribute systems. Read uncommitted led to no block when read. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132086#4132086 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132086 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: NullPointerException when call the get(..) method, W
The exception only occured in concurrent invocations. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132089#4132089 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132089 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: LRU Eviction Policy is clearing the entire cache after M
If you want to use the evict policy with jboss cache, you must let your data separated by nodes. node is the management unit . View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132117#4132117 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132117 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: java.util.ConcurrentModificationException in JBS 2.1 CR.
Thanks for spotting this. It is an issue introduced in CR3, which is now fixed View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132151#4132151 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132151 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: java.util.ConcurrentModificationException in JBS 2.1 CR.
it was introduced in CR4, sorry. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132152#4132152 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132152 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: How do I configure JBossCache in JBoss-4.0.2?
I am using Jboss cache 2.0.0 GA. I've used the configuration file- local-eviction-cacheloader-service.xml, available under JBossCache-all-2.0.0.GA\etc\META-INF and place it in Jboss\server\default\deploy folder. But while starting the server, I am getting incomplete deployment error as shown below. Could any of you please help me out in resolving this? 12:01:43,095 INFO [ServiceConfigurator] Problem configuring service jboss.cache:service=TreeCache org.jboss.deployment.DeploymentException: Exception setting attribute [EMAIL PROTECTED] on mbean jboss.cache:service=TreeCache; - nested throwable: (java.lang.VerifyError: (class: org/jboss/cache/config/Configuration, method: setCacheLoaderConfig signature: (Lorg/jboss/cache/config/CacheLoaderConfig;)V) Incompatible argument to function) at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:698) at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332) Caused by: java.lang.VerifyError: (class: org/jboss/cache/config/Configuration, method: setCacheLoaderConfig signature: (Lorg/jboss/cache/config/CacheLoaderConfig;)V) Incompatible argument to function at org.jboss.cache.jmx.CacheJmxWrapper.getConfiguration(CacheJmxWrapper.java:124) at org.jboss.cache.jmx.CacheJmxWrapper.setTransactionManagerLookupClass(CacheJmxWrapper.java:545) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) --- MBeans waiting for other MBeans --- ObjectName: jboss.cache:service=TreeCache State: FAILED Reason: org.jboss.deployment.DeploymentException: Exception setting attribute [EMAIL PROTECTED] on mbean jboss.cache:service=TreeCache; - nested throwable: (java.lang.VerifyError: (class: org/jboss/cache/config/Configuration, method: setCacheLoaderConfig signature: (Lorg/jboss/cache/config/CacheLoaderConfig;)V) Incompatible argument to function) I Depend On: jboss:service=Naming jboss:service=TransactionManager I've placed the configuration file. Could any one of you please let me know whether I am missing any thing because of which I am getting this error. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132158#4132158 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132158 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBoss Cache 2.0.0 in GA
that is because the config file defines a MBean and JBoss wants to deploy it, but fails as it conflicts with JBossCache 1.4.x which ships with JBoss 4.x. Place the xml config file in the war/ear that needs it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132214#4132214 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132214 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user