Can an entity bean have a local and remote interface or doest that only apply to session beans?
Anyway, I'm accessing the entity bean through an SLSB (using the dao-pattern found in Hibernate in action). A call to findAll().size() will return the correct amount of records in my table. But the call findById() throws the ClassCastException when I try to assign the returnvalue to an object of the entity bean's class. Here is how my packages roughly look like: One.ear: - entity bean (to oracle, no interface) - stateless session bean (dao implementation and interface) Two.ear: - stateless session bean (a facade that calls the dao from one.ear causing the exception at the cast) So far no luck using PortableRemoteObject. Thanks for the help Kurt ... but keep it coming ;-) Or any idea where I can find an example where multiple ear files are deployed where this kind of remoting is used? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936265#3936265 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936265 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
