?
Solved

ejb post construct, pre destroy

Posted on 2011-09-10
1
Medium Priority
?
489 Views
Last Modified: 2012-05-12
i would like to know about ejb


post construct, pre destroy


 what are advantages, disavantages, uses, why, when, how, where we use them. i was not clear on this topic. thanks in advance
0
Comment
Question by:gudii9
1 Comment
 
LVL 47

Accepted Solution

by:
for_yan earned 2000 total points
ID: 36518182
read here:
http://java.boot.by/scbcd5-guide/ch02.html


PostConstruct

PostConstruct methods are invoked on the newly constructed instance, after any dependency injection has been performed by the container and before the first business method is invoked on the bean.

PostConstruct methods are invoked in an unspecified transaction and security context.

PreDestroy

PreDestroy methods execute after any method annotated with the Remove annotation has completed.

PreDestroy methods are invoked in an unspecified transaction and security context.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
A solution for Fortify Path Manipulation.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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…
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

840 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