I have two client classes using the same classpath, but one gets an error
trying to get the home interface. Here is the code:
System.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.provider.url",
"localhost:1099");
InitialContext jndiContext = new InitialContext();
Object ref = jndiContext.lookup("session_beans/UpdateBean");
UpdateHome updateHome = (UpdateHome)ref;
update = updateHome.create();
I get the error:
java.lang.ClassCastException: $Proxy0
at the line that starts with UpdateHome....
Why is the lookup returning a $Proxy0 object instead of the home interface?
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user