Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spec EJB problem with session beans

 
cyril vidal
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Spec of EJB2.0, p.60, �6.4, we can read that
The local home interface allows a local client to do the following:
- create a new session object
- remove a session object


I think the second option is precisely NOT ALLOWED, as remove(Handle h) and remove(Object PK) can't be used by a local client.
I would say that the only way to remove a local session bean is by calling remove() method of EJBLocalObject.

Am I right and is this a 'mistake' in the spec?

Thanks for your responses,
Regards,
Cyril.
 
Peter Rooke
Ranch Hand
Posts: 851
1
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What - a mistake in the specification! I don't see a problem calling
remove(Handle h) via the local home interface [stub]. However, I believe that remove(Object PK) is redundant for session beans, it can only be used with entity beans.
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Peter Rooke:
What - a mistake in the specification! I don't see a problem calling
remove(Handle h) via the local home interface [stub]. However, I believe that remove(Object PK) is redundant for session beans, it can only be used with entity beans.


Peter, JFYI,

Handle exists only for Remote interfaces, and NEVER for Local interfaces.



Check Client View of a Session Bean of SCBCD 1.3 Study Guide for more details.

regards,
MZ
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... some details on related topic ...

regards,
MZ
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
another discussion on the same topic

regards,
MZ
 
Peter Rooke
Ranch Hand
Posts: 851
1
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry about that, I was plainly wrong!
Mikalai thank you for the reference material, I have started to read it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic