2 Replies Latest reply on Jan 29, 2010 9:36 AM by shane.bryzak

    Persisting and Remoting

    srpantano

      I'm trying to persist a entity inside a WebRemote method, but nothing happens, why?


      @WebRemote
      public void teste()
          User user = new User();
          user.setName("Joseph");
          entityManager.persist(user);
      }



      The application runs ok, and the debug doesn't show any errors, but entity doesn't persists.


      I put merge instead persist and they together too.


      What's is the correct way to work?