• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Transaction Attribute

 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can i use transaction attribute in CMP Entity bean? and Why can use it ?
I know only MDB can use :
+Required
+Not Support
thank you for all answer.
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi somkiat,
For CMP you can use all the transaction attributes:
  • Not supported
    Runs without transaction context. Existing transaction suspended.
  • Required
    Uses existing transaction context or creates new transaction context.
  • Supports
    Uses existing transaction context if it exists, otherwise it runs without a transaction context.
  • Requires New
    Existing transaction suspended. New transaction context created.
  • Mandatory
    Runs in existing transaction context, throws exception if there is no transaction context.
  • Never
    Throws exception if called with a transaction context.


  • Refer to section 17.6 of the specification for more details, and section 17.4 for details of which attributes are considered portable.
    Regards, Andrew
     
    Ranch Hand
    Posts: 8943
    Firefox Browser Spring Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    CMP can make use ot tx attributes so can BMP and session beans with container managed transactions.
     
    somkiat puisungnoen
    Ranch Hand
    Posts: 1312
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thank you very much, for all answer.
    It's cleared....
     
    I like tacos! And this tiny ad:
    the value of filler advertising in 2020
    https://coderanch.com/t/730886/filler-advertising
    reply
      Bookmark Topic Watch Topic
    • New Topic