Hallo,
beim Aufruf einer EJB über Testclient funzt das Narrowing nicht.
Context ctx = new InitialContext();
System.out.println("InitialContext");
//JNDI-Namen nachschlagen
Object ref = ctx.lookup("Stpers");
System.out.println("JNDI-Lookup");
// Un hier knallt's! Cannot narrow without Stub-Class - die gibt es im AppServer aber!
//In Home-Interface umwandeln
stpersHome = (StpersHome) PortableRemoteObject.narrow(ref, StpersHome.class);
System.out.println("narrow HomeInterface");
Kann mir heir jemand helfen? Bin IAS-Neuling ...
Frohes 2002 von
Thomas
beim Aufruf einer EJB über Testclient funzt das Narrowing nicht.
Context ctx = new InitialContext();
System.out.println("InitialContext");
//JNDI-Namen nachschlagen
Object ref = ctx.lookup("Stpers");
System.out.println("JNDI-Lookup");
// Un hier knallt's! Cannot narrow without Stub-Class - die gibt es im AppServer aber!
//In Home-Interface umwandeln
stpersHome = (StpersHome) PortableRemoteObject.narrow(ref, StpersHome.class);
System.out.println("narrow HomeInterface");
Kann mir heir jemand helfen? Bin IAS-Neuling ...
Frohes 2002 von
Thomas
Comment