3 Replies Latest reply on Nov 17, 2012 5:31 AM by Nooruddin Shaik

    JNDI lookup for request scope component,

    936196
      Hi,

      I have 2 web applications part of single ear file.
      Where One application is ATG application having ATG pipeline defined in its web.xml

      and 2nd one is a simple j2ee web application.

      From 2nd application if I try to lookup a request scoped component by following code

      String jndiName = "dynamo:/------compenent path------";
      Context ctx = new javax.naming.InitialContext ();
      Scheduler s = (Scheduler) ctx.lookup (jndiName);

      it shows me following error.

      ** Error Fri Nov 16 11:04:20 CST 2012 1353085460117 / Invalid attempt to resolve component /atg/-------component path------/ in scope global. It is defined in scope request

      Is there any way to resolve it ?

      Edited by: Arvind Pal on Nov 16, 2012 2:00 PM