I am new in ejb and I need to call an ejb by its local interfaces and I know that my app and ejb should be in the same VM and they are. when I use remote Interfaces its works just fine but the problem shows up when I try the code below in order to work locally
code: Context ctx = new InitialContext(this.props); Object obj = ctx.lookup("ejb/MemberHome"); MemberLocalHome home = (MemberLocalHome) obj;
I am not sure if the code is right. when I run it I get a ClassCastException error. what is wrong?