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