|
-
how to call an ejb using wsad and jsp and was 5.1 test environment
Hi,
Iam using the following code to access the ejb from my jsp.And iam getting an error.My environment is
wsad5.1,jsp,j2ee 1.3.
Can any body help me.My jsp code is
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://localhost:9081");
Context context = new InitialContext(env);
home = context.lookup("ejb/Hello");
where ejb/Hello is the ejb name in ejb-jar.xml file
E SRVE0026E: [Servlet Error]-[ejb/RatingEJB]: javax.naming.NameNotFoundException: ejb/RatingEJB. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNaming Impl.java:964)
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks