[jboss-user] [JBoss Cache] - Cluster not invalidating from CacheLoader

2011-10-31 Thread LORDs_diakonos
LORDs_diakonos [http://community.jboss.org/people/LORDs_diakonos] created the 
discussion

"Cluster not invalidating from CacheLoader"

To view the discussion, visit: http://community.jboss.org/message/634331#634331

--
I have a cacheloader set up.  I am also using JGroups via TCP and TCPPING to 
setup the cache cluster. 

The memory cache gets removed BUT the remove is NEVER called on my cache 
laoder.  Is this normal. 

here is my config. 
 http://pastebin.com/QFzsGK8K http://pastebin.com/QFzsGK8K
--

Reply to this message by going to Community
[http://community.jboss.org/message/634331#634331]

Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052]

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache] - Memory Cache Getting Evicted

2011-09-22 Thread LORDs_diakonos
LORDs_diakonos [http://community.jboss.org/people/LORDs_diakonos] created the 
discussion

"Memory Cache Getting Evicted"

To view the discussion, visit: http://community.jboss.org/message/628094#628094

--
We are not calling to evict our cache but the entire root node gets evicted.  
Our cacheloader still has all the objects but the memory cache gets wipes.  It 
apprears to be random. The cache does get a lot of load. 

We are using 3.2.5
--

Reply to this message by going to Community
[http://community.jboss.org/message/628094#628094]

Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052]

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Re: Multiple Cache Loaders

2009-07-01 Thread LORDs_diakonos
I guess I had to make the methods public but still how do I configure what I am 
after?  

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241260#4241260

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241260
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Re: Multiple Cache Loaders

2009-07-01 Thread LORDs_diakonos
OK I have tried to extend the FileCacheLoader and use that to test what I am 
after.  The issue is that I have break points on isCharacterPortableTree and 
isCharacterPortableLocation but I am not hitting either method and I don't 
understand why.  I know my class is being loaded as I also put a break point in 
the constructor.  But my get, puts or isCharacterPortableLocation methods are 
never called. 

I was hoping to do this and test my case mentioned above to ignore a specific 
region in this cacheLoader. Basically I don't want one of the regions in disk 
cache but only memory cache. 

My config is as follows 


  |  READ_COMMITTED
  | 
  |  
  |  
  |false 
  | 
  |   com.dotmarketing.business.TestLoader 
  |
  |  location=/Users/jasontesser/dev/dotcms/trunk/cachetest
  |  check.character.portability=true
  |
  |   false 
  |   true 
  |   false 
  | 
  |  
  |  
  | 

And my class


  | public TestLoader() {
  | super();
  | }
  | 
  | @Override
  | public Map get(Fqn fqn) throws Exception {
  | // TODO Auto-generated method stub
  | return super.get(fqn);
  | }
  | 
  | @Override
  | public void put(Fqn arg0, Map arg1, boolean arg2) throws Exception {
  | // TODO Auto-generated method stub
  | super.put(arg0, arg1, arg2);
  | }
  | 
  | @Override
  | public Object put(Fqn arg0, Object arg1, Object arg2) throws Exception {
  | // TODO Auto-generated method stub
  | return super.put(arg0, arg1, arg2);
  | }
  | 
  | @Override
  | public void put(Fqn fqn, Map attributes) throws Exception {
  | // TODO Auto-generated method stub
  | super.put(fqn, attributes);
  | }
  | 
  | @Override
  | public void put(List arg0) throws Exception {
  | // TODO Auto-generated method stub
  | super.put(arg0);
  | }
  | 
  | protected boolean isCharacterPortableLocation(String fileAbsolutePath) {
  | if(fileAbsolutePath.indexOf("VelocityCache")>-1){
  | return false;
  | }
  | return true;
  | //  return super.isCharacterPortableLocation(fileAbsolutePath);
  | }
  | 
  | protected boolean isCharacterPortableTree(Fqn fqn) {
  | List elements = fqn.peekElements();
  | // Don't assume the Fqn is composed of Strings!!
  | for (Object anElement : elements){
  | if(anElement.toString().contains("VelocityCache")){
  | return false;
  | }
  | }
  | return true;
  | //  return super.isCharacterPortableTree(fqn);
  | }
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241248#4241248

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241248
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Multiple Cache Loaders

2009-07-01 Thread LORDs_diakonos
I need multiple cache loaders where certain regions get cached in the second 
loader but and other regions are only in teh first cacheloader.

How do I configure this.  I didn't see it in the manual.   I am using 2.2.0CR6 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241222#4241222

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241222
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - JDBM Performance with Jboss Cache

2008-11-21 Thread LORDs_diakonos
I am wondering if anyone is using JBoss cache with LDBM as a cache loader?

I am running in a cluster but would like to avoid purchasing Sleepycat IF 
POSSIBLE. 

Any thoughts?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191371#4191371

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191371
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Re: Cannot Marshal velocity template object

2008-11-14 Thread LORDs_diakonos
OK I was thinking that.  

One other question.

If I want to sync all regions except the velocity templates which would be 
invalidation is that possible?  I couldn't tell how to do this in the xml 
config. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189395#4189395

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4189395
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Cannot Marshal velocity template object

2008-11-14 Thread LORDs_diakonos
OK SO I have JBoss cache plugged into Velocity.  I am getting the following 
though


  | [13/11/08 04:45:21:021 EST] ERROR app.VelocityEngine: Velocimacro : 
Velocimacro : Error using VM library : dotCMS_library.vm
  | org.jboss.cache.CacheException: java.lang.Exception: Don't know how to 
marshall object of type class org.apache.velocity.Template
  | at 
org.jboss.cache.interceptors.InterceptorChain.invoke(InterceptorChain.java:227)
  | at 
org.jboss.cache.invocation.CacheInvocationDelegate.put(CacheInvocationDelegate.java:480)
  | at 
com.dotmarketing.business.DotJBCacheAdministratorImpl.put(DotJBCacheAdministratorImpl.java:194)
  | at 
com.dotmarketing.velocity.DotResourceCache.put(DotResourceCache.java:113)
  | at 
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:339)
  | at 
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102)
  | at 
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1077)
  | at 
org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro(VelocimacroFactory.java:196)
  | at 
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:251)
  | at 
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:534)
  | at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:144)
  | at com.dotmarketing.util.VelocityUtil.init(VelocityUtil.java:17)
  | at com.dotmarketing.util.VelocityUtil.getEngine(VelocityUtil.java:26)
  | at 
com.dotmarketing.velocity.VelocityServlet.init(VelocityServlet.java:242)
  | at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)
  | at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  | at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
  | at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  | at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.lang.Exception: Don't know how to marshall object of type 
class org.apache.velocity.Template
  | at 
org.jboss.cache.marshall.CacheMarshaller200.marshallObject(CacheMarshaller200.java:408)
  | at 
org.jboss.cache.marshall.CacheMarshaller200.marshallCommand(CacheMarshaller200.java:445)
  | at 
org.jboss.cache.marshall.CacheMarshaller200.marshallObject(CacheMarshaller200.java:277)
  | at 
org.jboss.cache.marshall.CacheMarshaller200.marshallCommand(CacheMarshaller200.java:445)
  | at 
org.jboss.cache.marshall.CacheMarshaller200.marshallObject(CacheMarshaller200.java:277)
  | at 
org.jboss.cache.marshall.CacheMarshaller200.objectToObjectStream(CacheMarshaller200.java:161)
  | at 
org.jboss.cache.marshall.CacheMarshaller200.objectToObjectStream(CacheMarshaller200.java:106)
  | at 
org.jboss.cache.marshall.VersionAwareMarshaller.objectToByteBuffer(VersionAwareMarshaller.java:162)
  | at 
org.jboss.cache.marshall.CommandAwareRpcDispatcher.invokeRemoteCommands(CommandAwareRpcDispatcher.java:87)
  | at 
org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:403)
  | at 
org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:375)
  | at 
org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:380)
  | at 
org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:143)
  | at 
org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:117)
  | at 
org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:89)
  | 

My question is this; what is the best way for me to handle this?

Do I need a custom marshaler?  if so how does that work in this case?

Is it that the velocity template isn't serializable?  If that is the problem 
any recommendations?  I'd rather not mess with velocity source code if it can 
be avoided. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189389#4189389

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=

[jboss-user] [JBoss Cache: Core Edition] - URGENT - Clustering without multicast

2008-08-18 Thread LORDs_diakonos
I am wondering if it is possible to cluster Jboss Cache without using multicast 
traffic.  I am running on Amazon EC2 and they don't support multicast.  

I kind of need to solve this.  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171043#4171043

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171043
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Re: Eviction Policy Config not working

2008-08-04 Thread LORDs_diakonos
Well it was firing.  I think the issue though I am testing now is that I 
thought the objects within the FQN were nodes.  They don't seem to be though.  
So I had a FQN which I put a bunch of objects inside.  It is all one node 
though.  I was confused here.  

My question would now be what is the best way to handle this?  Do I need a 
separate node for every object?  That seems kind of dumb as all my nodes and 
keys would be the same. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168543#4168543

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168543
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Re: Eviction Policy Config not working

2008-07-28 Thread LORDs_diakonos
For what it is worth now I changed the _default_ region to maxNodes = 1 and it 
still caches more. 

I do have the 1

so it should be firing i think

Anybody know what is happening?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167157#4167157

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167157
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Eviction Policy Config not working

2008-07-28 Thread LORDs_diakonos
Using the following xml config I have objects in the FQN "ContentletCache" 
greater then 2.  I am trying to get it to respect the maxNodes. 

  | 
  |  
  | 3
  | 
  | 50
  | 
  |  org.jboss.cache.eviction.LRUPolicy
  | 
  |   
  |  1
  |  864000
  |   
  |   
  |   
  |   
  | 2
  | 0
  | 0
  | 0
  |   
  | 
  | 
  | 

My java logic is is as following 


  | public DotJBCacheAdministratorImpl() {
  | CacheFactory factory = new 
DefaultCacheFactory();
  | cache = factory.createCache("cache-configuration.xml");
  | 
//cache.getRegion(Fqn.fromString(CacheLocator.getContentletCache().getPrimaryGroup()),
 true);
  | }
  | 
cache.put("ContentletCache",key,object);

  | 
  | 


  | return cache.get("return cache.get(group, key);", key);
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167100#4167100

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167100
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - GenericTransactionManagerLookup Confussion

2008-07-24 Thread LORDs_diakonos
Our app is running in tomcat 6. I am trying to set up the transaction manager 
in Jboss Cache.  I am getting the 2008-07-24 19:38:34,315 ERROR 
[main]org.jboss.cache.transaction.DummyTransactionManager - binding of 
DummyTransactionManager failed
javax.naming.NamingException: Context is read only
error which I know is because Tomcat's JNDI is readonly.  Can the 
GenericTMLookup be used without it trying to load the Dummy guy which I know is 
for unit testing?  

1.  What is the right way to do this?

2. Do I need the Transaction Manager? I want to run READ_UNCOMMITTED and 
REPL_SYNC

I am having trouble from Jboss Doc trying to figure out the right way to 
implement this.

Thanks in advance. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166522#4166522

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166522
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Re: Best use of Jboss Cache Implementation

2008-07-18 Thread LORDs_diakonos
Uhmm by group though I didn't mean server's (buddies) I meant an array of 
Strings which work as a way of removing etc... all objects with that group.  
Like a tag.  OSCache uses that instead of the FQN but it takes a String[] of 
them. 

So I am not sure what the best practice way to do this with Jboss Cache is. It 
seems each object can have a single FQN.  it may get built as a b tree so a/b/c
but this is a little different.  

In OSCache say I have 2 objects.  One in String["c"] group and another in 
String["b", "c"] group. I can say cache.remove("c") and both objects would be 
removed. 

Our primary cache singleton interface has methods like this on it. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165433#4165433

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165433
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Best use of Jboss Cache Implementation

2008-07-18 Thread LORDs_diakonos
I am migrating our app from OSCache to Jboss Cache.

In OSCache we had a singleton CacheAdmin interface with methods for put, get 
remove etc... It would stick all the objects in a single cache.  The put method 
signature looks like 
put(String key, Object content, String[] groups);

You can then flush based on group, key etc...  

So I have 2 questions. 

1. Is having a singlton Cache in jboss cache where all objects get cached ok? 
or is this bad practice?  

2. Can I use the FQN's to accomplish what the groups did? actually what would 
the best way to do this be is what I am asking. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165397#4165397

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165397
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Purpose of cache loader

2008-07-17 Thread LORDs_diakonos
I am evaluating Jboss cache and I am confused about exactly what the 
cacheloader is.  It seems the only good cache loaders are jdbc ones as the file 
one is not recommended for production.  The api refers to the cache loader as 
for secondary storage. 

What exactly is meant by secondary storage in this case?  

When would cache lookups goto db?  

Is there a good file store I can use?  I was hoping to get the cache on disk.  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165029#4165029

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165029
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user