|
oh, sorry. no what you wrote is what I had. I just
retyped it wrong in the email. So given that I have that, why am I not getting
initial context? I am calling it from a client, and that client is calling a
bean running in EJB, but my client app (a small class) is not running in EJB
itself - it was not in my descriptor, nor does it have a JOnAS class). Is that
the problem? If it does have to run in EJBServer, then:
1. How do I do this for a non-bean
client?
2. How do I do that for a JSP page?
----- Original Message -----
Sent: Saturday, June 23, 2001 10:00
AM
Subject: Re: How do I get the Initial
Context in JOnAS?
SG wrote:
I am trying to get the initial context in a
JOnAS environment and it isn't working. What am I doing wrong? I'm doing
this: Context jndiContext
= new InitialContext();CabinHome = ( CabinHome )
javax.rmi.PortableRemoteObject.narrow(jndiContext.lookup("CabinHome",
CabinHome.class); CabinHome
cabinHome = ( CabinHome )
javax.rmi.PortableRemoteObject.narrow(jndiContext.lookup("CabinHome",
CabinHome.class); What should I be doing to get it in
JOnAS?
|