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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:02:31+00:00 2026-06-11T19:02:31+00:00

Given I have two EJB jars in an ear: A.jar and B.jar. Can I

  • 0

Given I have two EJB jars in an ear: A.jar and B.jar. Can I inject a utility class Autil that is not an EJB, just a POJO from A.jar into an EJB that is in B.jar using CDI? I cannot find this clearly in the Java EE specs. (Btw. I’m using Glassfish 3.1.1)

Note: Of course I could try it (and already had meanwhile) but that way I could only check it with specific AS and I would like to know what the spec says about it because I am trying to be vendor neutral.

  • 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-11T19:02:32+00:00Added an answer on June 11, 2026 at 7:02 pm

    Firstly, if you’re using GlassFish do yourself a favor and use 3.1.2.2. Next, yes you should be able to do that just fine. Make sure both jars have META-INF/beans.xml as well as your web app (WEB-INF/beans.xml)

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

Sidebar

Related Questions

Given I have two File objects I can think of the following implementation: public
Given I have a class with two constructors: public class TestClass { ObjectOne o1;
Given that two branches have diverged and a specific commit from one branch (and
A problem I'm trying to solve: given that you have two distinct strings composed
suppose you are given the following problem. You have two index sets that have
Given that I have two lists that each contain a separate subset of a
Given I have two entities: Deputy and DeputyProfile : public class Deputy : IdableEntity
Given the XML below.. and given that I have two variable 'Idnt' and 'Xref'
I have two questions regarding the '::' case class. :: can be used as
i have two columns that store values(numbers), how do i select where my given

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.