No, there was a misunderstanding. I said that the problem is somewhere
else. You need to supply us a test case to debug further.
Thanks,
Sahoo
glassfish_at_javadesktop.org wrote:
> ok so if i understood your advice correctly then I need to create and persist an entity class in my session bean?
>
> I tried this but then i still get the same error msg
>
> [code]
> package byelex.advisor.webbased_designer.kb_beans;
>
> import javax.ejb.Stateless;
> import javax.jws.WebService;
> import javax.persistence.EntityManager;
> import javax.persistence.PersistenceContext;
>
> /**
> *
> * @author kaas
> */
> @Stateless
> @WebService
> public class NewSessionBean implements NewSessionRemote {
> @PersistenceContext
> private EntityManager em;
>
> /** Creates a new instance of NewSessionBean */
> public NewSessionBean() {
> }
>
> public String helloWorld() {
> NewEntity ne = new NewEntity();
> em.persist(ne);
> return "Hello World";
> }
> }
> [/code]
> [Message sent by forum member 'johnnyvdlaar' (johnnyvdlaar)]
>
> http://forums.java.net/jive/thread.jspa?messageID=235001
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>