Scotchman
asked on
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
constructor's doesnot have return type.