Websphere has its own
ejb container. So I am not sure why you are using "org.openejb.client.RemoteInitialContextFactory" for the initial context when you are looking up the EJB from your servlet. It may be required for your
java client because it doesn't have an InitialContext associated.
Try the following code from your servlet:
<%@ page import="
javax.naming.InitialContext,
javax.naming.Context"%>
<html>
<body>
<%
Context initial = new InitialContext();
Object homeRef=initial.lookup(JNDI_NAME);
UserHome home=(UserHome)PortableRemoteObject.narrow(homeRef,UserHome.class);
System.out.println(home);
User aUser=home.create();
aUser.setStatus(1);
%>
If you create an EJB reference within your web deployment descriptor, make sure you define your JNDI_NAME as:
private static final
String JNDI_NAME="java:comp/env/WebUser";