Tomcat 6 didnt have this feature at the beginning. That said trunk doesn't have this tomcat version handling anymore
Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-08-14 7:45 GMT+02:00 Chamil Jeewantha <kdcha...@gmail.com>: > Thanks Romain, > > BTW I still cannot understand the Tomcat 7 only code segment in the > TomcatWebappBuilder. I understand there is gap between Tomcat 6 & 7. But I > don't understand what is that gap. > > @Override > public void configureStart(final StandardContext standardContext) { > > * if (TomcatHelper.isTomcat7()) { * > TomcatHelper.configureJarScanner(standardContext); > > final ContextTransaction contextTransaction = new > ContextTransaction(); > contextTransaction. > setProperty(org.apache.naming.factory.Constants.FACTORY, > UserTransactionFactory.class.getName()); > > standardContext.getNamingResources().setTransaction(contextTransaction); > startInternal(standardContext); > * }* > > > Thanks in Advance! > > > On Thu, Aug 14, 2014 at 1:21 AM, Romain Manni-Bucau <rmannibu...@gmail.com> > wrote: > >> to avoid to scan jar we know we don't need to scan (tld for instance) >> >> >> Romain Manni-Bucau >> Twitter: @rmannibucau >> Blog: http://rmannibucau.wordpress.com/ >> LinkedIn: http://fr.linkedin.com/in/rmannibucau >> Github: https://github.com/rmannibucau >> >> >> 2014-08-13 20:32 GMT+02:00 Chamil Jeewantha <kdcha...@gmail.com>: >> > Hi All, >> > >> > I have noted that TomcatHelper.configureJarScanner(context); method is >> > called in OpenEJBContextConfig & TomcatWebappBuilder >> > >> > In TomcatWebappBuilder, this method is called only for Tomcat 7. >> > >> > @Override >> > public void configureStart(final StandardContext standardContext) { >> > >> > * if (TomcatHelper.isTomcat7()) { >> > TomcatHelper.configureJarScanner(standardContext);* >> > >> > final ContextTransaction contextTransaction = new >> > ContextTransaction(); >> > >> > >> contextTransaction.setProperty(org.apache.naming.factory.Constants.FACTORY, >> > UserTransactionFactory.class.getName()); >> > >> > standardContext.getNamingResources().setTransaction(contextTransaction); >> > startInternal(standardContext); >> > } >> > >> > Can someone elaborate why it is important? >> > >> > Regards, >> > Chamil >> > >> > -- >> > http://kavimalla.blgospot.com >> > http://kdchamil.blogspot.com >> > > > > -- > http://kavimalla.blgospot.com > http://kdchamil.blogspot.com