aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes EJB: Unexpected behaviour. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB: Unexpected behaviour." Watch "EJB: Unexpected behaviour." New topic
Author

EJB: Unexpected behaviour.

Renato Perini
Greenhorn

Joined: Apr 11, 2012
Posts: 12

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.

You can't live with women. You can't live without women.
Fuzzy Logic Example.
francesco umani
Greenhorn

Joined: Aug 07, 2013
Posts: 27
I think the problem is here:



why do you merge before the remove operation?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB: Unexpected behaviour.