이 콘텐츠는 선택한 언어로 제공되지 않습니다.
28.5. Configuring Seam in Java SE, without JBoss Embedded
To use Seam outside an EE environment, you must tell Seam how to manage transactions, since JTA will not be available. If you use JPA, you can tell Seam to use JPA resource-local transactions — that is,
EntityTransaction
— like so:
<transaction:entity-transaction entity-manager="#{entityManager}"/>
<transaction:entity-transaction entity-manager="#{entityManager}"/>
If you use Hibernate, you can tell Seam to use the Hibernate transaction API with the following:
<transaction:hibernate-transaction session="#{session}"/>
<transaction:hibernate-transaction session="#{session}"/>
You must also define a datasource.