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

Reply via email to