on 07-11-2008 10:51 AM
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());
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I might be wrong here, but aren't you supposed to lookup the home instance first and then create a session bean?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.