This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
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
posted 14 years ago
problem solved.... Forgot to put Home behind on the class... Sorry:-)