ejb@glassfish.java.net

Re: Clarification on SLESS example on web. Example slightly misleading.

From: Cheng Fang <Cheng.Fang_at_Sun.COM>
Date: Fri, 23 Jun 2006 13:04:52 -0400

A few lines down on the same page, you will see this sentense, which
explains why this name is used:

/The JNDI name for the Remote Stateless Session bean will default to the
class name of its Remote business interface : *ejb30.Sless*./

Note this style is for lookup in standalone java client only. I agree
adding package line will make the code more complete and clear.

Thanks for the feedback.

Cheng


David Harrigan wrote:

> Hi,
>
> It's not apparent (and caused me to scratch my head and download the
> source code to understand), that on the page at this url:
>
> https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.html
>
> in the code section where we obtain a reference to the sless remote
> object
>
> Sless sless = (Sless) ic.lookup("ejb30.Sless");
>
> the "ejb30" is the actual package name of the class! In the code
> examples, the package name has been left out accidently (I suppose).
> Downloading the source code and looking at the SlessJavaClient.java
> file cleared up the matter (since the package is defined there.)
>
> I wonder if someone could confirm this and if possible someone could
> amend the webpage?
>
> -=david=-
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net
>