[jboss-dev-forums] [Design of EJB 3.0] - Re: EJBTHREE-1062 and metadata
ALRubinger
do-not-reply at jboss.com
Thu May 22 09:22:07 EDT 2008
"emuckenhuber" wrote : But shouldn't metadata validate and fail when parsing the example above?
No, why would it fail?
"emuckenhuber" wrote : Which would be ok as the return type of the RemoteHome extends EJBObject - it would just set MyStateful as Remote interface - and @Remote will be more or less ignored.
| Is that ok / the expected behaviour?
I think we should introduce another fail-fast and validate @Remote as the spec intends - for use in business remotes only. To allow EJB2.x Remotes in there is redundant and confusing. For this we'll need consensus from the other devs.
Also note that the IllegalArgumentException you show should reference the spec and give a more clear error message than that given. Can't add x because of y says Spec z. :)
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152674#4152674
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152674
More information about the jboss-dev-forums
mailing list