With Seam, you can use either Hibernate or JPA (EntityManager). It works independently of EJB. You can use simple POJO if you want.
How can I access using hibernate in my SEAM component?
Here are the settings for Hibernate WEB-INF / components.xml
SessionFactory Settings
<persistence:hibernate-session-factory name="sessionFactory" cfg-resource-name="app.cfg.xml"/>
Where app.cfg.xml is placed at the root of the class path
Session Settings
<persistence:managed-hibernate-session name="session" hibernate-session-factory="#{sessionFactory}" auto-create="true"/>
TransactionManagement Settings
<tx:hibernate-transaction session="#{session}"/>
To enter a Hibernate session, you can use
private @In Session session;
Remember that Seam works with any MVC infrastructure, although it uses Java Server Faces by default. You can even create your own MVC features if you want. Take a look at JBoss Seam Tuto
source share