• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can CMR fields refer to Remote interface

 
Arun Kandregula
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have been going through the Head First book and am a little confused regarding Entity beans and CMRs.

On page 386, it says, 'The type of a relationship field MUST be the local component interface of the entity'. What I'm unsure about is when I tried CMR fields to refer to remote interface .It did work. I undertsand that if CMR fields refer to local interface, it ll be more efficient due to less networking overhead. But can anybody please confirm me whether it is legal for CMR field to refer to a remote interface rather a local interface.

Regards,
Arun Kumar Kandregula.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
408
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arun,
As of EJB 2.0, you were not allowed to have a CMR field refer to a remote interface.

However, sometimes application servers go beyond the spec. So your server could be allowing it as an extension behavior.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!