Simple: if the node ("/testfqn") is not there, the get() returns null:
| public Object _get(Fqn fqn, Object key, boolean sendNodeEvent) throws
CacheException {
| if(log.isTraceEnabled())
| log.trace("_get(" + ", \"" + fqn + "\", " + key + ", \""
+sendNodeEvent +"\")");
| try {
| Node n=findNode(fqn, NODE_READ);
| if(n == null) return null;
| if(sendNodeEvent)
| notifyNodeVisisted(fqn);
| return n.get(key);
| }
| finally {
| // release locks since no tx context
| if(locking == true && getCurrentTransaction() == null)
| releaseLocks(null, fqn);
| }
| }
|
This is also clearly stated in the javadoc for get().
Bela
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854890#3854890
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854890
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development