• 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

seters/getters of CMP Fields(EB) exposed through Remote Interface

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can seters/getters of CMP Fields of an Entity Bean be exposed through its Remote Interface ?

I mean can Remote Interface define the getter & setters of CMP Fields of it's Entity Bean?

Thanx
Bhanu
 
Ranch Hand
Posts: 41
Java ME Spring Objective C
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bhanu,


Can seters/getters of CMP Fields of an Entity Bean be exposed through its
Remote Interface ?


Yes you can.

From the EJB 2.0 specs.

You're free to expose get and set methods that correspond to cmp-fields of
the entity bean through the bean�s remote interface.

The following restrictions apply to the remote interface of an entity bean
with container-managed persistence.

� The Bean Provider must not expose the get and set methods for
container-managed relationship fields or the persistent Collection
classes that are used in container-managed relationships
through the remote interface of the bean.

� The Bean Provider must not expose local interface types or local home
interface types through the remote interface or remote home interface
of the bean.

� The Bean Provider must not expose the container-managed collection
classes that are used for relationships through the remote interface
of the bean.



Sylvain
SCJP - SCWCD
 
Bhanu
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Sylvain!!
 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just wanted to confirm - A primary key's getter and setter cannot be exposed to the remote or local interfaces, right?
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
primarykey field's setter may be exposed to component interface, but setter method is restricted to expose
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic