• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

question about cmr field & method-intf

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The abstract getter/setter method for a CMR field should specify only the local interface for the related entity bean. But if it returns Collection, then is there a requirement that it should be a Collection/Set of local interfaces for the related entity bean?


can 'method-intf' be used while specifying tx attributes using 'container-managed' ?


Thanks
Deep
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Deep Chand:
The abstract getter/setter method for a CMR field should specify only the local interface for the related entity bean. But if it returns Collection, then is there a requirement that it should be a Collection/Set of local interfaces for the related entity bean?


can 'method-intf' be used while specifying tx attributes using 'container-managed' ?


Thanks
Deep



Yes, there is a requirement that it should be a Collection/Set of local interfaces. But, as we know, even if we make them return a collection of other object types, the error wont be caught until run-time.

Yes, the 'method-intf' can be used while specifying tx attributes also.
Based on the Spec and the DTD, there is only one definition for 'method' tag and it says that the tag can be used for all three given below.

container-transaction, exclude-list, method-permission
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!