1 2 Previous Next 17 Replies Latest reply on Jul 13, 2007 4:28 PM by wschwendt Go to original post
      • 15. Re: two basic questions for EntityHome
        wschwendt

        A possible reason for my problem described in the previous post could be that I just copied jboss-seam.jar into the lib directory of my Seam Test application where all the other jars are based on the Seam2.0.0.B1 distribution rather than the CVS version.

        For testing of the CVS-based Seam I'll therefore set up my test app more thourougly from scratch, but I won't do this before today evening or this weekend.

        • 16. Re: two basic questions for EntityHome
          matt.drees

          You don't have to make your entityHome @Stateful. It can be a java bean.

          However, If you're using @stateful, I think that means you need a @Local interface. Does your interface have all of those properties?

          • 17. Re: two basic questions for EntityHome
            wschwendt

             

            "matt.drees" wrote:
            You don't have to make your entityHome @Stateful. It can be a java bean.


            I know, just for testing purposes the stateful component was a SFSB, but as you pointed out, stateful components can be an ordinary Java Bean as well.

            However, If you're using @stateful, I think that means you need a @Local interface. Does your interface have all of those properties?


            you're right, Session Beans (both Stateful and Stateless session beans) need a declared business interface. And in fact, in my case the business interface did NOT contain the accessor methods for the "instance" property and the other missing properties! Shame on me, just some days ago I wrote in another thread here that a business interface is necessary because Session bean instances are not accessed directly by a caller but rather only indirectly via container-generated stub/proxy objects that implement the business interface as well.

            So mystery solved why my test app didn't work and I got the javax.el.PropertyNotFoundException (at least this is one reason why it didn't work, have not tested my test app yet since I just came home). Makes me wonder however why it worked (or appeared to work) previously, although with the unfixed Seam version and the "caching behavior". Perhaps the @Stateful annotation was added at a later point of time...

            Anyway, thanks for your helpful comment, Matt. I should have checked it more thoroughly before posting, but I was hurrying and wanted to give feedback on the fix.


            1 2 Previous Next