Solved

return type of ItemBean() Constructor

Posted on 2004-09-15
4
158 Views
Last Modified: 2013-11-24
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
0
Comment
Question by:Scotchman
  • 2
4 Comments
 
LVL 6

Expert Comment

by:expertmb
ID: 12065259
>> ItemBean Constructor:
constructor's doesnot have return type.
0
 
LVL 6

Accepted Solution

by:
expertmb earned 50 total points
ID: 12065283
remove/comment the below statement and then compile
   public ItemBean() throws javax.ejb.CreateException {
      //   return null;
    }
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now