• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Q about Entity Bean DD

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See the DD section for entity bean at the end (from MZ Study Notes):

a) Does this mean that either local, local-home OR home, remote MUST be specified? OR you can get away without speciying them at all.

b) MZ study notes say:
" an optional specification of the entity bean�s abstract schema name (CMP only), an optional list of container-managed fields (CMP only), an optional specification of the primary key field (CMP only)"

Does this mean that in CMP also they are optional OR if the bean is CMP then they MUST be specified?

<!ELEMENT entity (description?, display-name?, small-icon?,
large-icon?, ejb-name, home?, remote?, local-home?,
local?, ejb-class, persistence-type, prim-key-class,
reentrant, cmp-version?, abstract-schema-name?,
cmp-field*, primkey-field?, env-entry*, ejb-ref*,
ejb-local-ref*, security-role-ref*, security-identity?,
resource-ref*, resource-env-ref*, query*)>
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
a) Does this mean that either local, local-home OR home, remote MUST be specified? OR you can get away without speciying them at all.
- MDBs do not have client views, so component and home interfaces do not make sense to them.

b) MZ study notes say:
" an optional specification of the entity bean�s abstract schema name (CMP only), an optional list of container-managed fields (CMP only), an optional specification of the primary key field (CMP only)"
Does this mean that in CMP also they are optional OR if the bean is CMP then they MUST be specified?
- This means they have to be filled in for CMP entity beans.
[ March 22, 2005: Message edited by: paul.com ]
 
Deep Chand
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No but every where it's written that the 5 mandatory elements for entity beans are:

ejb name, ejb class, prim key class, reentrant and persistence type.

What about remote, home interfaces etc? Don't they need to be be mandatory?

Thanks
Deep
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Suppose that remote and home were mandatory. What would this imply? That the bean provider would need to define the remote component and home interfaces of the entity bean even when it does not have a remote view! The same applies to local and local-home: if they were mandatory the bean provider would need to define them for an entity even when it does not define a local view.
The spec says that the entity bean must define at least one set of interfaces (remote or local or both) and the container will check this at deployment time. The DTD just don't make them mandatory because that would be too restricting.

Regards,
Stefan
[ March 22, 2005: Message edited by: Stefan Guilhen ]
 
Deep Chand
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. Now it makes sense to me.
 
reply
    Bookmark Topic Watch Topic
  • New Topic