Solved

crete () - Home interface

Posted on 2006-11-25
4
160 Views
Last Modified: 2010-03-31
We write create() in the home interface which extends EJBHome.But suprisingly, the create() doesnt exist in the EJBHome API, meaning the create() is defined by bean developer. So can i change the name of create() to createMyBean(). If yes, where else will i have to make changes?
(Excuse me if the question is silly,but i am trying to get into the depth of ejbs)

thanks
J
0
Comment
Question by:jaggernat
  • 2
4 Comments
 
LVL 23

Assisted Solution

by:Ajay-Singh
Ajay-Singh earned 150 total points
ID: 18012017
You have to define create method with appropriate signature, the name could be different as well.

checkout this example: http://openejb.codehaus.org/Hello+World
0
 
LVL 10

Author Comment

by:jaggernat
ID: 18012150
>>>>the name could be different as well.



so you mean i can have createMyBean() instead of create()?
0
 
LVL 23

Expert Comment

by:Ajay-Singh
ID: 18012164
yes
0
 
LVL 8

Accepted Solution

by:
reach2piyush earned 350 total points
ID: 18017235
Can have 0 or more create methods defined in your home interface

Naming convention:
Method name should start with create like create<<AnyName>>
for every create you must have a corresponding
ejbCreate<<AnyName>> & ejbPostCreate<<AnyName>> defined in your bean.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
configure dependency in POM for new database 3 34
How  can  i  resolve  HTTP Status 404 -? 8 45
Which non-HTML GUI front end to use with Java? 3 24
Setup GlassFish 4 22
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

828 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