• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Spring/hibernate transactions question.

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Spring/hibernate transactions question.

    Interview today and I am trying to busk knowing this

    If you had a service layer which had the classes annotated with @Transactional then had a persistance manager layer where you injected in your entity manager with @PersistenceContext which the service layer used then the JPA DAOs behind it, would...

    The transactions filter down from the service layer to the manager layer even though you do not specify transaction in the manager layer? (I think they do)

    Are the manager layer objects spring beans? Do they have to be to inject the entity manager in using @PersistenceContext and would they have to be specified in the applicationContext.xml?

    Cheers.

Working...
X