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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:43:26+00:00 2026-05-23T08:43:26+00:00

As a bit of background – I’m using JBoss 5.1, for web applications. The

  • 0

As a bit of background – I’m using JBoss 5.1, for web applications. The applications are vertically deployed so each feature ends up in a separate WAR file. It has a jar file for dao and business logic. This is fine so far however I need to deploy another app which doesn’t have much logic in itself – its basically a view like say dashboard. The dashboard needs to aggregate data from different data providers(usually they are other apps/features). Right now the dashboard knows way too much about other features. So everytime a new feature is added this dashboard gets redeployed as well with relevant code additions.

It would be great if there is a common interface for this dashboard that few other features implement and whenever a new feature(WAR) is deployed the dashboard can dynamically get data from the new provider as well. Is this possible? If not what is the closest I can get to without manipulating classloaders for the apps? It would be good to know if first of all this is possible inside jboss.

Please let me know if you need more info.

  • 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-23T08:43:26+00:00Added an answer on May 23, 2026 at 8:43 am

    There are a couple of ways to do what you’re talking about, so I’ll propose two types of solutions and I can give you more info about whichever fits your needs best.

    A relatively quick solution is to use a portal server like GateIn. Your WARs could be displayed on the same page, but they’d be in seperate places and not integrated. You’d have to turn your WAR’s into portlets and have an administrator add them to the portal’s UI, but the portal would be able to scan and detect all available portlets.

    A more flexible solution would be to have one of your classes for each deployment implement a common MBean interface. Your dashboard could then use JMX, specifically javax.management.MBeanServerConnection‘s queryMBeans method to obtain all MBeans (or a subset of MBeans belonging to a particular package, which you can specify as a query parameter). Then you can execute interface methods through javax.management.MBeanServerConnection‘s invoke method. To obtain the MBeanServerConnection with JBoss, call org.jboss.mx.util.MBeanServerLocator.locateJBoss().

    Some additional detail as requested (Note, the following is JBoss-specific):

    1) Turn your deployments into MBean’s
    For each of your JAR files, add a jboss-service.xml and *-xmbean.xml file to the META-INF directory (where * is a name of your choosing). Follow this example for those files.

    Implement the MBean at whatever path you specified in the jboss-service.xml mbean element’s code attribute (org.jboss.chap2.xmbean.JNDIMap in the example). Specify a consistent namespace and parameter for the jboss-service.xml mbean element’s name attribute (chap2.xmbean:service= in the example). The operations and attributes you specify in the *-xmbean.xml file should map exacly to your interface.

    2) Create the dashboard and in one of it’s classes poll the services (this code hasn’t been tested, but should provide a good outline)

    //Get the connection
    MBeanServerConnection connection = org.jboss.mx.util.MBeanServerLocator.locateJBoss();
    
    //Query for MBeans in the chap2.xmbean namespace
    Set<ObjectInstance> mbeans = connection.queryMBeans(null, new ObjectName("chap2.xmbean:service=*"));
    
    //Loop over each MBean and invoke an interface method
    for (ObjectInstance mbean : mbeans)
    {
        //Invoking 'put' method from example. If this were an info method, this would return the result of the MBean operation
        connection .invoke(mbean.getObjectName(), "put", new Object[] {"TestKey", "TestValue"}, new String[] {Object.class.getName(), Object.class.getName()});
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A bit of background first: I am using base code from a remote SVN
Bit of Background info, I'm using An NSOutlineView with Core Data. This Is What
A bit of background: When I save a web page from e.g. IE8 as
First, a bit of my background. I have been working on large web systems
First a bit of background. I have been working on the MS platform for
Let me start off with a bit of background. This morning one of our
First off, there's a bit of background to this issue available on my blog:
A bit background: I've got a page with a table and a number of
A bit of background first: GeoModel is a library I wrote that adds very
A bit of background: I'm building an MVC app to store golf course data

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.