• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 1151
20
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: 3901
43
  • 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: 3901
43
  • 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: 3901
43
  • 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: 1151
20
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic