See Beginner's corner
Thanks looked at beginner's nothing.
What did u put in your jndi file ?
What do u use to run your client ?
Sorry I look at your post in Beginner's corner my jndi looks like this
My client is a simple class using jndi lookup.
This seems good...
What command line do you use to run your client ?
I'm running the client using JBuilder 4.0 I have jbuilder configured to use junit.
Ok try the following command into console Window :
yourdirectory:\>java -cp yourJNDIfile yourClient
I had the same problem with another Java editor, so maybe this will help you...
Tried that got this now what do you have on your classpath
I think something is missing.
Try then to use this after the -cp :
Those depends on what your client uses. But I think all you need is in the %JBOSS_HOME%\client directory, unless you use an external package...
I added Boss3.0\jboss-3.0.0\client to my classpath it still didn't work I have no Idea do you have any example you can zip up because I bought the documention and the book follow it just can't test the session bean.
There are some examples available in this forum. You can try them out...
I saw some 'uno.jar' that might help you.
What's the error message now ?
I'm now getting this error javax.naming.NameNotFoundException: comp not bound
I have been reading some of the post on the forum about it. In my test client I do a look up like this.
Object ref = initCtx.lookup("java:comp/env/ejb/SleeperServiceHome");
SleeperServiceHome home = (SleeperServiceHome)PortableRemoteObject.narrow( ref, SleeperServiceHome.class );
I've also had problems of type 'NameNotFoundException', but never saying that 'comp' was 'not bound'...
Maybe you can try
Object ref = initCtx.lookup("ejb/SleeperServiceHome");
but I'm not convinced it'll work...
Good luck !