"bstansberry(a)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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...