Hibernate and Pico Container, looking for examples

Discussions

EJB programming & troubleshooting: Hibernate and Pico Container, looking for examples

  1. If you have a lot of business objects (50+) you want to group them in components. I mean Article, Address, BusinessPartner, Supplier, Order and all that stuff.

    Of course I know that this is theoretically possible by using Hibernate and Pico.

    But I am desperately looking for examples. I didn't find any site in half an hour for that purpose. Can you please tell me a site which provides code examples?
  2. I have a small app that has three config files: http://cvs.sourceforge.net/viewcvs.py/mlwfflm/mlwfflm/src/conf/ .

    They are loaded into the webb app by:

    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/applicationContext.xml</param-value>
    <param-value>/WEB-INF/yahooContext.xml</param-value>
    </context-param>

    Or in the swing app:

    AppContext.init(new String[] { "applicationContext.xml", "swingApplicationContext.xml", "yahooContext.xml" });


    public static boolean init(String[] configLocations) throws IOException
       {
          if (context == null)
          {
             context = new ClassPathXmlApplicationContext(configLocations);
             eventListenerGroup = (EventListenerGroup) context.getBean("eventListenerGroup", EventListenerGroup.class);
             return true;
          }
          else
          {
             return false;
          }
       }

    This is simple, but hope it helps.
  3. It does not look like what I was looking for.

    I search for a business object components, how they are built with Hibernate and Pico Container.