Results 1 to 2 of 2

Thread: Difference @Require and @Transaction annotation

  1. #1
    Join Date
    Oct 2010
    Posts
    1

    Red face Difference @Require and @Transaction annotation

    I Have two Questions:

    1. what is difference between @Require and @Transaction annotation?
    2. why we need this annotation, it is compulsory to use?




    Thank You,

  2. #2
    Join Date
    Apr 2008
    Location
    Philadelphia, US
    Posts
    198

    Arrow

    @akhtar24,

    I would say that besides both being annotation they have nothing in common.

    @Required annotation indicates that the affected bean property must be populated at configuration time: http://static.springsource.org/sprin...red-annotation

    @Transactional annotation makes sure that a class/method runs within a transaction ( you would have to activate it by "<tx:annotation-driven/>" ): http://static.springsource.org/sprin...ve-annotations

    /Anatoly
    Humans are stateful and mutable beings that have no problems processing many things concurrently and share state with others + they are usually "coupled"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •