This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Thanks Sylvain!!
 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
primarykey field's setter may be exposed to component interface, but setter method is restricted to expose
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!