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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:52:41+00:00 2026-05-30T07:52:41+00:00

Is it possible to inject Spring beans into an RestEasy @Path class? I managed

  • 0

Is it possible to inject Spring beans into an RestEasy @Path class? I managed to do it with Jersey, with @InjectParam annotation, but for some other reasons, I need to switch to RestEasy, and I can’t seem to find a way to do it (tried good ol’ javax.inject.Inject, but nothing).

EDIT

This solution works:
http://www.mkyong.com/webservices/jax-rs/resteasy-spring-integration-example/

but it’s not injection.. I’d still prefer something a little more elegant.

  • 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-30T07:52:42+00:00Added an answer on May 30, 2026 at 7:52 am

    Simply annotate your RestEasy class with Spring’s @Component and then inject your beans using Spring’s @Autowired. Don’t forget to include the annotation-config and component-scan elements in your spring configuration.

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

Sidebar

Related Questions

Is it possible to inject Spring beans directly into ZK backing beans? In tutorials
Is it possible to have Spring inject the JPA entityManager object into my DAO
Is it possible to inject an interface into an existing 3rd party class that
Is it possible to inject ejb's into pojo's using the @EJB annotation? If it
Is it possible to inject an instance of logger class object using Managed Extensibility
How to inject a Map in java spring framework? If possible please provide some
Is is possible to inject IPrincipal using Castle Windsor into my asp.net mvc controller.
I was wondering if its possible to inject a thread into a remote app
I would like to use jsf annotations and some spring annotations to inject a
As part of Spring 3 MVC it is possible to inject the currently logged

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.