Hi to all,I'm trying to mixing and matching 'hibernate' and 'todo' seam samples to conform to my use case (on front end) where I have seam, hibernate and pojo (and I would like to have jbpm).I do have some troubles because even if every piece works well alone, the bundle is not working.I think the root cause is that both microcontainer and jbpm scan hibernate.cfg.xml and do the mapping: so this operation happens twice.Accidentally the exception I get is

org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="cbi.model.Distint
a"/>

This solution is working but I would prefer to use the microcontainer SessionFactory. Is it possible?jbpm accept an external factory jndi name, how can I specify it? Assume to be in the 'hibernate' sample context.