wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes PortableRemoteObject Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "PortableRemoteObject" Watch "PortableRemoteObject" New topic


alec stewart stewart
Ranch Hand

Joined: Dec 23, 2003
Posts: 71
what is wrong with my jsp code
<%@ page import =
InitialContext jndiCntx = new InitialContext();
Object ref = jndiCntx.lookupPortableRemoteObject.narrow(ref,StockQuotesHome.class);
StockQuotesHome home = (StockQuotesHome) PortableRemoteObject.narrow(ref,StockQuotesHome.class);
it gives the error:
e:\Blazix1\jspdir\stocks\cd_jsp.java:56: inconvertible types
found : java.lang.Object
required: StockQuotesHome
StockQuotesHome home = (StockQuotesHome) PortableRemoteObject.narrow(ref,StockQuotesHome.class);
i am using blazix
I agree. Here's the link: http://aspose.com/file-tools
subject: PortableRemoteObject
Similar Threads
Why can't I invoke a ejb in Tomcat?
Local EJB call - Naming Exception
ClassCastException while invoking PortableRemoteObject.narrow
Urgent help needed
javax.ejb.EJBException: Impossible to create the MyBean: EJB Exception: