[jboss-dev-forums] [Design of POJO Server] - Re: Deploying ValidatorFactory

alesj do-not-reply at jboss.com
Thu Aug 13 10:17:16 EDT 2009


"stan.silvert at jboss.com" wrote : 
  | Does it hurt anything to go ahead and put a VF in JNDI for all deployments?  
  | If we did bind a VF for all, would there be much of a perf hit?
  | If we did bind a VF for all, would finding the markers be more expensive than just creating and binding a VF?
  | 
I guess it doesn't hurt, but I would still like to limit it a bit.

Currently I have this simple check:

  |       if (attachmentNames != null && attachmentNames.isEmpty() == false)
  |       {
  |          for (String name : attachmentNames)
  |          {
  |             if (unit.isAttachmentPresent(name))
  |                return true;
  |          }
  |       }
  |       return false;
  | 

where attachment names are our jee metadata classes


  |     <property name="attachmentNames">
  |       <set>
  |         <value>org.jboss.metadata.web.jboss.JBossWebMetaData</value>
  |         <value>org.jboss.metadata.ejb.jboss.JBossMetaData</value>
  |       </set>
  |     </property>
  | 

so in this case only web, ejb deployments get VF.

ps: the code is committed here: http://anonsvn.jboss.org/repos/jbossas/projects/jboss-jsr303/trunk/deployers/

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249429#4249429

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249429



More information about the jboss-dev-forums mailing list