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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:44:02+00:00 2026-05-19T04:44:02+00:00

Short introduction. There is a production system where some independent clients invent some objects

  • 0

Short introduction. There is a production system where some independent clients “invent” some objects with some properties and behavior – one can assign some values to these objects, launch them into action and read their state upon/while execution.
Everything’s via web interface: client logs in, assigns values, injects objects, launches container and sees his objects mutating.

Everything is based on client’s JAXB-compliant schema. Schema is compiled into Java classes and packaged as client’s jar. (Many thanks to stackoverflow members who helped me to do it on the fly).

And here is the problem: they want webservice (SOAP) doing all they currently do via web-interface. And, of course, with wsdl types according to JAXB schema they dynamically change and deploy on the daily basis 🙁
Actually, all the operations they do via web are:

  1. Start/stop application container (common task, not a problem)
  2. Inject client-defined object into container
  3. Retrieve objects of specific type from container

“3” is not an issue once “2” is ok. But “2” is driving me mad and I need your advice BEFORE I start doing something. In terms of WebService my question is: How do I publish WS endpoint with following method, assuming that argument type is defined by client’s JAXB schema:

@WebMethod
public void inject(UserDefinedObject obj) {
  getAppContainer().inject(obj); // that's all I have to implement
}

Here are approaches I’m thinking of:

  1. Use Object as argument: public void inject(Object obj); and code ServletFilter to modify xml request/response according to client’s schema. But I’m not sure WS servlet will not check method signature and throw exceptions in that case. Another question is whether I will have access to request’s xml from within that method to perform JAXB unmarshalling.

  2. As I’m already compiling client jars, I could also compile webservice endpoints and deploy them dynamically as OSGI bundles. I’m absolutely new to OSGI, too many questions here: is it possible at all, what about my ear, do I need to make all as OSGI, how to communicate with EJB, etc, etc.

  3. More googling, but I’m afraid Brin & Page will start charging me.

Any other ideas?

  • 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-19T04:44:03+00:00Added an answer on May 19, 2026 at 4:44 am

    Finally decided in favour of OSGi option as described in solution to correct way to turn EAR module into OSGi bundle. Once my admin war was pulled out of ear, turned into OSGi bundle and therefore gained access to BundleContext, it’s is possible to dynamically deploy/undeploy client’s personal webservics on the fly:

      Bundle clientWsBundle = bundleContext.installBundle(bundleId, bundleWarInputStream);
      registerNewBundle(clientWsBundle);
    

    Not sure this solution is applicable to other, non-OSGi based app servers. I suppose some extra OSGI configuration will be required to make it work smoothly in interaction with remaining part of EAR.

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

Sidebar

Related Questions

I am not sure if this makes sense so apologies before hand: is there
Short version of what I want to accomplish : I have a foot pedal
I have volunteered to give a one hour lunchtime briefing at my workplace to
I recently checked out the book UNIX Network Programming, Vol. 1 by Richards Stevens
I've been trying to do the following: #[...] def __history_dependent_simulate(self, node, iterations=1, *args, **kwargs):
I'm trying to decide on the best strategy for accessing the database. I understand
I've been trying to learn about Neural Networks for a while now, and I
Possible Duplicates: While vs. Do While When should I use do-while instead of while
Being primarily a C++ developer the absence of RAII (Resource Acquisition Is Initialization) in
Eclipse 3.5 has a very nice feature to generate Java hashCode() functions. It would

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.