[jboss-user] [JBoss Cache POJO Edition] - Pojo Cache instrumentation does not work as expected

sebi sebi do-not-reply at jboss.com
Wed Jul 7 07:48:42 EDT 2010

sebi sebi [http://community.jboss.org/people/prese] created the discussion

"Pojo Cache instrumentation does not work as expected"

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

Hi *,

I am using the following configuration for doing the instrumentation:

  <prepare expr="field(* @org.jboss.cache.pojo.annotation.Replicable->*)" />

Accordingly with the user guide:
+"+*  +We intercept the field of all access levels (i.e.,                   private ,                   protected ,                   public , etc.) The main reason being that we consider all  fields as stateful data. However, we can relax this                   requirement in the future if there is a use case for  it.+ 
*  +We don't intercept field modifiers of                   final and                   transient though. That is, field with these modifiers are not  stored in cache and is not replicated either. If                   you don't want your field to be managed by the cache,  you can declare them with these modifiers, e.g.,                   transient. 

Based on these I do not expect to have instrumentation for private static final Logger LOGGER = Logger.getLogger(..).
But I see code generate to intercept the LOGGER access.

Also I can see instrumentation classes generate for all my transient fields.

Do I miss something?



Reply to this message by going to Community

Start a new discussion in JBoss Cache POJO Edition at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100707/9279e640/attachment.html 

More information about the jboss-user mailing list