Sorry I forget to provide my client code. It's as
follow in A) secion.
I appreciate your reply, many thanks.
========
A.)
package client;
import javax.naming.*;
import javax.rmi.*;
import ejb.*;
public class EjbClient{
public static void main(String args[]) throws
Exception{
InitialContext context = new InitialContext();
Object object = context.lookup("ejb/Hello");
HelloHome home =
(HelloHome)PortableRemoteObject.narrow(object,
HelloHome.class);
Hello remote = (Hello)home.create();
String what = remote.speak();
System.out.println("this session says:'"+what+"'!");
}
}
--- "Harkness, David" <[EMAIL PROTECTED]>
的訊息:> Newbie wrote:
> > i encounter a problem when using xdoclet. the
> > exception issues "Name not bound" as
> > NameNotFoundException on client side(seemly have
> no
> > access to the server due to no response printed on
> the
> > server console).
>
> NameNotFoundException is thrown when your JNDI
> lookup fails because
> there's no object bound to that name. So it seems
> that you client *is*
> reaching the server's JNDI service, but it's not
> finding the object it
> requests. Can you post your client code that looks
> up the session bean?
>
> David Harkness
> Sr. Software Engineer
> Sony Pictures Digital Networks
> (310) 482-4756
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux
> Tutorials
> Free Linux tutorial presented by Daniel Robbins,
> President and CEO of
> GenToo technologies. Learn everything from
> fundamentals to system
>
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-----------------------------------------------------------------
每天都 Yahoo!奇摩
海的顏色、風的氣息、愛你的溫度,盡在信紙底圖
http://tw.promo.yahoo.com/mail_premium/stationery.html
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user