You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Sa...@i2.com on 2002/06/26 13:36:48 UTC

Hello Mr Vincent..Ur Attn. pl.....

Hi Vincent,

I am trying to run a testclient to test EJBLocalObject interface. 

Lookup is fine but when I get a home interface refernce, an exceptionis 
thrown as " Class cast exception..................." . Once This is 
solved, my  EJB LocalObjectTesting  get successfully over Using the Cactus 
( which  is  only  tools supporintg my reqment....).

Any idea why this happens. : can u pl.  send a code samplet  how to code a 
client for EJBLocalObject ( incae mine is wrong)
My client code is as below:



......
        Context ctx = new InitialContext();
        home = (TestSSBLocalHome)ctx.lookup("TestSSB.Test");
        tLocal = home.create();
        output= tLocal.printSomething("IQUOTE");
        expected = "IQUOTEIQUOTE";
        System.out.println("Expceted / outpur from BEAN Client is 
.........V: " + output);
.......



Thanks Vincent,
sathiya