Solved

crete () - Home interface

Posted on 2006-11-25
4
161 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jdbc error in jsp application 20 89
Is Applet the way to go for my drag and drop system? 8 51
Bot application - advice 3 80
java mysql insert application 14 68
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

734 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