• Post Reply Bookmark Topic Watch Topic
  • New Topic

SessionBean implementation  RSS feed

Joseph Miller
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please help me understand why this session bean implementation runs? Basically, a method is invoked in a session bean even though it's not listed in the remote interface. Here's the scenario:
Interface A
SessionBean B implements A
SessionBean C implements A
A JSP calls B.getDocuments(). B.getDocuments() calls C.getDocuments().
When I remove getDocuments() from B's remote interface, I get a java.lang.NoSuchMethodError at run time. However, when I remove getDocuments() from C's remote interface it runs. Why?
Running WLS 4.5.1. Both beans are deployed together locally. And I verified that when B calls .create() for C it gets a .CEOImpl_ServiceStub to work with. And clean builds of course...
Curious - thank you for your thoughts.
Joe Miller
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!