Embed JConsole within our own application

Has anyone out there embedded a JConsole within their own application? Why might I want to do this? Well, we have a large number of Java applications running and we want to monitor them! Rather than have to run a hundred separate JConsoles, it would be nice to run one tool where we could navigation to the application (usinga JTree/JTable or whatever) and press a launch JConsole button.
I've managed quite easily to fork the jconsole (from inside our all-systems-monitor) using:
String hostname = "locahost"; //REALLY DISCOVER THIS PROPERLY
int port = 9999; //AND THIS!
String appRoot = "oxbow/jmx/my_app"; //THIS TOO
final String url = String.format("service:jmx:rmi:///jndi/rmi://%s:%d/%s", hostname, port, appRoot);
final String execLocation = System.getenv("JAVA_HOME") + "/bin/jconsole";
new Thread(new Runnable() {
    public void run() {
        try {
            Process p = Runtime.getRuntime().exec(execLocation + " " + url);
            p.waitFor();
       catch (Exception e) {
           //HANDLE
}).start();Which is cool, but it would be nice to be able to embed in the app itself. Are there any plans for Sun to create an API for this?

FYI, JConsole already supports multiple connections
to multiple agents in a single process.
Regards,
Luis-Miguel Alventosa
JMX Java SE development team
Sun Microsystems, Inc.We have hundreds of systems which our tool is set up to monitor (they heartbeat over our network using a messaging infrastructure and advertise their JMX service URL and we can view the "universe" as a heatmap). From a usage point of view, we only want to "drill-down" into an application's state if it is reporting that there's something wrong or we want invoke an MBean operation.
This is not the normal state of affairs, so it's very unusual that we want any more than one JConsole up at a time, and certainly not one monitoring 100 systems. This would presumably cause us memory and CPU problems anyway. Playing with how the JConsole lauches when multiple connections are supplied looks like it would give us usage difficulties anyway.
I'll have to be happy launching the console individually via Runtime.exec() for now but thanks for your reply, Luis-Miguel.

Similar Messages

  • How to add our own applications to Cisco Connect Cloud?

    How to add our own applications to Cisco Connect Cloud?

    You might find this interesting.
    http://newsroom.cisco.com/press-release-content?type=webcontent&articleId=926074
    Interested developers are invited to visit the Linksys Developer Community at http://developer.cisco.com/web/ldc to register and develop apps for Linksys Smart Wi-Fi Routers. Cisco empowers developers with technical, marketing, and sales resources to help support every phase of their developmental and business cycles.

  • The ability of blackberry ,its customers, and investors to progress exists within our own capability *edited as it was late when i posted the first time

    As I read these various posts I see that blackberry users are innovative, demanding, creative, particular but effective smartphone users.  However sometimes our frustration manifests in the typical comments such as:
    Come on blackberry how the eff could you not include in the z10 "mypin" auto generation in sms.  How the $hit do you think I invite most of my bbm contacts, not as many people are using blackberries you know so the email invite (yes it generates in email mode so you can simply copy and paste) is not as efficient any more.  There i am done ranting
    What if we knew blackberry's attentions were focused in this support forum, and through it they could make sure their updates meet the needs of  their users? If bb'ers begin posting ideas within categories that would effectively cover all aspects from application/ interface adjustments to developments blackberry devices could effectively grow with the user.  It is a beautifully reciprocal experience as companies/individuals will have free market research and power of change. 
    Companies and developers can simply calculate if they have a positive return on their investment of time, cost, resourcess and efforts.  Whether it be a company who is  interested in direct billing, a contract or advertising OR a customer is interested in attempting to impact a change.  Both sides have a vested interest. People could see how many others potentially like their new ideas whether in be in the realm of functionality or applications.  I have been told (and have read a bit)  Linux systems are an awesome example of how ideas mixed with creativity, critique, feedback and passion drive the force that is innovation, which is amazing. 
    We have the opportunity to create what could include even more people now.  As mobile technology  spans the globe and should call for impeccable security, who better to afford you and your ideas both the collaberation potential with the luxury and security of the safest network in the business.  Since the phone is complete as a unit superficially; shape and weight are perfect for  a phone, 3.5 small buttons on the whold device, and perfect size screen for communication and visual needs, (also read my post on external battery charger.....bravo blackberry),there would only be a need for minor external and relative internal improvements as technology requires adaptation.  Thus the only thing to really continue to work on is the interface and user experience. 
    It is a work of balance and interdependence as both consumer/creator roles are shared by all parties within the company/owner and the open market.  The customer experiences the ability for impact on their own environment and efficiency/comfort withn that through application and function improvements, and blackberry gets happy loyal customers and supporters. 
    If we knew could post ideas with the help of blackberry of course (online tallies ballot system etc) to provide numbers or structure or to help guide the process of evolution in regards to this aspect of our lives (obviously they cannot make every change in the same amount of time as they would have to balance attending to ideas with great support to addressing ones with fewer numbers but specific ideas.  Also the factor of people who like the option as it is or would support change would have to be taken into consideration. ) than I am certain our dispositions would change when we encounter an obstacle because we know there is option for remedy.
    For example with a great enough support for lets say to change a function of operation, there is also the possibility that the idea would simply inspire blackberry to offer it in various modes like ringtones notification or options within program settings are. I am sure as a group of intelligent users we could contribute to the establishment of a ratio for attending to the necessary factors involved.  How does it work with linux systems?
    We would have to be patient of course as this would take time to gain the momentum it would require to have turnaround be speedy when it occurs.  It could happen, remember happy people are patient people.  Show us you hear us, make some of the changes that we see and address over and over in this post and it is inevitable you will see an increase in users and ideas which will only keep the progress in motion. 
    Eventually every idea reaches a point where you decide if there is enough reason to continue to develop, practise, or refine it. If not you simply move on to your next idea. Blackberry If you allow people to share ideas on an item that is so vastly involved in our daily lives how could you not continue to receive support.
    If not this (as this is simply ones persons idea ) , then please blackberry, establish something that shows you hear and acknowledge us because you have a dedicated group of  driven and precis users who simply want their blackberry to work because they see its true potential and it has the ability to surpasses all other mobile experiences  in terms of convenience and output as it once did. Some of your users are also financial supporters who believe enough in what you have the potential to create they invest their own hard earned money.  I am both and I am certain others are in the same situation. I have never been so frustrated and so happy with the same item than I have at different points throughout my years with blackberry.  The customer support or lack of voice has been my biggest concern. We scrutinize your products daily, we have some of the best feedback for you, but without a reception they will only turn into complaints or rants.
    Offer the capacity for impact at a level no one else has to this point in the game has. As you prepare to launch to one of the biggest user markets  in the world see that there is the potential to also create one of the largest communities of innovation in the world. 
    Smartphone users collectively creating a device that would be both seamless and secure anywherre it went on the globe  Owning the software and the hardware affords you this ability to offer us some input to some level. The ability to adjust to your users constantly changing environment is what every business owner should strive for.   Listen to your customers before they end up in the rant section of their forum.  Please continue to let blackberry know we would like to have our feedback heard.
    Thank you

    As I read these various posts I see that blackberry users are innovative, demanding, creative, particular but effective smartphone users.  However sometimes our frustration manifests in the typical comments such as:
    Come on blackberry how the eff could you not include in the z10 "mypin" auto generation in sms.  How the $hit do you think I invite most of my bbm contacts, not as many people are using blackberries you know so the email invite (yes it generates in email mode so you can simply copy and paste) is not as efficient any more.  There i am done ranting
    What if we knew blackberry's attentions were focused in this support forum, and through it they could make sure their updates meet the needs of  their users? If bb'ers begin posting ideas within categories that would effectively cover all aspects from application/ interface adjustments to developments blackberry devices could effectively grow with the user.  It is a beautifully reciprocal experience as companies/individuals will have free market research and power of change. 
    Companies and developers can simply calculate if they have a positive return on their investment of time, cost, resourcess and efforts.  Whether it be a company who is  interested in direct billing, a contract or advertising OR a customer is interested in attempting to impact a change.  Both sides have a vested interest. People could see how many others potentially like their new ideas whether in be in the realm of functionality or applications.  I have been told (and have read a bit)  Linux systems are an awesome example of how ideas mixed with creativity, critique, feedback and passion drive the force that is innovation, which is amazing. 
    We have the opportunity to create what could include even more people now.  As mobile technology  spans the globe and should call for impeccable security, who better to afford you and your ideas both the collaberation potential with the luxury and security of the safest network in the business.  Since the phone is complete as a unit superficially; shape and weight are perfect for  a phone, 3.5 small buttons on the whold device, and perfect size screen for communication and visual needs, (also read my post on external battery charger.....bravo blackberry),there would only be a need for minor external and relative internal improvements as technology requires adaptation.  Thus the only thing to really continue to work on is the interface and user experience. 
    It is a work of balance and interdependence as both consumer/creator roles are shared by all parties within the company/owner and the open market.  The customer experiences the ability for impact on their own environment and efficiency/comfort withn that through application and function improvements, and blackberry gets happy loyal customers and supporters. 
    If we knew could post ideas with the help of blackberry of course (online tallies ballot system etc) to provide numbers or structure or to help guide the process of evolution in regards to this aspect of our lives (obviously they cannot make every change in the same amount of time as they would have to balance attending to ideas with great support to addressing ones with fewer numbers but specific ideas.  Also the factor of people who like the option as it is or would support change would have to be taken into consideration. ) than I am certain our dispositions would change when we encounter an obstacle because we know there is option for remedy.
    For example with a great enough support for lets say to change a function of operation, there is also the possibility that the idea would simply inspire blackberry to offer it in various modes like ringtones notification or options within program settings are. I am sure as a group of intelligent users we could contribute to the establishment of a ratio for attending to the necessary factors involved.  How does it work with linux systems?
    We would have to be patient of course as this would take time to gain the momentum it would require to have turnaround be speedy when it occurs.  It could happen, remember happy people are patient people.  Show us you hear us, make some of the changes that we see and address over and over in this post and it is inevitable you will see an increase in users and ideas which will only keep the progress in motion. 
    Eventually every idea reaches a point where you decide if there is enough reason to continue to develop, practise, or refine it. If not you simply move on to your next idea. Blackberry If you allow people to share ideas on an item that is so vastly involved in our daily lives how could you not continue to receive support.
    If not this (as this is simply ones persons idea ) , then please blackberry, establish something that shows you hear and acknowledge us because you have a dedicated group of  driven and precis users who simply want their blackberry to work because they see its true potential and it has the ability to surpasses all other mobile experiences  in terms of convenience and output as it once did. Some of your users are also financial supporters who believe enough in what you have the potential to create they invest their own hard earned money.  I am both and I am certain others are in the same situation. I have never been so frustrated and so happy with the same item than I have at different points throughout my years with blackberry.  The customer support or lack of voice has been my biggest concern. We scrutinize your products daily, we have some of the best feedback for you, but without a reception they will only turn into complaints or rants.
    Offer the capacity for impact at a level no one else has to this point in the game has. As you prepare to launch to one of the biggest user markets  in the world see that there is the potential to also create one of the largest communities of innovation in the world. 
    Smartphone users collectively creating a device that would be both seamless and secure anywherre it went on the globe  Owning the software and the hardware affords you this ability to offer us some input to some level. The ability to adjust to your users constantly changing environment is what every business owner should strive for.   Listen to your customers before they end up in the rant section of their forum.  Please continue to let blackberry know we would like to have our feedback heard.
    Thank you

  • How can I turn off the WLS 6.1 security in order to develop my own application-based security module?

    Dear Colleagues,
    I am currently developing a J2EE application using WLS 6.1.
    My team and I have to implement a security requirement to suit our company's needs.
    The security requirements are that, users' password need to be aged (30 days maximum) and we need to provided a GUI front-end (JSP) to allow users to change their password when these expire after 30 days.
    Our internal contacts in the company, have already taken the lead to find out about whether we will be able to use the WLS 6.1 platform to do this and the answer we got back, was.
    Now we need to develop our own security module.
    I have 2 questions:
    1. How can we turn off the WLS security in order develop our own application-based security module?
    2. How can we develop a security module that allows us to age users' password and provide them with facilities to change their passwords when these expire?
    At the moment, we are using the default BEA WebLogic login.jsp page and there some configuration in the web.xml for this. I will be grateful if you could advise me on how to turn this default security off so that we can write our own security module.

    hi,
    1.You can write your own realm in 61 which can plugged for your security
    calls.
    2. once you write your ownrealm.. you can access it through weblogic
    api/ur api..
    thanks
    kiran
    "Richard Koudry" <[email protected]> wrote in message
    news:3dd0d081$[email protected]..
    Dear Colleagues,
    I am currently developing a J2EE application using WLS 6.1.
    My team and I have to implement a security requirement to suit ourcompany's needs.
    >
    The security requirements are that, users' password need to be aged (30days maximum) and we need to provided a GUI front-end (JSP) to allow users
    to change their password when these expire after 30 days.
    >
    Our internal contacts in the company, have already taken the lead to findout about whether we will be able to use the WLS 6.1 platform to do this and
    the answer we got back, was.
    >
    Now we need to develop our own security module.
    I have 2 questions:
    1. How can we turn off the WLS security in order develop our ownapplication-based security module?
    >
    2. How can we develop a security module that allows us to age users'password and provide them with facilities to change their passwords when
    these expire?
    >
    At the moment, we are using the default BEA WebLogic login.jsp page andthere some configuration in the web.xml for this. I will be grateful if you
    could advise me on how to turn this default security off so that we can
    write our own security module.

  • How do I get routing data from the Map App (powered by TomTom) so I can display the point-to-point annotations (turn-by-turn navigation) without leaving my own application.

    I have a tableView displaying a list of contacts from a Cloud Database.  After selecting a contact, I push to a programmatically created MKMapView.  Then I display the initial region (the view) that includes the users current location (starting point) and their selected destination (end point).
    Now I want to display annotations (as described in the Location Awareness Programming Guide) that displays polylines which will represent the turn-by-turn navigation IN MY OWN APPLICATION, and not in the Map App currently used in IOS6. 
    Due to licensing and its becoming depricated in IOS 6, I do not want to get routing data from the Google Maps API.  How do I get routing data from the IOS 6 Map App (powered by TomTom) so I can display the point-to-point annotations (turn-by-turn navigation) without leaving my own application?
    I checked out Stack Overflow and other forums which basically left me with the impression that this is not possible. I also checked out the TomTom iPhone Mobile SDK User Guide from the TomTom Developer Portal and am still confused.  It must be possible to retrieve routes, since the Map App can display turn-by-turn directions.  How can I retrieve turn-by-turn data that I may display as a route within my own application?

    Thanks Michael. Apologies for the slow reply I was away for a bit (holiday blitz at work and visiting family madness etc.etc.) back now, I set both options you requested to "never " and retried the CMS software with no change. 
    I do have progress of a sort though, as a test I took a separate test PC and put a clean install of Win7 on and loaded up the CMS software (it worked perfectly) and then took the version of ole32.dll off that machine and put it onto the computer I had built
    for her (using Linux) and...
    got a new error code. Darn I was so sure I had found a clever solution this time lol.
    Anyway now when the CMS fails it gives me a similar error but the offending module is "ntdll.dll" sooo... I tried taking the "working" version of ntdll.dll from the test box and moving it over (making sure to back up the existing ones
    first so I could put them back if needed) to her new PC and the PC would not boot. 
    It seems to want the original versions of a few Dynamic Link Libraries and if I could somehow give it those while not breaking Win7 it should theoretically work seeing as it no longer errors with ole32.dll. 
    ntdll.dll however seems necessary for Win7 to boot.
    So what I am wondering now is:
    Is there some way to have both versions of the DLL file in the system32 folder (bypassing the "cannot have two files with the exact same name in the same folder" thing) or rename the original DLL's something else and somehow make the CMS look for
    the new named versions so the system has the updated DLL's it needs to boot/run and the CMS has the old ones it wants to run or is there someway to have a self contained install of the CMS, say on a USB flash drive and give it it's own E:/windows/system32/needed
    dll's  path to the files it needs? 
    Willing to try any other options or settings you may have come up with as well.
    Thanks again for your reply and my apologies for not answering sooner.

  • Help documents for APIs that are to be used to write our own apllication

    Hi,
    Iam using SUP 2.1 ESD#1 licensed version,
    There are no help documents for the APIu2019s that are to be used to write our own application, so can some one provide me with some docs.
    Thanks,
    B.Ushasri

    They are available online... what platform are you writing for? I'm assuming youre writing a Native app?
    Ian

  • How to create our own web application on apache tomcat

    I am using Tomcat's default location to place my servlets.
    "E:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT"
    But day by day my classes are increasing. Now i am feeling to have my own location to place my servlets.
    Ex. "E:\myservlets"
    How to create and activate our own web application on apache tomcat except from tomcat's directory structure? Please guide me in this regard.
    Thanks in advance.

    hi,
    you can place your own application in any where
    then you to open under tomcat/conf/server.xml file
    add
    <Context path="/examples" docBase="e:/examples" debug="0"
             reloadable="true" ......./>

  • HT204053 How can my other half and I each use our own apple ids on one iPad?

    My other half and I each have our own apple id. How can we use our own ids on the same ipad2?

    no, when using facetime you log in with the apple id you want people to reach you at, so unless you both agree to share one apple id for all the facetime you do, it will be necessary for you to logout and login each time you use the application.

  • My sister and I each have an ipod touch. We use the same computer and itunes but each have our own apple id. Everytime I want to update an app on my ipod it asks for my sisters apple id login!? help!

    My sister and I each have an ipod touch. We use the same computer and itunes but each have our own apple id. Everytime I want to update an app on my ipod it asks for my sisters apple id login!? help!

    When it asks for another ID on an App Update, it means that the application was purchased under your sister's ID but downloaded to your device from the iTunes library that you share. Even though you both have your own Apple IDs, since you are syncing on the same computer, you are using the same iTunes library.
    Whoever purchased the app is forever tied to it, and you can only have one version of a particular app in a single library....
    Does that make sense?
    Cheers,
    GB

  • My wife and I each have our own apple ID's which we use on our own iPhones and iPads. We share an iMac. Is there a way of enabling Facetime on the iMac to accept calls to either of our IDs without the need to login as that particular user?

    My wife and I each have our own apple ID's which we use on our own iPhones and iPads. We share an iMac. Is there a way of enabling Facetime on the iMac to accept calls to either of our IDs without the need to login as that particular user?

    no, when using facetime you log in with the apple id you want people to reach you at, so unless you both agree to share one apple id for all the facetime you do, it will be necessary for you to logout and login each time you use the application.

  • How can I integrate adobe reader within an wxwidgets application

    Obviously I'm new to the world of adobe pdf reader.  I would like to integrate pdf reader from within a wxwidgets application I am writing.   I am trying to accomplish the following.
    1.  Control the size, positioning and what options are available of a pdf viewer and have it part of a frame that we control the general look and feel.
    2.  Highlight search words found within the article (from a previously executed search that brought me to the article)
    This project will be used to display millions of technical and scientific papers.  There will be no cost to access the papers or to even publish new ones.  The is being done by a non-profit society.  They will be peer-reviewed and Authors will have total control of their content without feer of unauthorized modification.
    We currently display the pdf by calling a webbrowser and that works, but so far I haven't found a way to communicate through the browser to the pdf plug-in so I can accomplish #2 above.
    I see two possibilities on going forward.
    A.  Find a way to communicate with the plug-in via the xulrunner browser.
    B.  Integrate an adobe object directly from within our program and then communicate with it.  (this options seems like a more likely candidate to establish comminication, but then there is an issue of getting it within the project and distributed to the end user - So far we have managed to avoid any installation procedure).
    Could someone give me a good starting point on what I might have to do to go forward to access the reader so that I can highlight the search words?
    I would really appreciate any help or direction that I can get.
    Jay Potter

    Post your questions in the forum for Acrobat SDK.

  • How to send multiple material in our own message type

    Dear All,
    Any idea about how to send multiple material in our own message type,In my outbound i have created a message type but able to send only one material through program. If i give range of material its in error status 26 in WE02 and failed to send.
    Help me ASAP.
    Thanks & Regards,
    Arun.

    hi Gordon,
    I want to receive the IDOC data for message type WPUUMS from a java server. Currently i am working on sample values for segments
    E1WPU01
    E1WPU02
    E1WPU03
    E1WPU04
    E1WPU05
    E1WXX01
    I am facing problems in passing the correct values .
    Its throwing a error message status 51.(Application document not posted) IDoc not fully processed.
    can you help me with some dummy data for all the fields in the above segments.
    reply ASAP
    regards
    arun
    Edited by: Arun Kumaran on Aug 22, 2008 3:33 PM

  • External applicatio​n or exe launched within my own software environmen​t

    Hello All. 
    I want to launch external application or .exe file within my own software environment. I know the way of launching external exe file but it runs on a separate window above my software. All i want is to launch the exe not in a separate window but within premesis or window of my own software in a defined rectangular area. What will be way of doing this?
    Thanks & Regards.

    Hello,
    Please find an attachment. Kindly have a look on .uir file in the example. If i want to launch any external exe say e.g cmd.exe in the rectangular region drawn, what will be way of doing this as i am unable to launch .exe in the rectangular region specified
    Thanks & Regards. 
    Moshi.
    Attachments:
    Example.uir ‏2 KB

  • Oracle ERP adapter or Develop our own?

    Within our company we have a discussion if we shall use the out-of-the-box Oracle ERP adapter to integrate to Oracle e-Business Suite or if we shall develop our own web service & WMQ to get it loosely coupled between SIM and EBS.
    The main reason we can see to develop our own is that we will have the control of the code and can handle version upgrades both on SIM and EBS, the downside is of course the development time and costs.
    Has anyone had the same discussions and what did it result in and what where your arguments for use or not to use OracleERP adapter?
    For you that run the OracleERP adapter what experiences have you got both good or bad and what have you seen is the major challenges?
    Please feel free to give comments also in general what pro's and con's is with develop or use the built-in adapters

    HI,
    1. What are the perquisites for developing XI Adapter?
    You can develop Adapter using JCO Adapter framework
    2. what tools do I have to learn ?
    i hope NWDS, we can use adapter metadata,PCK
    3. Where can I find the useful information regarding the development of XI Adapter?
    how to import all the configuration for the developed adapter
    How do u configure external adapter to XI?
    Adapter modules :
    https://websmp108.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805
    Regards
    Chilla..

  • How to create our own XML Schema (.xsd) in Weblogic WorkShop

    Hi,
    I am new to Weblogic Workshop.I want to create one xml schema with custom elements.
    when I am creating a file xml schema(.xsd).The file contains default namespace and no child elements in it.I don't know how to add elements to that file.
    please tell me how to add parent elements and child elements and also our own xml namingspace.

    Hi Sivaram,
    Unfortunately, the 8.1 IDE did not have special tooling for schema generation.
    You will need to create it by hand or using an external tool
    If you are using an external tool to create the file within the schema project, you might want to disable the schema project auto build, which will be triggered every time a file save takes place
    cheers
    Raj

Maybe you are looking for

  • My ipod isnt working

    my ipod touch 4th gen 32g ios 4.3  i tried to update it and when i unplugged it it wasent updated and all the factory apps(settings, music, videos, calander) were gone.  now when i try to restore it it says "your device is not eligible for the reques

  • Texts in sales order

    Hi Folks, I am using the Bapis BAPI_SALESORDER_CHANGE and BAPI_TRANSACTION_COMMIT to add texts to the existing orders.I am passing the following fields in the Bapi. SALESDOCUMENT = 'sales order number(VBELN)'. <b>ORDER_ITEM_INX</b> ITEM_NUMBER = item

  • Transfer app from coomputer to iphone 4?

    I was forced to download an App in iTunes on my computer because the size was 20MB. How do I transfer that App from iTunes to my phone?

  • Saving query result to a file

    Hi, I have a sql*developer version 1.5 but i am getting a problem while saving query result to a file. When i click on "script output "-> "file icon" nothing is showing. Can anyboby guide me whether its a bug or some other settings are required. I ha

  • Online redo log group needed??

    hey guys!      Am about to recreate the clone file of the clone db, open it using recover it until cancel using backup controlfile and apply all necessary archive logs! My question is, does ai need to have online redo log group of the production db?