if you want to inject the entitymanager use:
private EntityManager em;
inject is no longer available...
> I have the same problem. The thing is that I do not understand what should I do .. define a new datasource for the Entity Manager ?
> The trailblazer does not make any further reference to the persistence API ... I should create a -ds.xml file and a database for it myself ?
> I will try but the demo than looses it's purpose to explain you how to get started since you have to use another editor to make the authors-ds.xml file.
> Thank you
I have another issue . I have developed everything deployed it.
I have discovered that there is no way I can load the SessionBean Authors in the servlet.
What have I done wrong ?
The @Inject is to blame ?(Replaced it with PersistenceContext as advised)
Fixed it .. it was a packaging error of the ejb3 bean . I tried to play around with packages ... my fault.
I should mention that I jumped to EJB3 without any prior EJB2 knowledge because it seams a lot simpler (no service locators) .
Hope that Sun certifies EJB3 soon .