Hi Prodyut,
Aparently theer r two problems -
1. loginHome h = (loginHome)PortableRemoteObject.narrow(obj,loginHome.class);
login user = home.create();
Here you defind once home interface with "h" next time you used it by calling "home"
2. Which app server you are using?
Please check ejb-jar.xml field name "jndi", it's case sensative too.