Hi all,
As of late, the software architecture group on our project has been having a
lively discussion
on when you are required to narrow remote object references.
Depending on how you interpret various sections of the specification,
specifically those on
type narrowing, you are required to narrow all remote object references, no
matter how they
are obtained (e.g. from create() methods on homes, from entity finder methods,
etc.), although
the examples provided in the spec. do not demonstrate this behaviour.
If you read the type narrowing sections only as warnings about using direct
casts, it appears that
you are only required to narrow broad references returned from sources such as
JNDI
(home interfaces), or Handle.getEJBObject(). Interfaces returned from
create()'s, find<Method>
methods, etc. where the desired type is well-known, will be narrowed by the
container (consistent
with the examples provided in the specification).
Now I know that narrow'ing references, regardless of how they're obtained will
work, and is
likely good practice, but I'd like to know what is required as the spec.
intended it.
Cheers...
---
Chris Kirby E-mail: [EMAIL PROTECTED][EMAIL PROTECTED]
IBM Canada Phone: 204.934.8980 (IBM office) OR
7 - 201 Portage Avenue 204.948.3559 (Client site)
Winnipeg, MB R3B 3K6 Fax: 204.934.8844
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".