[JBoss-user] [JBossCache] - TreeCache/Hibernate/JBossAS optimistic locking problem

2006-07-10 Thread floefliep
I get the error below (at CMT commit time) when using the non-clustered combo TreeCache 1.4.0cr2 / Hibernate 3.2.0cr2 / JBoss 4.0.4GA. When I switch to pessimistic locking (replace OptimisticTreeCacheProvider with TreeCacheProvider and NodeLockingScheme OPTIMISTIC by PESSIMISTIC), it all works w

[JBoss-user] [JBossCache] - Re: Transactions in JBossCache 1.4CR2

2006-07-10 Thread irabinovitch
Thanks in advance for any assitance. Regards, Ilan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956698#3956698 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956698 -

[JBoss-user] [JBossCache] - Transactions in JBossCache 1.4CR2

2006-07-10 Thread irabinovitch
Hello, We have been testing our code with 1.4CR2. We have found that if we put an object to the cahce with Transactions enabled the cache will thrown an exception (liste bellow). Glancing at the code it appears getCurrentTransaction is returning NULL when the current thread has no transactio

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-10 Thread MarcReis
Hi Ben, it shows up on both nodes, but I do have RoundRobin in use for the SFSB. It does not show up absoluteley simultaniously, one node starts shortly before the other. I am not sure, but I thought I rather mention it, just in case it is related. (If not just ignore it). I still have a proble

[JBoss-user] [JBossCache] - Re: Expected behavior of FQN?

2006-07-10 Thread jaikiran
Is this behavior of Fqn correct? If yes, shouldnt this be documented through the javadocs? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956491#3956491 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956491

[JBoss-user] [JBossCache] - Re: Eviction not working in JBossCache-1.2.4SP2

2006-07-10 Thread jaikiran
Sorry, posted in the wrong topic View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956490#3956490 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956490 --

[JBoss-user] [JBossCache] - Re: Eviction not working in JBossCache-1.2.4SP2

2006-07-10 Thread jaikiran
Is this behavior of Fqn correct? If yes, shouldnt this be documented through the javadocs? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956488#3956488 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956488

[JBoss-user] [JBossCache] - Re: PojoCache - collection gets corrupted

2006-07-08 Thread [EMAIL PROTECTED]
I will need additional log to see what's the problem. Pulling the cable should have direct effect on the cluster group membership and the message replication timeout (possibly). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956404#3956404 Reply to the post

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-08 Thread [EMAIL PROTECTED]
Now are the errors showed up in both nodes or just the originating node? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956403#3956403 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956403 ---

[JBoss-user] [JBossCache] - Re: Global caching

2006-07-08 Thread jboss2005_01
Anyone? I can't be the onlyone wondering how to set this up... Or am I?? K. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956368#3956368 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956368 Using Tomcat but need to

[JBoss-user] [JBossCache] - Re: Remoting On Existing POJO Channel

2006-07-07 Thread Shorrockin
Even though it appears like I'm talking to myself it appears that my previous method of doing things doesn't quite work, even after fixing the obvious bug so that it reads: | _serviceCache = new PojoCache( _channel ) { | public void start() throws Exception { |

[JBoss-user] [JBossCache] - Re: Expected behavior of FQN?

2006-07-07 Thread jaikiran
Had a look at the test cases and the FqnTest.java does not have a test case for this specific scenario. I added the following test case to the same: /** | * @testDesc Tests the [EMAIL PROTECTED] Fqn#equals(Object)} method. Two Fqn will be created, one | * will use the [E

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-07 Thread MarcReis
Thanks, it worked (after multiple: 1. clean, 2.build 3.goto 1 again; eclipse and ant after some attempts finally did what they should and it worked). Unfourtunately there still is an error that shows up: | ... //Server Start | 13:35:47,062 INFO [STDOUT] I have been created by de.somewhere

[JBoss-user] [JBossCache] - Re: Eviction not working in JBossCache-1.2.4SP2

2006-07-07 Thread jaikiran
Please, ignore this entire topic. Had got confused with the concept of nodes and keys. Eviction is working fine. Sorry for the trouble View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956164#3956164 Reply to the post : http://www.jboss.com/index.html?module=b

[JBoss-user] [JBossCache] - Re: Eviction not working in JBossCache-1.2.4SP2

2006-07-07 Thread jaikiran
Tried a few more things and looks like eviction is working for attributes like timeToLiveSeconds and maxAgeSeconds(if at all they are specified) but NOT WORKING for maxNodes. P.S.: While debugging LRUAlgorithm.java, observed that the following statement : ne = (NodeEntry)recycleQueue_.poll(0);

[JBoss-user] [JBossCache] - Re:

2006-07-07 Thread matabo
Sorry, you were right. The code inside the constructor is executed twice. My mistake. regards matabo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956118#3956118 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956118

[JBoss-user] [JBossCache] - Expected behavior of FQN?

2006-07-07 Thread jaikiran
Hi, Looks like the FQN created by passing a string and FQN created using Fqn.fromString() are NOT *equal*. Here's a sample program: package org.myapp; | | import org.jboss.cache.Fqn; | import org.jboss.cache.PropertyConfigurator; | import org.jboss.cache.TreeCache; | | /** | * @

[JBoss-user] [JBossCache] - Re:

2006-07-07 Thread [EMAIL PROTECTED]
There are 2 JChannel.connect() calls, can you set a breakpoint in JChannel.connect() (get the JGroups src) ? Then you could look at the call stack and see *where* the connect() methods are called. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956111#3956111

[JBoss-user] [JBossCache] - Re: Eviction not working in JBossCache-1.2.4SP2

2006-07-07 Thread jaikiran
I even introduced a time delay in putting the objects as follows, just to try out whether eviction works. But still it does not work. The following is just an extract from the above code, with *only* a Thread.sleep(500) introduced. for(int i=0;i<50;i++) | { | |

[JBoss-user] [JBossCache] - Eviction not working in JBossCache-1.2.4SP2

2006-07-07 Thread jaikiran
Hi, I am trying out a simple standalone app where i, put in 50 elements in the cache at a given fqn. I have enabled EvictionPolicy and set the maxNodes as 5. However none of the nodes are getting evicted. Here's the code and the config file: package org.myapp; | | import org.jboss.cache.

[JBoss-user] [JBossCache] - Re:

2006-07-07 Thread matabo
Maybe you're right, but then I ask you: what you mean with "another cluster"? XML configuration file is the same in the two cases (stand alone program and "inside Weblogic" program), and in my code I've one only "startService()" invocation... Maybe constructor method of the singleton is invoked

[JBoss-user] [JBossCache] - Re:

2006-07-07 Thread [EMAIL PROTECTED]
You apparently run another cluster, for a total of 2 in your WL instance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956100#3956100 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956100 Using Tomcat but need to do m

[JBoss-user] [JBossCache] - "GMS: address is..." dispalayed twice

2006-07-06 Thread matabo
I'm running Jbosscache inside WebLogic 7; I have two Weblogic instance and I reoplicate a state between them. When I start, even ONLY ONE Weblogic instance, I see the following lines displayed: --- GMS: address is 1.5.28.121:4875 -

[JBoss-user] [JBossCache] - PojoCache - collection gets corrupted

2006-07-06 Thread ilevin
My application uses PojoCache (with jdk1.5 annotations). I have 2 cachable classes: 1st class has some mamber variables (String, int) and ArrayList. The ArrayList is filled with instances of the 2nd class. I started the application on 2 machines, created my outer POJO, modified some properties

[JBoss-user] [JBossCache] - Re: BoundedLinkedQueue locks everything

2006-07-06 Thread [EMAIL PROTECTED]
This is restriction on the eviction queue that should be lifted in 1.4. Workaround (and the proper solution) is to decrease your ThreadWakeUpInterval from 5 to say 2 or 1 second. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956045#3956045 Reply to the pos

[JBoss-user] [JBossCache] - Re: complex object problem

2006-07-06 Thread [EMAIL PROTECTED]
"bingbingbing" wrote : Caused by: java.io.StreamCorruptedException: invalid stream header | at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737) | at java.io.ObjectInputStream.(ObjectInputStream.java:253) | at org.jboss.invocation.MarshalledValueInputStream

[JBoss-user] [JBossCache] - Re: Remoting On Existing POJO Channel

2006-07-06 Thread Shorrockin
For all who care I finally figured out a way to get this to work (which also may point out a bug inside TreeCache). First thing you have to do is create your JChannel before you create your PojoCache. My earlier attempts (in my first message) extended the PojoCache to expose the JChannel throug

[JBoss-user] [JBossCache] - Re: Configure JBoss cache with Weblogic 8.1

2006-07-06 Thread [EMAIL PROTECTED]
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheAndWebLogic View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955942#3955942 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955942 Using Tomcat but need to do more? Need

[JBoss-user] [JBossCache] - Re: complex object problem

2006-07-06 Thread bingbingbing
And when i use sourceRelative("aop.bsh"); in the BeanShell,it works fine only can not properly work under my junit-testcase in eclipse. best regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955904#3955904 Reply to the post : http://www.jboss.com/ind

[JBoss-user] [JBossCache] - complex object problem

2006-07-06 Thread bingbingbing
i use the jalapeno and want to test the example code(Person and Address).I configured Person and Address in jboss-aop.xml and use the example replSync-service.xml as configuration file. then in my testcase the code is something like: System.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.c

[JBoss-user] [JBossCache] - JBoss Cache Error

2006-07-06 Thread wimalasuriyaib
Hi all, I try to configure JBoss Cache with Weblogic. When i add jboss-jmx.jar to my class path and start weblogic server i get following error message. The WebLogic Server did not start up properly. java.lang.NoSuchFieldError: loaders at com.sun.management.jmx.DefaultLoaderRepository.ad

[JBoss-user] [JBossCache] - Configure JBoss cache with Weblogic 8.1

2006-07-06 Thread wimalasuriyaib
Hi all, Im trying to configure JBoss cach with Weblogic 8.1. Can any body send me sample codes to perform this task. Thankx in advance. Indika View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955857#3955857 Reply to the post : http://www.jboss.com/index.htm

[JBoss-user] [JBossCache] - Re: Global caching

2006-07-06 Thread jboss2005_01
Some additional research has shown that the TcpCacheServer stays in the STARTING state after starting the JBoss AS. Am I missing some configuration parameters or specific settings perhaps? Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955804#3955804

[JBoss-user] [JBossCache] - No local transaction...

2006-07-06 Thread bpapez
Since some time - probably after switching to JBossCache 1.3.0 SP2 - we sometimes get this warning: 2006-06-22 08:32:12,333 WARN [org.jboss.cache.interceptors.TxInterceptor] No local transaction for this remotely originating rollback. Possibly rolling back before a prepare call was broadcast?

[JBoss-user] [JBossCache] - Re: Weblogic 91 and POJO Cache

2006-07-06 Thread [EMAIL PROTECTED]
Which was this 'relevant jar', just so I can update the JBossCache/WebLogic wikipage accordingly? Thanks, Manik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955768#3955768 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply

[JBoss-user] [JBossCache] - Re: Global caching

2006-07-06 Thread jboss2005_01
Hi there, Some additional information about the question described above. First you need to add a dependency to get rid of the error message about the datasource. Adding the statement below in my HttpCache MBean definition solved the dependency problem when you deploy both the mysql-ds.xml and

[JBoss-user] [JBossCache] - Re: BoundedLinkedQueue locks everything

2006-07-06 Thread bpapez
Sorry, of course: we use JBossCache 1.3.0SP2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955749#3955749 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955749 Using Tomcat but need to do more? Need to support web se

[JBoss-user] [JBossCache] - BoundedLinkedQueue locks everything

2006-07-06 Thread bpapez
We are using JBossCache 1.0.3 SP2. Today we had a situation, where a thread locked everything up. According to the thread dump this was the guilty thread: "TP-Processor17" daemon prio=1 tid=0x0885cb98 nid=0x7321 in Object.wait() [7b103000..7b105228] at java.lang.Object.wait(Native Metho

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-06 Thread [EMAIL PROTECTED]
All it needs actually is to re-compile the 4.0.4 source using the either JBossCache 1.3 or 1.4.CR2 release. So if you can check out the latest 4.0 cvs and build it (it has 1.4.CR1 already), you will be all set. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=39

[JBoss-user] [JBossCache] - Re: Pojo Cache and annotations

2006-07-06 Thread [EMAIL PROTECTED]
It is in 1.4.CR2 under sourceforge for the JBoss Cache download. http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=102339&release_id=428151 Look into the examples directory. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955742#3955742 R

[JBoss-user] [JBossCache] - Global caching

2006-07-05 Thread jboss2005_01
Hello everybody, I've searching around for the last two weeks trying to find a solution for the following set-up. What I would like to achieve is a set-up where 4 JBoss instances work together in a clustered environment. Two nodes are actually serving client requests while two other nodes are

[JBoss-user] [JBossCache] - Re: Weblogic 91 and POJO Cache

2006-07-05 Thread sphinxmember
Hi , Got it working with both Pojo and Tree Cache. I didnt notice that it was throwing this exception on the admin server org.jboss.cache.statetransfer.StateTransferGenerator_1241] - failed initialing state transfer byte[] java.lang.NoClassDefFoundError: org/jboss/invocation/MarshalledValueOutput

[JBoss-user] [JBossCache] - Re: Pojo Cache and annotations

2006-07-05 Thread sphinxmember
Thanks for the clarification. Can you tell me the location for these examples for downloading them. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955604#3955604 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955604

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-05 Thread MarcReis
Sorry to bother again, but I do have one more question. Is there any workaround that I can implement into the 4.0.4.GA source, so that when I build a version it will work with 1.4 ? I had a look at the JBossCache sources (TreeCache, EvictionPolicy, RegionManager, Region, Eviction,...) and at the

[JBoss-user] [JBossCache] - Remoting On Existing POJO Channel

2006-07-05 Thread Shorrockin
I'm currently developing a standalone APP that needs a mechanism by which remote methods can be executed on individual servers in the cluster. My initial attempt at this was to use the JGroups RpcDispatcher, but when I used this class starting up other clusters in the node resulted in an except

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-05 Thread MarcReis
Thank you Ben ! Sincerly Marc View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955385#3955385 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955385 Using Tomcat but need to do more? Need to support web services, securi

[JBoss-user] [JBossCache] - Re: No ClassLoaders found

2006-07-05 Thread javajedi
anonymous wrote : I presume this is the default version of JBoss Cache that comes with 4.0.3.SP1? Yes. anonymous wrote : Does your code use Hibernate directly or is this EJB3 entity bean related? It's using Hibernate directly. View the original post : http://www.jboss.com/index.html?module=

[JBoss-user] [JBossCache] - Re: Pojo Cache and annotations

2006-07-04 Thread [EMAIL PROTECTED]
Yes, for aopc, you will need this XML. BTW, I have refactored the PojoCache examples to weave out the unnessary dependecies. There is now a separate PojoCacheTasks.xml (for Ant targets) that a user can take to customize to your own project setting mor easily. Feedback is welcome when you have a

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-04 Thread [EMAIL PROTECTED]
Marc, I have found out why. Please go to this ejb3 post for details. http://www.jboss.com/index.html?module=bb&op=viewtopic&t=85914 Thanks, -Ben View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955313#3955313 Reply to the post : http://www.jboss.com/index.h

[JBoss-user] [JBossCache] - Re: can I replace a stateful session bean with JBoss cache?

2006-07-04 Thread [EMAIL PROTECTED]
It depends on your application. JBoss Cache is not a drop-in replacement for stateful session beans in any way. If all your SFSBs do is maintain back-end state for your applets, then they could be replaced with a cache service (clustered or not) but you will still need some remoting to alow yo

[JBoss-user] [JBossCache] - can I replace a stateful session bean with JBoss cache?

2006-07-03 Thread ameelin
a) We have an app with an applet interface. At periodic intervals the applet goes to server and gets updated data and repaints. On the server side now, there is a stateful session bean that holds the object data painted by applet. Whenever there is a change to the data of objects held by stat

[JBoss-user] [JBossCache] - Re: treecache transactions not as expected

2006-07-03 Thread deep_soul_1999
I believe the issue is solved - but its only from my 1st impression (which is enough for me for the moment) There are multiple ways to read the content of the cache and some dont support the isolation levels. If you use cacheInstance.printDetails() you would get all the cache content - commited

[JBoss-user] [JBossCache] - Re: treecache transactions not as expected

2006-07-03 Thread deep_soul_1999
"[EMAIL PROTECTED]" wrote : Would http://jira.jboss.com/jira/browse/JBCACHE-407 apply to your problem? Hi manik, thanks for your quick reply, I dont think it is direcly related to my problem as i am not doing any rollback in my testcase. Also, I dont have a problem with nodes but with keys ( whi

[JBoss-user] [JBossCache] - Re: treecache transactions not as expected

2006-07-03 Thread [EMAIL PROTECTED]
Would http://jira.jboss.com/jira/browse/JBCACHE-407 apply to your problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955021#3955021 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955021 Using Tomcat but need to do

[JBoss-user] [JBossCache] - Re: treecache transactions not as expected

2006-07-03 Thread deep_soul_1999
More information regarding my issue: (+) The unexpected results happens even when configured as SERIALIZABLE. (+) I am using jbosscache 1.3.0 so the following issue should have been fixed: http://jira.jboss.com/jira/browse/JBCACHE-285 View the original post : http://www.jboss.com/index.html?mo

[JBoss-user] [JBossCache] - treecache transactions not as expected

2006-07-03 Thread deep_soul_1999
Hi all, I am trying to use tree-cache transactional feature, and it does not working as my expectation [perhaps i got it all wrong...]. any help would be appreciate. I will try to simplify the issue. I start the cache with the following properties: LOCAL PESSIMISTIC READ_COMMITED (standalone or i

[JBoss-user] [JBossCache] - Re: No ClassLoaders found

2006-07-03 Thread [EMAIL PROTECTED]
I presume this is the default version of JBoss Cache that comes with 4.0.3.SP1? Does your code use Hibernate directly or is this EJB3 entity bean related? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955005#3955005 Reply to the post : http://www.jboss.com/

[JBoss-user] [JBossCache] - Re: Row Level Locking without Transactions

2006-07-03 Thread [EMAIL PROTECTED]
Essentially, calling methods starting with _ are internal and will not trigger aspects such as replication, etc. In future releases (from 2.0.0) these methods will be internalised and not be accessible from the client API. I normally don't recommend the DummyTransactionManager that comes with J

[JBoss-user] [JBossCache] - Re: How to start the Gossip Server ?

2006-07-01 Thread [EMAIL PROTECTED]
Download the src; look into build.xml, there is a gossip-service target there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954832#3954832 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954832 Using Tomcat but need t

[JBoss-user] [JBossCache] - No ClassLoaders found

2006-06-30 Thread javajedi
JBoss 4.0.3 sp1 I just tried to turn on the JBoss TreeCache in Hibernate. When Hibernate tries to place an entry in the cache, I get a ClassNotFoundException. It appears that the TreeCache can't find the classes that are inside of my ear. I am using the jboss.cache:service=EJB3EntityTreeCach

[JBoss-user] [JBossCache] - Re: Weblogic 91 and POJO Cache

2006-06-30 Thread sphinxmember
Ok... I will try it and then discuss the outcome. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954769#3954769 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954769 Using Tomcat but need to do more? Need to support w

[JBoss-user] [JBossCache] - Re: Pojo Cache and annotations

2006-06-30 Thread sphinxmember
Thats what even I was assuming The example under annotated50 has aoppath element under aopc target which specifies the path for jboss-aop.xml. Is it necessary to provide this XML just as a directive to the aopc to check for the new annotation marker @org.jboss.cache.aop.annotation.PojoCacheable

[JBoss-user] [JBossCache] - Re: Translate the documents to Chinese

2006-06-30 Thread [EMAIL PROTECTED]
Also, see http://fisheye.jboss.com/viewrep/~raw,r=1.1/JBoss/JBossCache/docs/i18n.txt for a guide to internationalising the docs. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954708#3954708 Reply to the post : http://www.jboss.com/index.html?module=bb&op=

[JBoss-user] [JBossCache] - Re: Translate the documents to Chinese

2006-06-30 Thread [EMAIL PROTECTED]
+1. And you get lots of kudos on the docs and the jboss cache website as a contributor. :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954707#3954707 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954707 Using To

[JBoss-user] [JBossCache] - Re: Translate the documents to Chinese

2006-06-30 Thread [EMAIL PROTECTED]
No, I don't think so. I have had Xiaogang Cao and his team at hibernate.org.cn translating my PojoCache article. But I don't believe the whole doc is translated. Send me an email (ben dot wang at jboss dot com) if you decide to go ahead. I can do the review for you. :-) -Ben View the original

[JBoss-user] [JBossCache] - Translate the documents to Chinese

2006-06-30 Thread templar.ding
Hi all, I don't know if these documents have been translated to Chinese already or not. If there is no Chinese version, I'm going to translate them. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954612#3954612 Reply to the post : http://www.jboss.com/index.

[JBoss-user] [JBossCache] - Re: How to start the Gossip Server ?

2006-06-29 Thread chhajed
Thanks bela for the quick reply. I did download the JGroups source 2.3, but did not find the gossip-service target that you had metioned. I downloaded it from http://sourceforge.net/project/showfiles.php?group_id=6081 Have I missed anything ? "Deploy the SAR into JBoss.." Are you talking a

[JBoss-user] [JBossCache] - Re: Inhertance problems

2006-06-29 Thread [EMAIL PROTECTED]
In that case, can you send me your test such that I can take a look? ben do wang at jboss dot com. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954576#3954576 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954576 Us

[JBoss-user] [JBossCache] - Re: Weblogic 91 and POJO Cache

2006-06-29 Thread [EMAIL PROTECTED]
In this case, it may be easier to troubleshoot with just TreeCache. For the TransactionManagerLookUpClass, can you change to GenericTransactionManagerLookup? such that it can handle the WL tm properly? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954575#395

[JBoss-user] [JBossCache] - Re: Pojo Cache and annotations

2006-06-29 Thread [EMAIL PROTECTED]
Not for the release 1.3 and 1.4. In 2.0, it has additional interceptos and introduction that requires runtime presence of the aop xml file but that is supposed to be internal (e.g., hiding away from the user). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3

[JBoss-user] [JBossCache] - Pojo Cache and annotations

2006-06-29 Thread sphinxmember
HI, I am using JDK1.5 For Pojo Cache with annotations , Is the jboss-aop.xml required even if I use aopc for compile time generation of aop classes. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954471#3954471 Reply to the post : http://www.jboss.

[JBoss-user] [JBossCache] - Re: Weblogic 91 and POJO Cache

2006-06-29 Thread sphinxmember
Yes the Tree Cache also produced the same error. true 3 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954461#3954461 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954461 Using Tomcat but need to

[JBoss-user] [JBossCache] - Re: Inhertance problems

2006-06-29 Thread gshriki
Yep, Just tried that, and it's working... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954297#3954297 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954297 Using Tomcat but need to do more? Need to support web servic

[JBoss-user] [JBossCache] - Re: Inhertance problems

2006-06-29 Thread [EMAIL PROTECTED]
Hmmn, I do have the test case in the distro that covers this though. Did you try just using Person instance to see if the replication works? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954256#3954256 Reply to the post : http://www.jboss.com/index.html?mod

[JBoss-user] [JBossCache] - Re: Repeatable Reader - are readlocks actually obtained?

2006-06-29 Thread [EMAIL PROTECTED]
Yes, I believe getObject never obtains a lock from the root. Only the inidividual update will trigger the appropriate lock. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954254#3954254 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting

[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-29 Thread [EMAIL PROTECTED]
On the first problem of your requirement, Brian has pretty much cover it. The point is, if you don't care much about the exisiting POJO, then you can do putObject on either node. Just to make sure, to do getObject() before you start doing POJO update, e.g., | pojoA = cacheA.getObject("/test"

[JBoss-user] [JBossCache] - Re: How to start the Gossip Server ?

2006-06-29 Thread [EMAIL PROTECTED]
1. Download the JGroups source 2. Execute the gossip-service target, which will create a gossip-router.sar 3. Deploy the SAR into JBoss, this will create a GossipRouter as an MBean, managed by JBoss View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954252#3954252

[JBoss-user] [JBossCache] - How to start the Gossip Server ?

2006-06-29 Thread chhajed
I'm a newbie. I was wonder if you could let me know how should I start the gossip server from the JBossCache ? Thanks a ton, Amit Chhajed View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954250#3954250 Reply to the post : http://www.jboss.com/index.html?modul

[JBoss-user] [JBossCache] - Inhertance problems

2006-06-28 Thread gshriki
Hi, I've got the following classes: public class Person { | protected String first_name; | protected String last_name; | ... public class User extends Person { | protected String username; | protected String password; | protected Device device; | ... public cla

[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-28 Thread mbenner
Hi. Yeah, if I do: cacheA.putObject("/test", pojoA); pojoA1 = cacheB.getObject("/test"); pojoA1 would be null. With 1.4, however, pojoA1 is showing up, but its empty (the values I assign to it before putting it in cacheA aren't there). Very odd behavior, especially since I see the correct va

[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-28 Thread [EMAIL PROTECTED]
So if you do: cacheA.putObject("/test", pojoA); // pojo attached on cache A pojoA1 = cacheB.getObject("/test"); pojoA1 is null? You've definitely got something weird going on then. That's just basic stuff. Not sure what to say about that :( Hopefully Ben will have some idea. Well, let's j

[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-28 Thread mbenner
Ben and Brian, First off, I'm sorry for the typo in my previous response. When running my assertEquals() tests, I was actually running it on the re-retrieved POJO objects (cachedPojoA, updatedPojoA, and updatedPojoB). Thank you for catching that typo. :) Good to know that doing a putObject()

[JBoss-user] [JBossCache] - Re: PojoCache: why are final/static fields not replicated?

2006-06-28 Thread jeyrich
Oh yes, the documentation makes it clear that those are not replicated; I was just curious about the reasoning behind that (a customer asked and I couldn't come up with entirely satisfactory answers). For the static case, I agree that this shouldn't be the default. But as with final, in simple

[JBoss-user] [JBossCache] - Re: Repeatable Reader - are readlocks actually obtained?

2006-06-28 Thread irabinovitch
Is this the case in all current versions of PojoCache? 1.3.x and 1.4.x ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954055#3954055 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954055 Using Tomcat but need to do

[JBoss-user] [JBossCache] - Re: PojoCache: why are final/static fields not replicated?

2006-06-28 Thread [EMAIL PROTECTED]
It is stated in the documentaiton that currently neither final, transient, or static fields are replicated. To replicate static is really case dependent since it it a global variable. Question is then how do we store it internally if there are multiple POJOs stored in the cache? And this has i

[JBoss-user] [JBossCache] - Re: PojoCache: why are final/static fields not replicated?

2006-06-28 Thread jeyrich
Thanks for the quick answer. Concerning final, I see that it makes no sense replicating final fields that point to immutable objects (e.g. Strings). But when the referenced object is mutable I might want to replicate changes to it, too. Objects are mapped into the cache by reachability, but obj

[JBoss-user] [JBossCache] - Re: PojoCache: why are final/static fields not replicated?

2006-06-28 Thread [EMAIL PROTECTED]
final fields cannot be modified, so why replicate them ? However, static fields *should* probably be replicated, what is the current behavior ? Ben, Brian ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953947#3953947 Reply to the post : http://www.jboss.co

[JBoss-user] [JBossCache] - PojoCache: why are final/static fields not replicated?

2006-06-28 Thread jeyrich
Hi, can anybody give me a rationale for not replicating final and static fields in PojoCache? I can think of some scenarios where there could be problems, but I'm not sure why it is not even offered as an option. I couldn't find an explanation in the documentation, on the wiki, or in the forum

[JBoss-user] [JBossCache] - Re: Weblogic 91 and POJO Cache

2006-06-27 Thread [EMAIL PROTECTED]
Is the TreeCache one also produced the same error as in PojoCache, for the state transfer portion? In additio, what is your initital state transfer timeout setting? E.g., 2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953874#3953874 Reply to the pos

[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-27 Thread [EMAIL PROTECTED]
michael, Sorry that it wasn' clear before but I probably know where is the problem. You are doing: | cacheA.putObject("/test", pojoA); // pojo attached on cache A | | cacheB.putObject("/test", pojoB); // pojo attached on cache B as well | | pojoA.setBlah(xx); // will have problem he

[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-27 Thread [EMAIL PROTECTED]
No worries about long posts if the problem is complex :-) I was just too lazy to read all the details. I'm not sure if this was just a typo in the forum post, but in what you posted the variable you assign when you call getObject() is not the one you are using in your assertions. "cachedPojoA

[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-27 Thread mbenner
Hi Brian, Thanks for your response (and sorry for the verboseness of the previous posts). =) I'm actually getting the object from the cache each time using the getObject() call. // Put object in CacheA and then replace it in CacheB | MerchantDailyAccount pojoA = new MerchantDailyAccount(1)

[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-27 Thread [EMAIL PROTECTED]
I'm late to this thread, so please forgive if I miss something stated earlier in all of the above :-) First, the "Suppressing invocation" message is completely normal. The cache itself (as opposed to the interceptor stack) doesn't actually do anything on a commit() call, so the CallInterceptor

[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-27 Thread mbenner
So, I tried what you suggested, and here's what I see in the logs. In particular, I'm seeing a message on Server B (the server replicated to) that says: Suppressing invocation of method commit(GlobalTransaction:<192.168.1.174:33972>:1) on cache. Could this be the problem, and if so, what co

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-27 Thread MarcReis
The SFSB should be on its way to you ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953759#3953759 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953759 Using Tomcat but need to do more? Need to support web services

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-27 Thread [EMAIL PROTECTED]
Please send me your "Hello World" sfsb then. ben dot wang at jboss dot com. I will give it a try to see what is different. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953644#3953644 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-27 Thread MarcReis
Strange, I just tried it with an 4.0.4CR2 Out-of-the-Box's "all" and the 1.4.0Cr1 and a "HelloWorld" SFSB and up the error came. I for this I did use a 4.0.4CR2 that has been out for a while, files are dated first of April 06... not that I am missing something here. The sources that I use to co

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-27 Thread [EMAIL PROTECTED]
I dont think 1.4CR2 is that different. Can you try it out from AS4.0-ejb3 out of the box though. That should tell you right away. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953627#3953627 Reply to the post : http://www.jboss.com/index.html?module=bb&op=p

[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-27 Thread [EMAIL PROTECTED]
Hmmn... looks like replication is happening and you have field replication as well. How about you do it the regular way: starting A and B, then do a putObject on A then do a getObject from B? Check the log file as well. View the original post : http://www.jboss.com/index.html?module=bb&op=vie

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-26 Thread MarcReis
Yes, I have a modified \deploy\ejb3.deployer\META-INF\jboss-service.xml so that we can use the http-invoker-servlet. This is the changed line: ... | servlet://mc0430-116:8080/servlet-invoker/ServerInvokerServlet | ... | Also we have modified the | "org.jboss.ejb3.stateful.StatefulCluste

  1   2   3   4   5   6   7   8   9   10   >