[jboss-user] [EJB 3.0] - Stateless and JNDI once again

peper do-not-reply at jboss.com
Sun May 13 17:01:00 EDT 2007


Hi.
I'm using JBoss 4.2.0 CR 2

I've got: 

@Stateless
@Remote(ProjectFacade.class)
public class ProjectFacadeBean implements ProjectFacade, ProjectFacadeLocal

found it in the JNDI Console as :

 ProjectFacadeBeanRemote (proxy: $Proxy108 implements interface facade.ProjectFacade,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)

so my lookup code is : 
[code = java]
ProjectFacade projectFacade = (ProjectFacade)context.lookup("ProjectFacadeBeanRemote");


And I get :

java.lang.ClassCastException : $Proxy108 cannot be cast to facade.ProjectFacade

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045308#4045308

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045308



More information about the jboss-user mailing list