This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes suppourt for Annotation Programming  . In servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "suppourt for Annotation Programming  . In servlets" Watch "suppourt for Annotation Programming  . In servlets" New topic
Author

suppourt for Annotation Programming . In servlets

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Servlet 2.5 provides suppourt for Annotation Programming . In this there are two methods

@preconstrct

@Predestroy


PLease tell me what is the difference when compared the above methods to init and destroy

Save India From Corruption - Anna Hazare.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Nothing really.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

(To be exact, these are @PostConstruct and @PreDestroy)


[My Blog]
All roads lead to JavaRanch
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thanks for your help Paul and Christopeh.
 
Don't get me started about those stupid light bulbs.
 
subject: suppourt for Annotation Programming . In servlets
 
Similar Threads
How can i add Log4j suppourt to my Application
java.util.Collection related classes suppourt in Java based Webservices
Hibernate suppourt with JPA
IS it advisable to use Transaction suppourt from servlets of with in EJB Bean class