"jnorris10" wrote : Is this bean reference restriction stuff mentioned in the spec? I didn't see anything like this under the Interceptors section.
|
This stuff is definitely in the spec. PeterJ is right, Interceptors only work if you call the method via a bean reference. It's true that in theory you may not have this restriction with AOP weaving, but I don't think the spec wants to mandate AOP for EJB3 implementers.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957565#3957565
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957565
I've researched this a bit more and I will answer this myself to the best of my knowledge, just in cased others have the same question.
"jnorris10" wrote : Am I only able to use CMT on "business methods"?
Yes, since these are the only EJB3 interceptor points defined.
"jnorris10" wrote : I often want to have private methods on a session bean that still have transactional semantics (ie: annotate them with @TransactionAttribute(...)). Can I not do this? Am I missing something?
No, you can't do this because again only business methods (which are public among other things) are subject to CMT behavior because this is the specified point at which this EJB3 interceptor stack is tied in.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957560#3957560
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957560
We are using a Jboss implementation in our application we have a interface which has these methods
public long getCreationTime();
public long getExpirationTime();
public long getLastAccessTime();
public long getLastUpdateTime();
public long getVersion();
public boolean isValid();
The interface has a method which has takes jbosstree i should write a class which implements the interface should return these values of entry in the cache ie each map entry (key,value ) pair which we specifiy.
Can any one please tell me how to go about this.
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957558#3957558
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957558