Blasius Lofi Dewanto wrote:
>
> Hi,
>
> I just wonder, is that possible to
> make the lookup from "the client program"
> with java:comp/env?
>
> Client program: For example:
> Context context = new InitialContext();
> Object homeObject = context.lookup("java:comp/env/BankHome");
>
> The problem is, JOnAs's JNDI only set JNDI name for
> the client in the form of "BankHome" instead of
> "java:comp/env/BankHome" (within the environment).
>
> Any help would be appriciated!
> Please answer directly to my email: [EMAIL PROTECTED]
>
> Thanx!
> --
> ---------------------------------------------------
> Blasius Lofi Dewanto
> ---------------------------------------------------
> OpenUSS - Open University Support System
> http://openuss.sourceforge.net
> ---------------------------------------------------
> E-Mail : [EMAIL PROTECTED]
> ICQ : 39343280
> ---------------------------------------------------
>
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
You cannot use java:comp/env in a pure client, i.e. outside the
EJBServer.
You must use the real bean name instead (See jonas examples for more
information)
--
Philippe Durieux ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bull - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED]
-> Download our EJBServer at http://www.evidian.com/ejb <-
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".