Sumesh,

What you are saying is clear, but incorrect.  CORBA, which is a
Common Architecture for Object Request Brokers, does not address
narrowing, per se.  Narrowing is an issue of a particular language
mapping, which is different from the architecture proper.

There are a number of different language mappings provided in CORBA.
Some of these require narrowing, and some do not.  Both the IDL-to-C++
mapping and the IDL-to-Java mapping require narrowing.  (I assume you
refer to one of those mappings when stating that "CORBA doesn't support
casting").  The reason the narrow is required in these mappings is
that there is no defined mapping between a Repository Identifier and a
particular IDL-based interface (that is, any of a number of IDL pragmas
can be used to arbitrarily define the repid for a given IDL interface).
However, the mapping used in EJB does define what the repid should be
for a given Java interface.  As such, there is no technical reason why
the narrow is required in EJB.  It is simply a holdover from the other
mappings (which did require the narrow).

-jkw

sumesh wrote:
>
> hi jkw,
>     I accept what u said.I mentioned COBOL only as an example...
> What i intended to say was that since ejb 1.1 requires the use of RMI-IIOP reference 
>and argument types,
> and IIOP being part of the CORBA standard, it is not advisable to use casting 
>because CORBA doesn't
> support casting at all(as far as i know).I hope this is clear
> regards,
> sumesh
>
> "Jonathan K. Weedon" wrote:
>
> > Sumesh,
> >
> > I am not sure if you were disagreeing with me or not.  But if you
> > were, then I might point out that COBOL is not relevant for RMI-
> > over-IIOP.  I fully agree (and previously stated) that there are
> > needs for the narrow operation in CORBA, but in the case of RMI-
> > over-IIOP (which is, by definition, a Java only case) the narrow
> > should not be required.  The fact that the current EJB spec requires
> > it is an oversight.
> >
> > -jkw (the original developer of VisiBroker for Java)

===========================================================================
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".

Reply via email to