Hi,
I'm using jboss 3.0.3 running on RedHat 7.3.
I can get the LocalHome Interface of my bean, but when I will cast it to MyLocalHome, I always get an error, that it cannot be cast to MyLocalHome. The object returned from lookup() method is $proxy87.
Can sombody post me an full example how to work with LocalHome (ejb-jar.xml, the bean and its' interfaces,...)
Thanks
Try
Object obj = ctx.lookup(...);
Class[] intfs = obj.getClass().getInterfaces();
for (int i=0; i <intfs.length; i++)
{
System.out.println(intfs.getName());
}
Regards,
Adrian