Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

spec EJB problem with session beans

 
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.
 
Bartender
Posts: 1061
19
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • 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.
 
Rancher
Posts: 3618
38
  • 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
Rancher
Posts: 3618
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... some details on related topic ...

regards,
MZ
 
Mikalai Zaikin
Rancher
Posts: 3618
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
another discussion on the same topic

regards,
MZ
 
Peter Rooke
Bartender
Posts: 1061
19
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • 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.
 
get schwifty. tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic