ok.
I will try to help you, but i am not sure that I can. :))
try to change your code
public class TestSessImpl implements TestSession, TestSessionRem{
| @PersistenceUnit(unitName="hotel")
| private EntityManagerFactory entityFactory;
| private EntityManager entityManager;
|
to
public class TestSessImpl implements TestSession, TestSessionRem{
| @PersistenceContext
| private EntityManager entityManager;
|
and
public TestEntity saveTestEntity(TestEntity entity) {
| try{
| EntityManager manager = entityFactory.createEntityManager();
| manager.persist(entity);
| }catch(Exception ex){
| System.out.println(ex.getMessage());
| }
| return entity;
| }
to
public TestEntity saveTestEntity(TestEntity entity) {
| return manager.persist(entity);
| }
If it doesn't help let me know...
P.S. I am sorry for my english
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999852#3999852
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999852
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user