users@glassfish.java.net

javax.naming.NameNotFoundException in CLUSTER MODE GLASSFISH 9.1

From: <glassfish_at_javadesktop.org>
Date: Sun, 17 Oct 2010 03:32:57 PDT

Hi all,

I have one enterprise application running fine with glassfish 9.1.
While trying the same applicaton in cluster mode of glassfish it is throwing NameNotFoundException. But the application clusterjsp.ear supplied with glass fish is working fine in cluster setup. Please help me to resolve the same ....

Below my sample code for jndi look up.

Remote interface:

@Remote
public interface UsrFacadeRemote {
        
        public void save(HashMap<String,Object> hashData,String createdBy) ;
}

Session Bean :

@Stateless(name = "UsrDcrmsJndi", mappedName = "UsrDcrmsJndi")
public class UsrFacade implements UsrFacadeRemote
{
        public void save(HashMap<String, Object> hashData, String createdBy)
        {
                ELogger.log("saving Usr instance", DcrmsConstants.INFO);
                Session session = HibernateSessionFactory.getSession();
                Transaction tx = null;
        }
}

Jndi Lookup:

try
                {
                    InitialContext ctx = new InitialContext(getRMIProperties());
                    try
                    {
                                classMap.put("Usr", ctx.lookup("UsrDcrmsJndi"));
                                ELogger.log("Lookedup UsrDcrmsJndi", 2);
                    }
             }
        
        
Thanks and Regards,

Anish.
[Message sent by forum member 'anishpissac']

http://forums.java.net/jive/thread.jspa?messageID=485361