• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PortableRemoteObject

 
alec stewart stewart
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic