Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6154197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:13:24+00:00 2026-05-23T20:13:24+00:00

Can we specify the transactionManagent/transactionAttribute(like required or Requiresnew ) to mention how the Container

  • 0

Can we specify the transactionManagent/transactionAttribute(like required or Requiresnew ) to mention how the Container must manage transactions for a method
when a client invokes the method of session bean with JDBC. if yes can someone point me a brief example of that.

I am under impression that declarative transactionManagent in session bean can be used
only when we are using session beans with Entity beans.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:13:27+00:00Added an answer on May 23, 2026 at 8:13 pm

    It is perfectly possible to specify transaction demarcation annotations on session EJBs or on their individual methods using the @TransactionAttribute annotation or via entries in ejb-jar.xml.

    You can find the basics addressed in the Java EE tutorial on container-managed transactions. Other places to obtain examples would be the OpenEJB project, which describes the usage of the annotations, and also testing for session EJB methods that uses these annotations.

    As far, as the scope of declarative transaction management uses are concerned, they are not restricted to entity beans (if you are referring to EJB 2.x entity beans, which no sensible project would use nowadays). You could use them with lower-level protocols like plain JDBC or other transactional protocols, and with higher-level frameworks like JPA, as long as the underlying datasources that you are using, support transactional access, i.e. allows for enlisting and delisting of the datasources in the transactions using the JTA APIs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We can specify a derived from constraint on generic type parameters like this: class
I wonder how I can specify a parameter of an OperationContract method in WCF
How can specify expression in LIKE operator I want to select all row in
I know I can specify it in the configuration XML, but I'd like to
You can specify equations using <equation> and also several others, but what tag must
You can specify one buffer for your file stream like that: char buf[BUFFER_SIZE]; std::ofstream
In phpunit we can specify the method was called with particular ->with($this->equalTo('foobar')) or any
I realized that I can specify $(document).ready(function(){}); more than once. Suppose like this $(document).ready(function(){
I can specify installation directory and registry value in NSIS like this: InstallDir $PROGRAMFILES\CTVI
We can specify an And specifier in Watir, like ie.link(:innertext=>google,:href=>http://www.google.com).click Can we specify an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.