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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:35:46+00:00 2026-06-16T16:35:46+00:00

I have a RestEasy web service that is deployed to JBoss 7.1.1. The web

  • 0

I have a RestEasy web service that is deployed to JBoss 7.1.1. The web service has a dependency on another service. This other service must be initialized upon JBoss startup — before the RestEasy web service is called for the first time. I tried using a static initialization block inside of the RestEasy class, but that won’t get executed until one of the RestEasy web service methods is called for the first time.

I would appreciate any suggestions on how initialize the dependent service (upon JBoss startup) before any RestEasy method is called.

  • 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-16T16:35:47+00:00Added an answer on June 16, 2026 at 4:35 pm

    If your static block isn’t working properly, you can initialize your second service by calling a listener class in your web.xml that references your second service instance.

    <listener>
        <description>Initializes the Second Service</description>
        <display-name>Second Service Loader</display-name>
        <listener-class>my.package.path.SecondServiceListener</listener-class>
    </listener>
    

    Alternately, if you’re using Spring, the solution is even more simple. Please elaborate on your environment.

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

Sidebar

Related Questions

At present I have a TestNG project that calls a JBoss RESTEasy web service.
I have a RESTeasy service thats running on JBOSS AS 7, that is trying
I have a web service that is processed on the Spring end as follows:
I have this service with RESTeasy: @GET @Path(/{name}) @Produces(image/jpeg) public BufferedImage get(@PathParam(name) String name)
I need to have a Web service that can take any arbitrary xml string.
Is it possible to have a JAX-RS web service redirect to another web page?
I have a similar case as the one described here: Dynamically change RESTEasy service
We're using the LightweightBrowserCache provided by RESTEasy 2.2.3.GA but have noticed that when the
Have a simple form that has a PictureBox in one location. I want to
I am using restEasy(Restful implementation for jboss) ejb3.0, Jboss5.1.1 AS I did restful service

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.