Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
Spring Faqs

Spring Faqs

Ratings: (0)|Views: 48 |Likes:
Published by Ravikumarmaddi
Spring Faqs
Spring Faqs

More info:

Categories:Types, Recipes/Menus
Published by: Ravikumarmaddi on Jul 02, 2010
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less





22. What are ORM¶s Spring supports ?Spring supports the following ORM¶s : 2««««. Hibernate iBatisJPA (Java Persistence API) TopLinkJDO (Java Data Objects) OJB23. What are the ways to access Hibernate usingSpring ?There are two approaches to Spring¶s Hibernateintegration:Inversion of Control with a HibernateTemplate andCallbackExtending HibernateDaoSupport and Applying an AOP Interceptor 24. How to integrate Spring and Hibernate usingHibernateDaoSupport?
Spring and Hibernate can integrate using Spring¶sSessionFactory called LocalSessionFactory. Theintegration process is of 3 steps.Configure the Hibernate SessionFactoryExtend your DAO Implementation fromHibernateDaoSupportWire in Transaction Support with AOP25. What are Bean scopes in Spring Framework ?The Spring Framework supports exactly five scopes(of which three are available only if you are using aweb-aware ApplicationContext). The scopes supportedare listed below:Scope Descriptionsingleton Scopes a single bean definition to a singleobject instance per Spring IoC container.prototype Scopes a single bean definition to anynumber of object instances.request Scopes a single bean definition to the lifecycleof a single HTTP request; that is each and every HTTPrequest will have its own instance of a bean created off 
the back of a single bean definition. Only valid in thecontext of a web-aware Spring ApplicationContext.session Scopes a single bean definition to the lifecycleof a HTTP Session. Only valid in the context of a web-aware Spring ApplicationContext.global session Scopes a single bean definition to thelifecycle of a global HTTP Session. Typically only validwhen used in a portlet context. Only valid in the contextof a web-aware Spring ApplicationContext.26. What is AOP? Aspect-oriented programming, or AOP, is aprogramming technique that allows programmers tomodularize crosscutting concerns, or behavior that cutsacross the typical divisions of responsibility, such aslogging and transaction management. The coreconstruct of AOP is the aspect, which encapsulatesbehaviors affecting multiple classes into reusablemodules.27. How the AOP used in Spring?

Activity (9)

You've already reviewed this. Edit your review.
1 hundred reads
porur liked this
sattisrinivasa liked this
somsak_tk liked this
adeshmukh75 liked this
eswar19 liked this
manojrane liked this
bkandola liked this
nprasad77 liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->