Hi all

I have a class that is connecting to 2 beans. The one bean works while
the other gives me a 

java.lang.ClassCastException: __Proxy4  at
com.test.manager.TestManager.main(TestManager.java:45)

exception. I have checked the listings. I could not find a similar case
where one bean worked and the other did not.

Object homeObject = initcontext.lookup("java:comp/env/TestManager");
TestManagerHome home = (TestManagerHome
)PortableRemoteObject.narrow(homeObject, TestManagerHome .class);
TestManager locator =
(TestManager)PortableRemoteObject.narrow(home.create(),
TestManager.class);

Ta



Reply via email to