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

  • SEARCH
  • Home
  • 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 8377579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:42:25+00:00 2026-06-09T15:42:25+00:00

I am using EJB Container Managed Bean database handling.I am not able to begin

  • 0

I am using EJB Container Managed Bean database handling.I am not able to begin transaction and end transaction.EJB handles this.Persistence provider is hibernate.

When I want to execute an sql query , it does not return to newest state from database.
I want to get entities whose status is WAITING, but although some entities is not in WAITING state, they are retrieved execution of query.I think hibernate does not go to database for newst state.

I tried Query.setHint(String,Object), em.clear and some other things,But I am not able to.
O am dealing with this problem for one week.I tried anything.

  • 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-09T15:42:26+00:00Added an answer on June 9, 2026 at 3:42 pm

    I created a new bean, added my method that retrieves entities whose status is Waiting as business method of that bean.I added @TransactionAtrribute(REQUIRES_NEW) annotation to declaration of method, this solved my problem

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

Sidebar

Related Questions

I have a @Stateless EJB using container managed transaction. Is there a way to
I am attempting to create a EJB3.0 container-managed persistence bean and am having issues
I have a @Stateless EJB with a @WebService interface, using container managed transactions, meaning
I am currently running a simple EJB application using a stateless Session Bean. I
i have created a demo application Using JSF & EJB 3.0 (Stateless session bean
Is anybody out there using iBATIS 3 as their persistence framework inside an EJB
Using EJB entity beans you can configure the bean so that when a thread
So I'm using container managed transactions in OpenEJB and Hibernate and I have a
I am using JPA in a Glassfish Container. I have the following Modell (not
This question would not have existed if AspectJ worked the same way as EJB

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.