No Idea how I missed my question. Sorry
Above is the console output when I deployed to code and executed the SecondServlet
The servlet is successful in doning the JNDI lookup and obtains Proxy112 object.
As per JNDIView of the server Proxy112 implements the interfaces $Proxy112 implements
interface com.tsb.test.ThirdSession,interface org.jboss.ejb3.proxy.JBossProxy
In my servlet I can cast Proxy112 to org.jboss.ejb3.proxy.JBossProxy however I can not
cast the same object to com.tsb.test.ThirdSession and get exception
java.lang.ClassCastException: $Proxy112 cannot be cast to com.tsb.test.ThirdSession
Can someone please help me and let me know what am I doing wrong?
View the original post :
Reply to the post :