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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:16:09+00:00 2026-05-14T18:16:09+00:00

Has anyone done this or attempted to do this for a preexisting project? It

  • 0

Has anyone done this or attempted to do this for a preexisting project?
It seems there are two options to go with here, either using the embedded EJB API basically the following class

javax.ejb.embeddable.EJBContainer

Which expects a configured glassfish v3 install to be available (application scoped resources will make this easier).

The alternative is using the embedded glassfish jar files and the embedded glassfish API

I am looking for feedback from someone who has or who is in the process of doing this, links to blogs etc with a simple EJB & test case are dime a dozen.

If you’ve done this with any other EJB 3.1 container feel free to share.

  1. Did you use any particular test framework for reasons other than it been your preferred tool?
  2. Which JPA 2.0 implementation did you use, and was there a particular reason for doing so?
  3. If you used glassfish which of the above strategies did you use? If not then which EJB 3.1 container did you use?
  4. If you successfully did this, was it worth the effort and would you do this again for another existing project?
  • 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-14T18:16:09+00:00Added an answer on May 14, 2026 at 6:16 pm

    It seems there are two options to go with here, either using the embedded EJB API (…) which expects a configured glassfish v3 install to be available.

    No, you can also use a minimal domain inside your project.

    I am looking for feedback from someone who has or who is in the process of doing this, links to blogs etc with a simple EJB & test case are dime a dozen.

    I’ve done integration testing of EJB 3.1 and JPA on my pet project (under Maven), inspired by Unit Testing EJBs and JPA with Embeddable GlassFish. Reading it is definitely worth it.

    Did you use any particular test framework for reasons other than it been your preferred tool?

    Nope.

    Which JPA 2.0 implementation did you use, and was there a particular reason for doing so?

    I used EclipseLink (because it was available at that time).

    If you used glassfish which of the above strategies did you use? If not then which EJB 3.1 container did you use?

    I used the Embedded EJB API, I was planning to run my code on other Java EE 6 containers when they’ll be available.

    If you successfully did this, was it worth the effort and would you do this again for another existing project?

    Well, I think that integration / functional testing have value and find that the Embedded EJB API is really nice for that. It was not a pain to use it even if I don’t consider my sample as a real life project.

    For more complex scenarios, I keep an eye on the maven-embedded-glassfish-plugin (see also this answer).

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

Sidebar

Related Questions

Has anyone done this / have some example code?
Has anyone seen this before - and can anything be done about it? This
Has any one done this before? It would seem to me that there should
Has anyone run into this error message before when using a timer on an
Has anyone ever done work to get Ruby to do continuations (like Seaside on
Has anyone ever set up Cruise Control to build an OS X Cocoa/Objective-C project?
Has anyone been able to get an NHibernate-based project up and running on a
Has anyone tried installing SQL Server 2008 Developer on a machine that already has
Has anyone looked at Yahoo's ASTRA ? It's fairly nifty, but I had some
Has anyone built a website with IronPython and ASP.NET. What were your experiences and

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.