[jboss-dev-forums] [Design of EJB 3.0] - Re:

ALRubinger do-not-reply at jboss.com
Sat Nov 17 17:44:25 EST 2007


"bstansberry at jboss.com" wrote : 
  | 2) @CacheConfig.name.  Specifies the name of the JBC instance to use to store clustered beans.  Default was "jboss.cache:service=EJB3SFSBClusteredCache"; Al's recent changes converted it to "".  I prefer "" -- using an ObjectName is too much of an implementation detail to be leaking as a default value.
  | 
  | This change in defaults is breaking deployments of clustered SFSBs, so I'm going to have to add code to figure out what to do when the value is "".

Yes, by centralizing @CacheConfig from 2 annotations (in separate packages) to one, the context of the SFSB (clustered or not) should determine the default for "name", so for the time being I kept it as an empty String.  

Maybe we introduce some logic:

if(bean.getAnnotation(Clustered.class)!=null)
  | {
  |    bean.getAnnotation(CacheConfig).setName = DefaultClusteredInterface.class;
  | }
  | else
  | {
  |    bean.getAnnotation(CacheConfig).setName = DefaultNonClusteredInterface.class;
  | }

...and change "name" from a String to a Class<?>.  ?

S,
ALR

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

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



More information about the jboss-dev-forums mailing list