Difference between EJBHomeFactory and ServiceLocator Patterns?

Discussions

General J2EE: Difference between EJBHomeFactory and ServiceLocator Patterns?

  1. Can anyone pls explain explain what would be the exact difference between EJBHomeFactory pattern from (EJB Design Patterns by Flyod) and ServiceLocator pattern from J2EE Patterns.

    I am a EJB starter and not sure if this question makes some sense.
  2. Can anyone pls explain explain what would be the exact difference between EJBHomeFactory pattern from (EJB Design Patterns by Flyod) and ServiceLocator pattern from J2EE Patterns.


    I think it's a little difference. Using the EJBHomeFactory pattern you should cache only the Home interfaces references. The ServiceLocator should cache all types of expensive resources such as Home Interfaces, Datasources, JMS Queues an so on.

    Regards,