dcsimg
<font size=4>How can I test ejb in the Visual Age for Java?</font>
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   roger_bligh
Posted On:   Tuesday, July 30, 2002 02:44 AM

I hope to use jsp as EJB client applications,and I want to test the jsp in the Visual Age for Java. I have opened the websphere test environment ,and have started persistent name server,EJB server,servlet server. my jsp code: Context ctx=new InitialContext(); java.lang.Object ref=ctx.lookup("test/HelloWorld"); HelloWorldHome hello=(HelloWorldHome) PortableRemoteObject.narrow(ref,HelloWorldHome.class); HelloWorld helloWorld=hello.create(); helloWorld.sayHello(); when I test the jsp,system throws ClassCastException(), and says jsp is null. who can tell me how test the jsp and ejb's communication    More>>
I hope to use jsp as EJB client applications,and I want to
test the jsp in the Visual Age for Java.
I have opened the websphere test environment ,and have started
persistent name server,EJB server,servlet server.
my jsp code:


Context ctx=new InitialContext();

java.lang.Object ref=ctx.lookup("test/HelloWorld");

HelloWorldHome hello=(HelloWorldHome)
PortableRemoteObject.narrow(ref,HelloWorldHome.class);


HelloWorld helloWorld=hello.create();

helloWorld.sayHello();


when I test the jsp,system throws ClassCastException(),
and says jsp is null.

who can tell me how test the jsp and ejb's communication
in the websphere test environment?
or so tell me how deploy websphere test environment for ejb and jsp's communication .

   <<Less

Re: <font size=4>How can I test ejb in the Visual Age for Java?</font>

Posted By:   Wei_Jiang  
Posted On:   Tuesday, July 30, 2002 01:30 PM

You can use SuperPeekPoke to visually test.
You can find it from: http://www.ACElet.com
About | Sitemap | Contact