[jboss-user] [JBoss Cache: Core Edition] - Re: Retrieve Object from JBoss-Cache in memory

hzfzl9 do-not-reply at jboss.com
Tue Jul 1 14:45:30 EDT 2008


I run these two objects within the stand-alone applications.  
Here are the codes from class B:

CacheFactory factory = new DefaultCacheFactory();
Cache cache = factory.createCache("com/test/etc/cache-configuration.xml",true);
Fqn myObj = Fqn.fromString("/com/test/MyObject");			
Node node = cache.getNode(myObj);		

System.out.println(node.getKeys());

Always return a NullPointerException...

				


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

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



More information about the jboss-user mailing list