[jboss-dev-forums] [Design of EJB 3.0] - Re: Status of annotation based configuration
ALRubinger
do-not-reply at jboss.com
Fri Nov 16 12:32:44 EST 2007
In the case of missing "value" in XML, I'd prefer a Deployment Exception:
if (config.getValue() != null && !config.getValue().trim().equals(""))
| {
| poolAnnotation.setValue(config.getValue());
| }
| else
| {
| throw new RuntimeException("detailed message");
| }
|
...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.
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105595#4105595
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105595
More information about the jboss-dev-forums
mailing list