return type of ItemBean() Constructor

Hi,

I am working on the TUSC tutorial
"Tutorial for building J2EE Applications using JBOSS and ECLIPSE "

In chapter 6 I am trying to generate an CMP EJB, but after Creation using the Lomboz EJB Creation Wizard if got an error because of the return type of my ItemBean Constructor:


   public ItemBean() throws javax.ejb.CreateException {
        return null;
    }

Of course this can´t work because void can´t return something. But other classes are depending on this ItemBean class and I can´t just take away the return statement.
I also couldn´t find any information about the correct use of this Constructor.

Any suggestions?

Thx, Stefan
ScotchmanAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
expertmbConnect With a Mentor Commented:
remove/comment the below statement and then compile
   public ItemBean() throws javax.ejb.CreateException {
      //   return null;
    }
0
 
expertmbCommented:
>> ItemBean Constructor:
constructor's doesnot have return type.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.