Dear all,

As some of you know I am passionate about portable EJB code.
I believe the issues currently being raised  about PRO.narrow are really EJB
1.0 issues where the EJB 1.0 spec recommended but didn't entirely enforce
PRO.narrow and in fact many vendors implemented a simple java cast as their
first cut at EJB.

The message is simple if you want portable code use PRO.narrow() this will
work for containers supporting the EJB 1.1 specification.

If there are examples that are still 1.0 based that should be updated to 1.1
please ask your vendor nicely or perhaps have a look some of the EJB code on
the Java developer connection or look at the java blueprints example which can
be found a the java developers connection at  http://java.sun.com/jdc

HTH
Tom Daly (Sun MDE)



 > Jonathan Weedon wrote:
>
> > specification.  I'd even bet that over half of the example code
> > that BEA ships and/or uses in its training material is
> > incorrect in this regard.  Certainly, we have seen our share of
> > ex-BEA users who were chagrined to discover that all the code
> > they were writing against WebLogic was not actually portable.
> When I started using EJB about three months ago, I got a copy of Ed
> Romans book, Mastering Enterprise JavaBeans. It's based on Weblogic. I
> was then using Orion and had a hell of a time trying to get "HelloWorld"
> on my screen due to the following code examples:
> Properties props = System.getProperties();
> Context ctx = new InitialContext(props);
> HelloHome home = (HelloHome)ctx.lookup();
>
> and
>
> Properties env = new Properties();
> env.put(Context.INITIAL_CONTEXT_FACTORY, initCtxFactory());
> env.put(Context.PROVIDER_URL, PROVIDER_url);
> Context ctx = new InitialContext(env);
> HelloHome home = (HelloHome)ctx.lookup();
>
> Unfortunately Orion is badly documented, however when I switched to IAS,
> i saw the light.
>
> EJB is all about portable code.
>
> sven
>
>
> 
>======================================================================================
> Sven van 't Veer
> http://www.cachoeiro.net Java Developer
>                 [EMAIL PROTECTED]
> 
>======================================================================================
>
> ===========================================================================
> 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".
>

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