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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:26:35+00:00 2026-05-13T21:26:35+00:00

I know it is still not quite popular, since the spec was released just

  • 0

I know it is still not quite popular, since the spec was released just a few months ago.

I haven’t “installed” weld yet, I’m just reading, and by this question I want to make sure I’ve understood this important point correct:

Is resolution of beans that are in 3rd-party jars achieved by declaring them as <alternatives> in your beans.xml?

If not, how to use beans from 3rd party libraries that don’t have beans.xml ?

Putting the jar on the classpath won’t work unless there is beans.xml in their META-INF, which you can’t make true for 3rd party jars. (see Gavin King’s post on the subject)

  • 1 1 Answer
  • 3 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-13T21:26:36+00:00Added an answer on May 13, 2026 at 9:26 pm

    why think so complicated?

    Simply make a producerMethod for those 3rd party classes.

    Let’s assume you have a 3rd party library which automatically takes PDF files and sends them per faximile, and you like to use something like

    private @Inject PdfFaxService faxService;
    

    in your code, then you could simply provide this with a producer method. The PdfFaxService works stateless, so we can safely assume that we can make it @ApplicationScoped:

    public @Produces @ApplicationScoped PdfFaxService createFaxService() {
      return new PdfFaxService(initparameters);
    }
    

    somewhere.

    hth.

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

Sidebar

Related Questions

I'm still not practiced in oop.. now I know the importantness of it :)
I am still not so familiar with interfaces in Java. I know that interface
I know that E is short for 'event,' but it's still not clear to
I don't know if I am on right track or not still asking this
I know this is not the only question out there, but I still couldn't
Just I am new to Object Modelling.I want to know still there is a
I looked this up a while ago and it was and still is quite
I am still not quite sure about the best practice of using rails asset
I have read other related posts, but am still not quite sure how, or
Update: The issue still persists although it is not quite the same as before.

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.