Rickard,
   Is it coz of diff JVMs while running from standalone client?If yes,
what if the servlet and  EJB/JNDI are in diff JVM?
...Amit

-----Original Message-----
From: Rickard �berg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 1:18 PM
To: [EMAIL PROTECTED]
Subject: Re: InitialContext


"Shankar Narayanan.K , AMB Chennai" wrote:
>             I am using J2EE server for testing purposes.In case of
using a
> stateful/less session bean,I am just leaving the InitialContext()
> constructor blank and in the context instance's lookup,all I am
mentioning
> is the jndi name which I mentioned in the server's console.That's
that.!! I
> am not using system properties' object to access my directory
services.But
> the server is sending a jar file to the client which contains stub
> classes,thru which the bean can be accessed.Tell me if this is done
can we
> simply avoid passing system props obj into initialcontext()?

Are you accessing these beans from a standalone client, or from a web
application? If you do this from a standalone client you must pass the
settings of the server to your client somehow, possibly by using the
jndi.properties file (recommended). If your client is a web appliction,
then you should not have to set anything at all, since the servlet
engine should have the proper settings already.

/Rickard

--
Rickard �berg

Email: [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