THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Overview
Span | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Wiki Markup | |||||||||||
|
|
|
|
| }
{html}
<object width="400" height="250"><param name="movie" value="http://www.youtube.com/v/s4uiIoAehgQ?fs=1&hl=en_US&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/s4uiIoAehgQ?fs=1&hl=en_US&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="400" height="250"></embed></object>
{html}
{span}|||||||
|
Div |
---|
Shows use of @PersistenceContext to have an EntityManager with an EXTENDED persistence context injected into a @Stateful bean. An EJB 3 @Entity bean is used with the EntityManager to create, persist and merge data to a database. If you need to use a TRANSACTION persistence context, see this example. The source for this example is in the |
Wiki Markup |
{div}
Shows use of *@PersistenceContext* to have an *EntityManager* with an *EXTENDED* persistence context injected into a @Stateful bean. An EJB 3 *@Entity* bean is used with the EntityManager to create, persist and merge data to a database.
If you need to use a TRANSACTION persistence context, see [this example|Testing Transactions Example].
_The source for this example is in the "injection-of-entitymanager" directory located in the [|OPENEJB:Download]available on the download page. _ { |
Div | |||||
---|---|---|---|---|---|
Wiki Markup | |||||
|
| }{div}||||
The Code
The Stateful bean
...