Whats really lacking here is a working sample to copy from.
Frank Kaiser
> -----Urspr�ngliche Nachricht-----
> Von: Kenneth Reed [SMTP:[EMAIL PROTECTED]]
> Gesendet am: Dienstag, 23. Mai 2000 13:43
> An: [EMAIL PROTECTED]
> Betreff: [jBoss-User] A little help please
>
> I am trying to deploy my first entity ejb. I am running with JDK 1.3 and
> jBoss V2.0.
>
> I am having problems with finding my home bean through jndi.
>
> So far I have managed to:
>
> 1) create and deploy my bean (at least it shows up in the server log),
> including setting up the CMP fields.
>
> 2) put jnpserver.jar into \jre\lib\ext
>
> 3) Created an initial context using the following code (is there some
> magic
> place where I can put jndi.properties so that I can just create the
> initialize context using the default constructor for InitialContext?):
>
> public static Context getInitialContext()
> throws javax.naming.NamingException, FileNotFoundException,
> IOException
> {
> Properties p = new Properties();
>
> FileInputStream inStream = new
> FileInputStream("c:\\JavaApps\\EJBoss\\conf\\jndi.properties");
>
> p.load(inStream);
>
> inStream.close();
>
> return new javax.naming.InitialContext(p);
> }
>
> 4) When I do the following two lines:
>
> Context jndiContext = getInitialContext();
> CabinHome home = (CabinHome)jndiContext.lookup("CabinHome");
>
> I get the following stack trace:
>
> javax.naming.NameNotFoundException: CabinHome not bound
> at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:167)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:152)
> at javax.naming.InitialContext.lookup(InitialContext.java:350)
> at com.titan.cabin.Client_1.main(Client_1.java:33)
> at sun.tools.agent.MainThread.runMain(Native Method)
> at sun.tools.agent.MainThread.run(MainThread.java:45)
>
> Just as background: I am relatively new to Java, though I have done C++
> programming for many years and have years of experience in the OLTP area.
>
> I figured out how to get this far by rooting through documentation from
> Sun,
> jBoss, a book on ejb's and a few days worth of reading this mailing list.
> I
> could continue to root around trying to solve the problem, but I figured
> someone here could tell me in 5 seconds what I need to do to get CabinHome
>
> "bound".
>
> I am running with Sun's JDK 1.3 on Windows 98 on an IBM ThinkPad with
> plenty
> of speed and memory.
>
> What piece of information am I missing? (A pointer to where I can find the
>
> information myself would be fine!)
>
> Thank you.
>
> Ken
>
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]