Meaningless Drivel is fun!*
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: 9

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.
Similar Threads
Netbeans EJB3 bean can only read and not write
JBoss5.1 EJB3 JSF1.2 integration problem
Big Exception in my Small Project (EJB JPA GlassFish)
EJB 3.0 Entity Bean