actually i did not wrote any business logic in bean .
all the problem is with client code which is calling that home object.
my client code is like this
public class JrsClient1 {
public static void main(
String ar[]) throws Exception
{
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
System.out.println("after initial context factory");
env.put(Context.PROVIDER_URL,"iiop://localhost:2809");
Context context = new InitialContext(env);
Object ref = context.lookup("ejb/com/americanexpress/JRSStatelessHome");
System.out.println("after lookup");
JRSStatelessHome jhome= (JRSStatelessHome)PortableRemoteObject.narrow(ref,JRSStatelessHome.class);
JRSStateless jrsstateless=jhome.create();
System.out.println( jrsstateless.addJrs());
}
}
the exception im getting is
javax.naming.NameNotFoundException: ejb/com/americanexpress/JRSStatelessHome. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
at org.omg.CosNaming.Naming
ContextPackage.NotFoundHelper.read(NotFoundHelper.java:48)
pleaseeeeee help mee