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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:54:21+00:00 2026-05-19T15:54:21+00:00

I am new in JPA and I can’t understand the use and the difference

  • 0

I am new in JPA and I can’t understand the use and the difference between stateless and stateful.

Any experiences?

regards,
Haythem

  • 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-19T15:54:21+00:00Added an answer on May 19, 2026 at 3:54 pm

    “Stateful” and “Stateless” are attributes for session beans.

    A session bean (in brief) provides a way to call methods on an application server. The bean is an instance of a java class. Usually, a bean is destroyed after the remote method terminates (and returns a result). Those bean are “stateless”.

    It is possible (but rather unusual) to add fields and attributes to the bean so that a client can “create” this instance on the server and use it for more then one operation. Those beans are “stateful” (and should be avoided).

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

Sidebar

Related Questions

Starting a new project using EJB 3 / JPA, mainly stateless session beans and
I'd like to use JPA over JDBC for a new application. I'm strictly using
In JPA, is there any way you can replicate Hibernate's saveOrUpdate behavior , saveOrUpdate
I'm new to Spring data JPA and am trying to understand how to best
I created a new JPA project where i need to use javax.transaction.UserTransaction . While
Again, I am new to JPA & Hibernation. I am trying to use JPA
I'm new to JPA 2.0 and there are few things I don't understand. I
I am new in JPA, so excuse me if my question seems basic. I
I am new to JPA, I used to used prepared statement in JDBC. Is
I am new to JPA and have some problems in understanding bidirectional relations. 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.