aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes PortableRemoteObject Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "PortableRemoteObject" Watch "PortableRemoteObject" New topic
Author

PortableRemoteObject

alec stewart stewart
Ranch Hand

Joined: Dec 23, 2003
Posts: 71
what is wrong with my jsp code
<%@ page import =
"javax.naming.*,javax.rmi.*,java.util.*,java.io.*,java.rmi.server.*,stocks.*,javax.naming.InitialContext,javax.naming.Context,java.lang.Runtime"%>
hiADS
<%
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: PortableRemoteObject
 
Similar Threads
ClassCastException while invoking PortableRemoteObject.narrow
javax.ejb.EJBException: Impossible to create the MyBean: EJB Exception:
Local EJB call - Naming Exception
Urgent help needed
Why can't I invoke a ejb in Tomcat?