• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB: Unexpected behaviour.

 
Greenhorn
Posts: 18
Eclipse IDE Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello guys.
This is my Entity:


This is the remote interface:


This is the Stateless Session Bean:


and finally this is the simple test client (using Eclipse, an "Application Client Project"):


Simple, uh?
It doesn't work. After the execution, I find 2 rows in the database, one with the original book and the second row with the updated book.
Also, the deleteBook() seems it has no effect at all.

What am I doing wrong? I'm using Glassfish 3.1.2 ...
Thank you in advance.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the problem is here:



why do you merge before the remove operation?
 
reply
    Bookmark Topic Watch Topic
  • New Topic