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 9097477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:07:39+00:00 2026-06-17T00:07:39+00:00

I would like to develop an application with CDI (I use Spring usually) to

  • 0

I would like to develop an application with CDI (I use Spring usually) to discover this technology.

I have read many articles about CDI to learn how it works. I have a simple question about transaction management (for persistence in database for example):

Is it mandatory to use EJB 3.1 to have transaction management or is it possible to have it with CDI only ?

Thanks.

  • 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-06-17T00:07:40+00:00Added an answer on June 17, 2026 at 12:07 am

    No, you can do it with CDI. You simply need to create an interceptor that starts, commits or rollsback a transaction. It’s really not that hard. In Java EE 7 there will be a @Transactional for all managed beans (JSF, CDI, EJB, etc) that will be a CDI interceptor.

    EDIT: If you’d like to take a look at some that are already done, Apache DeltaSpike and Seam 3 (no longer being developed) have interceptors to handle transactions.

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

Sidebar

Related Questions

I would like to develop an Android application which will have a local database.
I have an iPhone application available in appstore. Now i would like to develop
I would like to develop an iPhone application, but I do not have a
I would like to develop an application where the main Window would have a
I would like to develop an application using Silverlight. As this application is used
I would like to develop a web application in Java/Spring/Hibernate serving as a business
I would like to develop a desktop application but I want to use web
I would like to develop a chrome extension/application from my java application. Is this
I would like to develop Mono application for Win/Linux/Mac in C# on Windows. Is
I am very new to Nhibernate. I would like to develop an application in

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.