At 10:51 AM 10/31/00 -0200, you wrote:
>when i run the client (InterestClient) get the exception :
> javax.naming.NameNotFoundException: interest not bound
>
>what i do ? (step by step)
>
>here is the server .log
The log doesn't help any more. Some kind soul took out the logging function
that told us what bean was bound with what JNDI name. Someone (else?) put
in a function that lets you view the JNDI namespace and see what's bound
with what. So you lose some, you gain some.
Change to the "bin" directory and do this command:
java -jar jndiView.jar
(And maybe someone should put that in a jndiView.bat file and commit it to
CVS.)
When you see the output of jndiView, you can tell what name your bean is
bound as.
You can change your bean's "bound as" name by setting up a "jboss.xml" file
and adding it to your META-INF directory. To do this, change to the "bin"
directory and do this command:
java -jar ejx.jar
(Again, someone should put that into an ejx.bat file.) If you're on Linux,
you may need to do this first:
set DISPLAY 0:0
This will bring up a GUI "Enterprise Java XML Editor." File | Open then
navigate to your META-INF directory, pull down "Files of Type" to "EJB 1.1
XML with jBoss XML" then open your ejb-jar.xml file. Switch to the
"Enterprise beans" tab and click on "Interest" (under the "Actions" column
on the left). Now you can see the "JNDI name" (on the right). Change it to
whatever you want (like "interest/Interest"). Save.
Your jboss.xml file should look like this:
<?xml version="1.0" encoding="Cp1252"?>
<jboss>
<secure>false</secure>
<container-configurations />
<resource-managers />
<enterprise-beans>
<session>
<ejb-name>Interest</ejb-name>
<jndi-name>interest/Interest</jndi-name>
<configuration-name></configuration-name>
</session>
</enterprise-beans>
</jboss>
Notice how the <ejb-name> is "Interest" but the <jndi-name> is
"interest/Interest". Take a look at your client code and make sure it uses
the JNDI name. Compile per the instructions at
<http://www.jboss.org/getting_startedJB2.htm> (either the Windows or Linux
trail). Run. Smile. Then figure out how to revise jBoss and the EJX GUI to
make this process easier on the next poor soul. That's what Open Source is
all about.
-- Ken Jenks, http://abiblion.com/
Tools for reading.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]