This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) 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

EJB: Unexpected behaviour.

Renato Perini

Joined: Apr 11, 2012
Posts: 17

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:
subject: EJB: Unexpected behaviour.
It's not a secret anymore!