This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 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
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.
 
Similar Threads
Netbeans EJB3 bean can only read and not write
JBoss5.1 EJB3 JSF1.2 integration problem
java.lang.reflect.UndeclaredThrowableException
Big Exception in my Small Project (EJB JPA GlassFish)
EJB 3.0 Entity Bean