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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:27:42+00:00 2026-06-14T06:27:42+00:00

In the process of porting some C++ code to Java I’m in the need

  • 0

In the process of porting some C++ code to Java I’m in the need of calling a stored procedure with in/out parameters.
As I cannot change this procedure (e.g. to work with hibernate and em.createNativeQuery) I guess I’ll have to unwrap the hibernate session from the EntityManager to get hold of the underlying jdbc connection.

My question now is will this connection participate in the Container Managed Transaction started by the EJB-Container (JBoss AS 7.1) or will I have to manually manage transactions in this case?

  • 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-14T06:27:44+00:00Added an answer on June 14, 2026 at 6:27 am

    The connection associated with the Hibernate session/EntityManager is associated with the current transaction context. Since the container has already started a JTA transaction (assuming that is the case here), you wouldnt need to manually manage transactions.

    There is however a different problem that you may have to manage – the transaction-level cache and cache synchronization with other caches. If the invocation of the stored procedure updates the database in a way that renders the caches stale, then you’ll need to clear their contents out. Sometimes you may need to clear out only certain entries, and other times it may be the entire cache itself; all of this depends on what type of entries are rendered stale.

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

Sidebar

Related Questions

I'm in the process of porting some Java processing code to ruby-processing , and
I'm in the process of porting some old C code to Java and, due
I'm in the process of porting some ANSI C++ code to C#... and this
I'm in the process of porting some Java code over to C++, and one
I'm in the process of porting some code from Objective C to C++. I'm
I'm in the process of porting some iOS3 code over to iOS5. Originally I
I'm in the process of porting some code from Linux to Mac OS X.
I'm in the process of porting some SQL Server 2005 databases to SQL Server
I am currently in the process of porting game code from PC to flash,
I'm in the process of porting some of my Linux programs to Windows. I

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.