Win a copy of Pipeline as Code this week in the Cloud/Virtualization 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Can CMR fields refer to Remote interface

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 40521
825
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic