I have some success using Eclipse 3.5 Jboss Tools 3.1 to generate a Seam 2.2 Entity application. Now I want to build a header detail application linking my first table as the header and a second table as detail. However, I have no luck to pass the primary key from the header application to the detail application. I have tried making the scope session, changing the entityHome an EJB with no success. Either the primary key is lost because of the stateless bean or entityManager is closed error. Please point me to a good solution.