1 Reply Latest reply on Dec 23, 2006 4:49 AM by jaikiran pai

    need help its very urgent

    sanjeet kumar Newbie

      QueueConnectionFactory queueConnectionFactory =(QueueConnectionFactory)context.lookup("QueueConnectionFactory");

      The above line giving following error:

      javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
      at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
      at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
      at javax.naming.InitialContext.lookup(Unknown Source)