zampu007
2008-07-31 17:05:23 UTC
No Idea how I missed my question. Sorry
Question is
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 : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167987#4167987
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167987
Question is
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 : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167987#4167987
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167987