1 2 Previous Next 15 Replies Latest reply on Jul 19, 2006 11:51 AM by niesar Go to original post
      • 15. Re: Embeddable Objects (EJB3) not working properly

        OK, this is an intermediate information for everybody who is interested how this story is developing.

        Well, I actually didn't want to work on this during my trip, but it was itching too much. After updating JBoss on my notebook, I was kind of successful (Yipppieee!!!) - partly at least.

        The problem seems to be ClassE. If I do the following changes, everything works just fine:

        @Embeddable
        public class ClassE
         implements java.io.Serializable {
        
         private int classEVar; // --> private String classEVar
        
         public ClassE() {
         }
        
         public ClassE(int classEContents) { // --> public ClassE(String classEContents)
         this.classEVar = classEContents;
         }
        
         public int getClassEVar() { // --> public String getClassEVar()
         return classEVar;
         }
        
         public void setClassEVar(int classEVar) { // --> public void setClassEVar(String classEVar)
         this.classEVar = classEVar;
         }

        And now variable access with
        #{classAInst.classEInst.classEVar}
        works without errors. Input, output, everything works fine like this, no problems at all.

        Don't ask me, right now I've no clue why it makes such a difference if I use a String instead of an integer.

        1 2 Previous Next