"supi" wrote : Hey everybody,
|
| I'm experimenting with Habanero b2, and with POJO listener notification in
particular. I have a couple of questions:
|
| - I am getting "attach" and "detach" notifications, but no
"modify" calls. Do I have to configure something to make this work?
|
In order to see modify calls the subject interceptor must be added to any code that
modifies fields. Typically this is the pojo itself. Can you verify that you have set
jboss.aop.path to pojocache-aop.xml?
Also, there is a known design flaw, where notifications are only dispatched locally.
http://jira.jboss.com/jira/browse/JBCACHE-774
anonymous wrote :
| - Will there be an API to query the cache for a Pojo's Fqns or Ids? I understand
that this can be an expensive operation but I think it should be available on demand if
not provided with the notification.
|
Is PojoCache.findAll(String id) what you are looking for?
anonymous wrote :
| - What is getPojoID() supposed to return? If it is what I think it is, shouldn't
it return the complete list of cycle-free paths instead of a single string? Or is ID
something else?
|
I believe the intention is to return the id passed to attach. In some cases though this
could be an internal identifier.
-Jason
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035818#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...