From: <ste...@jb...> - 2005-09-07 12:20:59
|
So you need to understand that the purpose of defining a .har file is to 'partition' the the mapping files used to build a session factory, because the mappings are auto discovered within the bounds of that containing .har. If you define multiple Hibernate mbeans within the same .har each of the managed session factories will be constructed from all the discovered mappings. Typically that is nonsense; typically you have certain entities mapped to one datasource and other mapped to another. Thus that comment. You actually can define multiple Hibernate mbeans if you choose; you just need to be aware of these ramifications. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893402#3893402 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893402 |