Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem PortableRemoteObject.narrow

 
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.... Forgot to put Home behind on the class... Sorry:-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic