I assume that line 21 is the ctx.lookup("queue/mdb") method. It is obviously returning an object. What type of object is it?
same problem. I'm using a session bean. I'm trying to access this bean from my client program.
When i print getClass().getName() it is printing
"javax.naming.Reference". When i try to cast this to session bean interface, it is giving class cast exception.
I searched for this in various posts. Every one is saying that it is the problem of class loader.
Please help me in this.
talktoudaykumar, please do not resurrect 2-1/2 year old posts. Instead, start a new topic.