Menu Content/Inhalt
Home arrow Java Technologies arrow EJB - Interview Questions arrow What is the difference between EJB Create() and EJB PostCreate()
What is the difference between EJB Create() and EJB PostCreate() PDF Print E-mail
Friday, 23 February 2007

What is the difference between EJB Create() and EJB PostCreate() 

Comments (9)Add Comment
...
written by Meganathan, September 03, 2007
Session and Message Bean will have only ejbCreate() method and no ejbPostCreate() method. Entity bean will have both ejbCreate() and ejbPostCreate() methods.

The ejbPostCreate method returns void, and it has the same input parameters as the ejbCreate method. If we want to set a relationship field to initialize the bean instance, we should do so in the ejbPostCreate method. we cannot set a relationship field in the ejbCreate method.

The ejbPostCreate() allows the bean to do any post-create processing before it begins serving client requests. For every ejbCreate() there must be a matching (matching arguments) ejbPostCreate() method.
...
written by manoj kumar y, September 25, 2007
Hellow this is manojkumar,
I am writing simple answer for this,
Session and Message Bean will have only ejbCreate() method and no ejbPostCreate() method.
...
written by Sowjanya V, November 19, 2007
ejbpostCreate () differs from ejbCreate
...
written by d.praddep, July 28, 2008
Hellow this is d.pradeep
I am writing answer
Session and Message Bean will have only ejbCreate() method and no ejbPostCreate() method.
...
written by Hai guys this is SAIKIRAN.CH( This e-mail address is being protected from spam bots, you need JavaScript enabled to view it ), July 30, 2008
When client makes a request with homestub.create()
-->container picks one intance from the pool.
-->on that instance container calls ejbCreate() as a result insert operation takes place in the database and the instance is given with primarykey associated since the return type of ejbCreate() is primary key

-->on that container calls ejbPostCreate(),as a result,we can perforam post operation over here.....

.................Follows.............
Think hard so u can work Hard
...
written by Pankaj, August 01, 2008
ejbCreate :- Before Ready state all object are created. (ex :- Session Bean)
ejbPostCreate :- some object are created for initialised there state and rest object are created late (ex :- Entity Bean)
...
written by prakash.m.sanap, August 23, 2008
There is only ejbcreate() Method no ejbpostcreate method
...
written by tabrez, September 09, 2008
session and message bean has only ejbcreate() method where as entity bean only has both ejbpostcreate() method
...
written by vidyasagarvv, November 07, 2008
ejbcreate() method is only applicable to session bean... its a volatile storage whereas ejbpostcreate() method is used in entitybean as operation are taken to the updations of the database...

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

security code
Write the displayed characters


busy

Related Pages:

 
< Prev   Next >

User Login






Lost Password?
No account yet? Register

Experts Zone

Certification Zone

Syndicate

TESTING RSS

A feed could not be found at http://www.sgeek.com/option,com_rd_rss/Itemid,146/