1 2 Previous Next 17 Replies Latest reply on Jun 23, 2003 2:04 PM by sugramoin Go to original post
      • 15. Re: "method return values in the home interface must be vali
        joelvogt

        from above:

        "This message may have two reasons:
        1.
        you did not point 'throws RemoteException' in getters/setters of remote interface
        2.
        you did point 'throws EJBException' in methods of bean class."

        It looks like 1. is your problem, ie
        String getRule() throws RemoteException; etc

        • 16. Re: "method return values in the home interface must be vali
          icanoop


          Wow, thanks for the idiot check! You're right.

          What threw me off was that I was using the example crimeportal code in the JBoss examples package as my reference. In there, they have cmp beans that don't throw RemoteException in their remote interface (Organization.java), so I didn't think it was necessary. I even compiled and ran that code to check and the warnings do not show up. Weird.

          But adding that fixed the problem for me, thanks.

          Ryan

          • 17. Re: "method return values in the home interface must be vali
            sugramoin

            Can any one give an explanation on how to use static constants or even how to declare primitives and the access and scope of these variables and values in the container.
            Is there an reference in j2ee specifications which describes bt this.
            any links and brief description will be fine
            TIA
            Moin

            1 2 Previous Next