users@glassfish.java.net

Re: JAX-RS Servlet - EntityManagerFactory.createEntityManager()

From: <forums_at_java.net>
Date: Fri, 16 Dec 2011 15:47:36 -0600 (CST)

Is this right? Still not working.  Tried with @ManagedBean(name="myuser") .
This is also not working.

@Path("simple")
@ManagedBean
public class SimpleResource {
    @SuppressWarnings("unused")
    @Context
    private UriInfo context;
    

@PersistenceUnit
EntityManagerFactory emf;

 

Read in youtube video comments and tried with @Stateless and it's working.
Why not with @ManagedBean? Where am I missing?

 

Thanks,

Venu

 


--
[Message sent by forum member 'dearvenumadhav']
View Post: http://forums.java.net/node/790553