Ok.
I think the way to go is that the persistence.xml needs to contain a jar-file section so that both jars get loaded into the persistence unit.
However, I am coming across a weird bug. When my persistence xml contains
Code:
<persistence-unit name="DefaultPersistenceUnit">
<jta-data-source>java:/IngresDS</jta-data-source>
<jar-file>genesis-common-server.jar</jar-file>
<properties>
jboss whinge that it cannot find the jar file, and the reason it can't find it is that it is looking in the Jboss bin directory (!!!!).
Let's see if jboss 4.0.5 fixes this.