cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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());

}

Accepted Solutions (0)

Answers (2)

Answers (2)

Vlado
Advisor
Advisor
0 Kudos

Have you read my latest reply in your other [thread|;?

What's the value of asking the same question again if you don't care about the answer?

Regards,

-- Vladimir

Former Member
0 Kudos

thnx . i m able to look up session beans from wendynpro. Thank u very much.

Former Member
0 Kudos

I might be wrong here, but aren't you supposed to lookup the home instance first and then create a session bean?

Former Member
0 Kudos

but i m working with ejb 3.0 . m hvng only local n remote interfaces

Former Member
0 Kudos

What kind of error are you getting when you look up the bean?

Below link might be of use

http://java.sun.com/developer/EJTechTips/2005/tt0930.html

Dion

Former Member
0 Kudos

ok. i wll try this link n revert back to u.