[jboss-dev-forums] [Design of EJB 3.0] - Re: Status of annotation based configuration

adrian@jboss.org do-not-reply at jboss.com
Tue Nov 20 06:56:39 EST 2007


"ALRubinger" wrote : 
  | ...instead of a default; let the bean provider know they must specify a registered Pool implementation if they're going to perform an override in jboss.xml.
  | 

Why do they have to specify a default pool implementation?
Most likely all they want to do is change the pool size?

We should define defaults somewhere and reference them
from the three places that use.

e.g.

  | public interface PoolDefaults
  | {
  |     String defaultPool = "ThreadLocalPool";
  |     int defaultSize = 30;
  |     // etc.
  | }
  | public @interface Pool
  | {
  |     String value() default PoolDefaults.defaultPool;
  |     int size() default PoolDefaults.defaultSize;
  |     // etc.
  | }
  | 
  | public class PoolImpl implements Pool
  | {
  |    public String value = PoolDefaults.defaultPool;
  |    public int maxSize = PoolDefaults.defaultSize;
  |     // etc.
  | }
  | 


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

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



More information about the jboss-dev-forums mailing list