Skip to Content
0
Former Member
Jul 11, 2008 at 09:51 AM

error while Look up session bean (EJB 3.0) in WebDynpro

8 Views

hi ,

I want to look up session bean inside webdynpro. I hv written following code inside init of component controller. but not able to look up session bean

try{

InitialContext context = new InitialContext();

ApplicationFetcherLocal applicationFetcherLocal = null;

applicationFetcherLocal = (ApplicationFetcherLocal)context.lookup((ApplicationFetcherLocal.class.getName());

}

catch (Exception ex){

System.err.println("LookUp Failed\n\n"+ex.getMessage());

}