• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Help me understand this piece of code

 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Guys,

I'm new to spring and working on a project involving spring. We are building the app from scratch and I have been given the Job of handling spring related stuff.

I've created daos and all that stuff and now working on the service layer. During my search, I found a sample application and was looking in the code of the application to see how the things are done in spring. However, I was stuck at the following code snippet in the service bean file:




I feel lost when I see all those PROPAGATION_REQUIRED and the the target value of name parameter.

I have a feature in my app for the user to search. So, I wanted to write a SearchService class. Should I blindly follow what's been done in the above mentioned code?
I do feel that I get a better understanding of the code above before going ahead.

Thanks!!!
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All the things with PROPAGATION_REQUIRED in the abstractService (and the other services specifying parent="abstractService" ) are to support transactions. I doubt you'll need transaction support to do search, so you won't need to specify any of this.
 
reply
    Bookmark Topic Watch Topic
  • New Topic