[JBoss-dev] [JBossCache] - AOPC Ant target question
Hi, I plan on pre-compiling all classes that will be uses in the TreeCacheAop. The issue is that the files are located in different places in the project. In the aopc ant build target how woul I list multiple directories in the src path=/ element? I have tried using ref-id's to path elements and filesets, but I have had no success. Any suggestions? Thanks, Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3872198#3872198 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872198 --- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30 ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - Re: TreeCacheAop questions
Ok, I made a mistake before, and Serialized objects work fine in the TreeCacheAop. But I have another question now. I am having trouble using the org.jboss.aop.standalone.SystemClassLoader in Tomcat. The error is failed to transform TreeCacheAOP with a linked exception to the org.jboss.standalone.SystemClassLoader. I put the jboss-cache, jboss-aop, trove and javassist jar files in Tomcat common lib. Am I missing something in the configuration ? Thanks, Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871497#3871497 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871497 --- This SF.net email is sponsored by Microsoft Mobile Embedded DevCon 2005 Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows Embedded(r) Windows Mobile(tm) platforms, applications content. Register by 3/29 save $300 http://ads.osdn.com/?ad_id=6883alloc_id=15149op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - Concurrency Question
Hi, I have a question concerning transaction isolation levels. Using the Serilizable level no write or read locks will be granted to TXN2 until TXN1 releases them. Will the same hold for n number of TreeCache instances in cluster of n machines? In other words, Will TXN1 on node a/b/c on server 1 block TXN1 on node a/b/c on server2? My undertanding of transactions is that it will not prevent read/writes on different machines in a cluster. Thanks, Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871198#3871198 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871198 --- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882alloc_id=15148op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - TreeCacheAop questions
Hi, I have questions regarding using TreeCacheAop. | A) If I have an object that once created is used only for read only | purposes, is there any problem with not-aspectizing the object | and still using the method putObject()? | | B) It seems that objects in the TreeCacheAop do not | need to be serializable. Is it ok to use serializable objects | in TreeCacheAop? I noticed some inconsistent behavior until | I stopped implementing Serializable in objects that I was aspectizing. | | | | Thanks, | Bill | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871369#3871369 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871369 --- This SF.net email is sponsored by Microsoft Mobile Embedded DevCon 2005 Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows Embedded(r) Windows Mobile(tm) platforms, applications content. Register by 3/29 save $300 http://ads.osdn.com/?ad_id=6883alloc_id=15149op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - Fetch state on startup in TreeCacheAOP
Hi, I am working with TreeCache and TreeCacheAOP. I have both configured with the FetchStateOnStartUp set to true. To test both I start one instance of TreeCache and TreeCacheAOP. In my TreeCacheLogs I see that when I start a second TreeCache it is updated from whatever is in the first TreeCache. How ever TreeCacheAOP is not getting any data from the first TreeCacheAOP that was running. Are there any configuration settings that are different for TreeCacheAOP? Thanks, Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3870583#3870583 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3870583 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - Re: JBossCache 1.2.1 released
Bela, The jar files in the lib directory are a little different, if I have a working copy of TreeCache 1.2 installed, what jar files should I keep and/or replace? Thanks, Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3870058#3870058 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3870058 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - Synchronizing TreeCache in cluser
Hi, I need to restrict access to the TreeCache in our cluster to ensure that no two updates will occur on the same node at the same time. Is there a mechinism in TreeCacheAOP that handles this? Or would I have to develop my own locking mechanism from JGroups using a class like DistributedLockManager? Thanks, Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3869095#3869095 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3869095 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - Re: JBossCache in Tomcat w/ Transaction Support
Great thanks. Any idea when 1.2.1 will be available? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3868378#3868378 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3868378 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - Interceptors, Cache Loaders
Hi, As a developer, is there ever any reason to work with classes in the TreeCache API like interceptors, cache loaders etc when working on developing a distributed cache? Or is it considered best practice to primarily work with TreeCache class ? Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3867828#3867828 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3867828 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - Re: JBossCache in Tomcat w/ Transaction Support
Bela, I was able to solve my original problem. I stopped using a JDBCCacheLoader. But I get an entirely different error now. I am using TreeCache, Tomcat add JOTM for transactions on two different JVM's. When the following code is exectued | txn.begin(); | tree.put(node,key,value); | txn.commit(); | I get an error on the second Tomcat install (the TreeCache getting the replication) from org.jgroups.blocks.RpcDispatcher sayinganonymous wrote : failed invoking method commit() should not be called on TreeCache directly and the next line of the stack trace is anonymous wrote : at org.jboss.cache.TreeCache.commit() but the call was made on the usertransaction object in the first Tomcat server. Any suggestions? Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3867987#3867987 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3867987 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - Re: JBossCache in Tomcat w/ Transaction Support
Bela, I isolated the problem (I think). I have two webapps running on two tomcat servers on my machine. The error occurs in webapp_2 when when webapp_1 call utx.commit() on a put(fqn,key,data) into the tree. The error is coming from the org.jboss.cache.interceptors.CacheStoreInterceptor class when it tries to convert the call convertMethodCallToModification(); I am using the JDBCCache loader class with a MySql database. The odd thing is I have the exact same setup in Hibernate (as apposed to standalone in servlets) and the performance is fine. I am working on taking the code out of the webapp and putting together an ant script that will run the entire thing for you. Thanks, Bill View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3867614#3867614 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3867614 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - JBossCache in Tomcat w/ Transaction Support
Hi, I am currently evaluating JBossCache for my company. For our purposes we will need to use JBossCache inside of Tomcact. For transaction support I have added the JOTM jar files and used the configuration example from the JOTM docs. In the JBossCache config file I set the JBossTransactionManagerLookup class to org.jboss.cache.GenericTransactionManagerLookup which seems to work fine. I have two instances of tomcat on the same machine for my environment. When I put objects into the tree with the following code try { |ut.begin(); |tree.put(node,currentCount,item); |ut.commit(); | } catch(Exception e){ | log.error(Error adding to cache,e); | try{ | ut.rollback(); | }catch(Exception e2){} | | }finally{ |//sets ThreadLocal treeCache varible to null | TreeCacheUtil.closeTreeCacheSession(); |//sets ThreadLocal transaction varible to null | UserTransactionUtil.transactionDone(); | tree=null; | ut=null; | } from node 1 I get the following error on node 2org.jboss.util.NestedRuntimeException: ; - nested throwable: (java.lang.Exception: method call _put cannot be converted to a modification) | at org.jboss.cache.interceptors.CacheStoreInterceptor$SynchronizationHandler.beforeCompletion(CacheStoreInterceptor.java:236) | at org.objectweb.jotm.SubCoordinator.doBeforeCompletion(SubCoordinator.java:1078) | at org.objectweb.jotm.SubCoordinator.commit_one_phase(SubCoordinator.java:375) | at org.objectweb.jotm.TransactionImpl.commit(TransactionImpl.java:219) | at org.jboss.cache.interceptors.ReplicationInterceptor.replicate(ReplicationInterceptor.java:182) | at org.jboss.cache.TreeCache._replicate(TreeCache.java:2679) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:236) | at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:220) | at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:615) | at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:512) | at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:326) | at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp(MessageDispatcher.java:722) | at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$300(MessageDispatcher.java:554) | at org.jgroups.blocks.MessageDispatcher$1.run(MessageDispatcher.java:691) | at java.lang.Thread.run(Thread.java:534) | Caused by: java.lang.Exception: method call _put cannot be converted to a modification | at org.jboss.cache.interceptors.CacheStoreInterceptor.convertMethodCallToModification(CacheStoreInterceptor.java:192) | at org.jboss.cache.interceptors.CacheStoreInterceptor.prepareCacheLoader(CacheStoreInterceptor.java:144) | at org.jboss.cache.interceptors.CacheStoreInterceptor.access$000(CacheStoreInterceptor.java:22) | at org.jboss.cache.interceptors.CacheStoreInterceptor$SynchronizationHandler.beforeCompletion(CacheStoreInterceptor.java:222) | ... 18 more | 2005-02-22 12:46:37,781 DEBUG http-8080-Processor25 treecache.util.TreeCacheUtil - treecache null, setting to instance | 2005-02-22 12:46:52,796 ERROR http-8080-Processor25 org.jboss.cache.lock.IdentityLock - read lock for /treecache/pojo/Item could not be acquired after 15000 ms. Lock map ownership Read lock owners: [] | Write lock owner: 172.30.3.123:7805:2 | (caller=Thread[http-8080-Processor25,5,main]) | 2005-02-22 12:46:52,796 DEBUG http-8080-Processor25 org.jboss.cache.Node - failure acquiring lock: fqn=/treecache/pojo/Item, requester=Thread[http-8080-Processor25,5,main], lock=write owner=172.30.3.123:7805:2 | 2005-02-22 12:46:52,796 ERROR http-8080-Processor25 treecache.servlets.ViewNodesServlet - Error retreiving nodes from tree | org.jboss.cache.lock.TimeoutException: lock for /treecache/pojo/Item could not be acquired after 15000ms. Lock map ownership Read lock owners: [] | Write lock owner: 172.30.3.123:7805:2 | | at org.jboss.cache.lock.IdentityLock.acquireReadLock(IdentityLock.java:227) | at org.jboss.cache.Node.acquireReadLock(Node.java:418) | at
[JBoss-dev] [JBossCache] - Re: JBossCache in Tomcat w/ Transaction Support
anonymous wrote : Regarding the _put(): can you debug and print out the method that fails ? | The method that is failing is tree.put(node,currentCount,item); when I have transactions configured. JOTM does not specify a Transaction Manager Factory. Does that mean I would have to create one of my own? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3867491#3867491 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3867491 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - Re: JBossCache in Tomcat w/ Transaction Support
Right now it is in a small web app, I will try to extract the code, unless you want me to send my Java and JSP files View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3867502#3867502 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3867502 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development