• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems with narrow  RSS feed

 
age spets
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ResultSet rs = DBConnect(medlem);
Context context = new InitialContext();
Object o = context.lookup("java:comp/env/myEJB");
System.out.println(o);
//OK so far...
AarsOppgaveHome home = (AarsOppgaveHome)javax.rmi.PortableRemoteObject.narrow(o,myEJB.class);
//THIS CREATES THE CLASSCASTEXCEPTION
 
age spets
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
problem solved... Just remeber to use the Home class...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!