jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB: Unexpected behaviour." Watch "EJB: Unexpected behaviour." New topic

EJB: Unexpected behaviour.

Renato Perini

Joined: Apr 11, 2012
Posts: 18

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

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.
It's not a secret anymore!