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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:02:13+00:00 2026-05-20T16:02:13+00:00

We have a web service implementation which maintains a bit of internal state. Now

  • 0

We have a web service implementation which maintains a bit of internal state. Now we want to add a separate web service interface which accesses the same internal state of the first web service. Essentially, it’d be two interfaces into the same underlying program. We can package the two web services within the same AAR file, as two services in the same service group.

In this setup, would the two services share a classloader (in which case they could share instantiated classes)? Or is there some other axis2 mechanism for the two implementations to communicate with each other?

  • 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-20T16:02:13+00:00Added an answer on May 20, 2026 at 4:02 pm

    It turns out that this “just works”. If two services are part of the same service group, then they will use the same classloader. That means they’ll have access to the same set of static variables and singletons.

    Axis2 also allows you to add parameters to certain configuration objects. Each parameter consists of a name-value pair, where the value can be any object. The environment-wide AxisConfiguration can be used to store parameters which are visible to any other service running within the environment. Within your ServiceLifecycle.startUp() function, call getAxisConfiguration() on the ConfigurationContext argument to retrieve the AxisConfiguration. Then use addParameter() and getParameter() to access parameters.

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

Sidebar

Related Questions

I have web service, which use integrated security in IIS. Now, I want to
I have a Web Service, Now I want to implement security model for that,
I have some WSDL from which I need to generate a web service implementation.
I have an AXIS2/JAX-WS web service using a code first implementation (yes I know,
I have an idea for a web-based service. The implementation is very complex. There
When I call, the service's method, I have Web Service Exception happening which I
I have a REST web service which exposes 2 methods- [POST method] Client will
I have to provide an interface to a set of web services for which
I have written a simple HelloWorld web service. Which takes an ArrayList as parameter.
I have a WCF web service that implements a RESTful interface. We're using 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.