• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Bhanu
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
 
Sylvain Bouchard
Ranch Hand
Posts: 41
Java ME Objective C Spring
  • 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!!
 
Muthaiah Ramanathan
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?
 
Ramakrishnan Ponmudi
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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!