On Thu, Jul 10, 2008 at 8:19 AM, David Blevins <[EMAIL PROTECTED]> wrote:
>> Should I do the check for @Resource >> UserTransaction in AppValidator? It seems to be the best place for it. > > I'd say yes. In the AppValidator we wouldn't exactly know if the > UserTransaction ref originated in xml or annotation, but I don't think it > strictly matters. You can just check the resource-env-ref elements of the > jaxb tree and ... well i guess there's a couple things we could do. We > could: > > - issue a warning, then automatically remove the UserTransaction ref and > let deployment continue > - issue a failure which will of course fail the deployment > > There could be good arguments for either one. Thoughts? Enough for now to let me move on. Thanks. Jacek -- Jacek Laskowski Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl
