4 Replies Latest reply on Jun 16, 2010 8:16 AM by Laird Nelson

    Conventions for defining Weld resources in Java EE 6?

    Laird Nelson Apprentice

      http://docs.jboss.org/weld/reference/latest/en-US/html/resources.html talks about defining resources in Java EE 6 that can then be injected into application code.


      Is there a recommended convention on where these resources live?  I've seen in examples the convention of having one class with a laundry list of producer fields in it, each of which obviously is annotated with @Produces.


      Has the community settled on a way to do this?  Is it regarded as a Good Thing to place our usage of various @EJB, @PersistenceContext, @Resource etc. annotations in one class?  And if so, do people typically have a common name for this class?


      Thanks in advance for your time.


      Best,
      Laird