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?
-
Hibernate and Pico Container, looking for examples (2 messages)
- Posted by: Hans Schw?bli
- Posted on: June 23 2004 03:41 EDT
Threaded Messages (2)
- Not 50, but a few config files... by Matthew Wilson on June 23 2004 07:03 EDT
- Not 50, but a few config files... by Hans Schw?bli on June 23 2004 09:09 EDT
-
Not 50, but a few config files...[ Go to top ]
- Posted by: Matthew Wilson
- Posted on: June 23 2004 07:03 EDT
- in response to Hans Schw?bli
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. -
Not 50, but a few config files...[ Go to top ]
- Posted by: Hans Schw?bli
- Posted on: June 23 2004 09:09 EDT
- in response to Matthew Wilson
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.