"anil.saldhana(a)jboss.com" wrote : Use reasonable defaults for annotations?
That doesn't make sense you have to specify the value if you use the annotation
directly.
Rather than the normal annotation, I'd guess the problem is the annotation
created from the xml.
No default here:
| public class PoolImpl implements Pool
| {
| public String value;
|
or here:
| private void addPoolAnnotations(EJBContainer container,
| JBossEnterpriseBeanMetaData enterpriseBean) throws Exception
| {
| if (enterpriseBean.getPoolConfig() != null)
| {
| PoolConfigMetaData config = enterpriseBean.getPoolConfig();
|
| PoolImpl poolAnnotation = new PoolImpl();
|
| if (config.getValue() != null &&
!config.getValue().trim().equals(""))
| poolAnnotation.setValue(config.getValue());
|
| if (config.getMaxSize() != null)
| poolAnnotation.setMaxSize(config.getMaxSize());
|
| if (config.getTimeout() != null)
| poolAnnotation.setTimeout(config.getTimeout());
|
| addClassAnnotation(container, Pool.class, poolAnnotation);
| }
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105553#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...