Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

spec EJB problem with session beans

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 1093
19
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 3733
39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 3733
39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
... some details on related topic ...

regards,
MZ
 
Mikalai Zaikin
Bartender
Posts: 3733
39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
another discussion on the same topic

regards,
MZ
 
Peter Rooke
Bartender
Posts: 1093
19
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic