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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:48:03+00:00 2026-05-31T20:48:03+00:00

I am developing a RESTful service which has two severs talking to each other,

  • 0

I am developing a RESTful service which has two severs talking to each other, which may be named as external and internal.
Internal registers requests to external for further processing. Only external is accessible to users.

For testing reliability my link between internal and external server, I want to simulate HTTP error as returned by external to internal. Is there any easy way to do so or I’ll have to hardcode the response being sent by external to internal for testing mainly 5xx and 4xx errors.

Server I am using is JBoss if at all this info is needed.

On searching Google, I found this data for iPlanet

1. edit the obj.conf or your virtual server specific obj.conf

2. Add the following line under

Error code=”200″ fn=”set-variable” error=”503″

this would return 503 even for successful serving (which would cause 200 to be returned by the default).

I am looking for something similar for JBoss

  • 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-31T20:48:04+00:00Added an answer on May 31, 2026 at 8:48 pm

    I am not aware of a JBoss configuration that will allow you to do this outside of the application. But its easy enough to setup a Resource within your application that would simulate this behavior and remove dependency on vendor specific application server:

    @GET @POST @PUT @DELETE
    @Path("/echostatus/{statusCode}")
    @Produces(MediaType.TEXT_PLAIN, MediaType.TEXT_HTML)
    public Response echoStatus(@PathParam("statusCode") final Integer statusCode) {
        return Response.status(statusCode.intValue()).build();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a RESTful application that integrates with other webservices. My question is, which
I am developing a RESTful WCF service which I then want to consume from
I'm developing a RESTful API service which initially will only be accepting and responding
I'm developing an application which has two main 'parts' to it... The public facing
I have a RESTful service that I am developing in WCF . I am
We're in the process of developing a WCF REST web service which just receives
I'm developing a web-service using WCF, which I want to access using a client
I'm developing a RESTful web service with WCF and C#. The service works fine,
I am developing a RESTful web service using JAX-RS. I am using JAXB to
I am in the process of developing a WCF Restful Service. One of the

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.