Want to print some string on jconsole

Hi,
I have some requirement in that I have to print some string value on jconsole, I dont know it is possible or not.
if possible please suggest me some way.
Thanks
Candra

JConsole will show any registered MBeans that you have, so you can create an MBean with a String attribute and a "get" operation that returns a String. That String will then be readily displayed in JConsole under the MBeans tab. You can even expose objects more complex than a String as Strings in JConsole as long as those objects are Serializable, have an appropriate toString() method, and the class is included on JConsole's classpath. The blog entry at [http://marxsoftware.blogspot.com/2008/02/publishing-user-objects-in-jmx.html|http://marxsoftware.blogspot.com/2008/02/publishing-user-objects-in-jmx.html] talks about some of these issues. While it covers a custom object used with a JMX Notification, the idea is the same if you want to expose custom objects as Strings in JConsole. On the other hand, things are much simpler if your MBean that JConsole sees simply has an operation returning a String.
I am not sure if this answers your question. If it doesn't, you may want to add some clarification.
Dustin

Similar Messages

  • I want to print some pictures at Costco

    I want to print some pictures at Costco; which format, color space, 8bit, etc i need to use to export?
    Generaly I import photos to Aperture in RAW format,I know TIFF is the best format to print but i'm not sure what kind of TIFF, if TIFF (8-bit) or TIFF (16-bit) and what color space, I know CYMK is the best but there are so many color profiles, and some times I heard that sRGB is fairly good.

    You'd have to ask costco.

  • Just want to print some photos!!

    Hi
    When i save my photos to a usb and take them to a photo shop to print it's telling me there are no photos on file. I think i'm exporting them correctly to the usb because when i open the usb on my computer there are photos showing up. i also tried this with a cd but still no photos were being read on it. i have taken the usb to 3 different photo shops and its saying the same thing "no photos found". I'm saving them as a JPEG file, Is there a different format these are suppose to be saved as?
    Cheers

    Have you tried reading them on a Windows based computer? Could you have formatted the USB stick and CD for Macintosh only?
    Did you use the finder, preview or iPhoto to verify the pictures on the media? You might have saved a little iPhoto library that other software may not understand.

  • I want to print a calendar and some graph paper but the apps are gone

    I wanted to print some graph paper but the app was gone. when I use the more app on the printer it says conniction problem. so I did the network configuration and I am connected, next I did the HP software installer and it says im up to date but I still have no apps.

    Hello @jgolf ,
    I would like to direct your attention to the following post by PrintApper .
    HP Apps Service Retired on several printers
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • Not to print some of fields in alv

    Hi  ,
               I am displaying report with ALV grid using,
               'REUSE_ALV_GRID_DISPLAY'.
               My requirement is that I don't want to print some fields which are appering in grid display.
               Is there any field exists to maintain by which printing of some of fields could be avoided ?
    Thanks in advance.
    Amit

    hi,
    in the field catalog there is a field no_out, set this to 'X' for each of the fields you do not want to display.
    Eg: loop at i_fieldcatalog into ws_fcat.
            case ws_fcat-fieldname.
             when 'MEINS'.
                      ws_fcat-no_out = 'X'.
             when 'LTEXT'.
                      ws_fcat-no_out = 'X'.
           endcase.
           modify i_fieldcatalog from ws_fcat.
           clear ws_fcat.
         endloop.
    regards
    Subramanian

  • I edited some photos..  gave them to my sister and she cant open them.. she wants to print them.. is there a way to help her?

    I wanted to upload some of my photos to costco.. they are MY photos.. I edited with photoshop elements 11... and i cant up load.. HELP... did i do something..  can I even print them.?  am i too dang dumb to figure it out.? im frusterated...  can you help me?

    After you finished editing the pictures, go to File>save as. For the file format, select JPEG. Save the pictures in a folder on your desktop.
    Proceed to upload them to Costgo from the desktop folder.

  • I want to use some Greek letters.  I found the font "Symbols" which  shows what I want but I cannot print in it.  I can print in all the other fonts.

    I want to use some Greek letters.  I found the font "Symbols" which  shows what I want but I cannot print in it.  I can print in all the other fonts.  What can I do?

    To type Greek, go to system preferences/language & text/input sources and check the box for Greek, plus the box for Show Input Menu in Menu Bar, plus the box for Keyboard Viewer.  The select Greek from the "flag" menu at the top right of the screen and type.  Select Keyboard Viewer from the same menu to see which key does what.  Do not worry about the font, that is taken care of automatically.

  • My failed solutions to print a string. Some ideas, however...

    Dear,
    I do need to print some basic string out of a collection from Siena.
    Now, being the print task not supported, I thought on four solutions:
    1) launch the mail app with the string, then print the mail;
    2) generate a data-uri, then launch within the browser. But IE does not seem to support it and Siena won't launch anything without a protocol like HTTP or mailto;
    3) open the app in Visual Studio for Windows and add a print function in JS. But I didn't understand where the HTML is formed (Siena should be html+css+js) and where the element <button> is defined
    4) take a screenshot and print from the images gallery
    Now, the solution 1 and 4 are not really great... while 2) and 3) do not help me. Maybe the solution 3) would be doable.
    I am going to investigate Google Cloud Print (they have web services) or ePrint from HP (although they seem to allow Printing of attached files and not email body).
    But, however, seeing all the files of my project, having access to the code, could you address me where to change, for instance, the action of a button, just to change it to a function to print a string, later in VS?
    Or, simply, has anyone a workaround to print a string, or to open a browser with a in-Siena-created string as content (like data-uri should do)?
    Obviosuly I could write a PHP/ASP web service of my own, but I would like that the app does not require the internet connection to work.
    Thank you very much!
    Fabio

    I'm curious about this, too -
    In addition, I'm hoping to add a File Picker because I don't believe this is yet availabe in Siena.
    Thor

  • PS CS4 wants a printer installed even though I can print some files.

    I have PS CS4 on Windows 7. I can print some files but not all. On the ones that I can't print PS is telling me I need to install a printer 1st even though I can printer others. I have tried to rasterize and/or flatten the files and it still says the same thing. I have created a new preferences file, by renaming the old in my program files,  and it still does the same thing. I have also printed the same photos in Microsoft Picture Viewer. So, the printer can see the file and print it. It's a Brother MFC 9460cdn.  I've used the troubleshooting guide thus far and done all i thought or seemed pertinant - except.... As a newbie, I've not not figured out how to create a new file to copy the rasterized, or layers for that matter, to a new project. I can't seem to figure out size settings and duplicating.  These are files that came with a business and for some reason only about half will print the other are stuck needing a printer installed...LOL
    Please HELP
    Thank you,

    Hi timcasey-
    I recommend you read this Support article on troubleshooting printing issues:
    [[Firefox prints incorrectly]]
    Hope that helps.

  • Printing some text on A4 size paper

    Hi friends, I am trying to print a simple text on my printer using java, I have included the code for printing in an action event of
    a button as follows:
    private void sim_printActionPerformed(java.awt.event.ActionEvent evt) {
    PrintJob pjob = getToolkit().getPrintJob(this,"ppk",(Properties)null);
    Graphics pg = pjob.getGraphics();
    Font times = new Font("arial",Font.PLAIN,12);
    pjob.getPageDimension();
    pg.setFont(times);
    FontMetrics tm = pg.getFontMetrics(times);
    pg.drawString("Hello World",20,20);
    pg.dispose();
    pjob.end();
    it works well for the first time when i click the button, when i repeat once again I receive a list of null pointer exceptions and there are no further printouts. Please tell me how to get print copies whenever I click the button at any time. Also suggest me some more examples if any, My aim is only to print the data entered by the user in the text boxes.
    thanks in advance.
    Message was edited by:
    prasad_khode
    Message was edited by:
    prasad_khode

    After trying variuos things I wrote another program to understand the problem, Now the program is as follows
    package sample;
    import java.awt.*;
    import java.awt.print.*;
    public class SamplePrint implements Printable {
    static public void main(String args[]) {
    PrinterJob pjob = PrinterJob.getPrinterJob();
    Book book = new Book();
    book.append(new SamplePrint(), new PageFormat());
    pjob.setPageable(book);
    boolean if_print = pjob.printDialog();
    if (if_print) {
    try {
    pjob.print();
    } catch (PrinterException e) {
    System.err.println("Printing error: " + e);
    public int print(Graphics g, PageFormat format, int pageIndex) {
    g.drawString("Hello world",100,100);
    return Printable.PAGE_EXISTS;
    The program works fine only once that is first time after starting the system and I get the required output on the paper. But while executing the same program once again the exception is raised, that is as follows.
    �Printing Error: java.awt.print.PrinterException: Printer is not accepting job.�.
    If I want another print copy I have to restart the PC and the same thing continues. The following information might help you on which I am experimeting.
    OS: Win XP.
    Jdk1.5
    Printer: HP Deskjet 3940.
    Any help is greatly appreciated.

  • Print a string on a specific printer

    Hello everyone,
    I need some help.
    I have to print a string in LabView. Previously the method used was to set on the option "Automatically print front panel every time VI completes execution" in the Print Options of the VI Properties.
    Now, however, I should dynamically select the printer on which to print this string. The printer name is dynamically loaded from a text file.
    Actually I'm trying to use the Print Report function (Easy Text Report.vi) that works fine, but it creates problems during the compiling: it create 3 folders in the directory where the executable is located (here the folders: NI_HTML, NI_report, NI_Standard Report) with all the VI "in freedom", not compiled but copied in there.
    There are other methods to print a string through the name of the printer, or to solve this problem of creating random folders and VIs?
    Attachments:
    PrintTest.vi ‏9 KB

    Your application does something internally that depends on the VIs being stored flat inside the executable. LabVIEW 8.x layout basicaly creates one flat archive inside the executable with all VIs stored in one level. That means it can not store VI files more than once with the same name. The Report Generatino Tools are however written using LabVIEW OOP which requires VIs to be named the same in order to allow dynamic dispatch.
    If you deselect the LabVIEW 8.x layout option, the VIs are stored inside the executable in the same hierarchical structure as they are on disk in the source code of your application. That allows multple VIs with the same name to be placed inside the executable, but it does make the internal file hierarchy more complex.
    Bsically you have two options:
    1) figure out where in your appliction yoeu depend on internal paths of VIs to be in a flat order. Most likely this are Current VI path nodes that your application uses to strip twice a path element to find the directory in which the executable is located, for instance to find configuration files or similar. Replace this legacy code construct with an Application Directory property which will return the directory your executable is in rspectively the directory of your project file when you run your app in the devlopment environment.
    2) Live with the extra files outside of your executable!
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • If NO_DATA_FOUND then want to print message instead layout

    The report has dynamic query, which is built on base of parameters passed by USER at run-time.
    Suppose if no data is returned for that query, (1)how can I avoid printing regular titles and (2) print some other message saying data is not found.
    Thanks,
    Nirav

    On your data model, create a report-level summary column that counts some column in your report. Then, on the layout model, create a boilerplate text containing the message that you want displayed when there are no records fetched. Then create a format trigger for the boilerplate that suppresses it when there are records, but displays it when there aren't. ex:
    if :summary_column is null then
    return true;
    else
    return false;
    end if;

  • How do I specify that I just want to print pg 1 to 2 not the rest of doc

    I'm new to apple and not sure how I specify which pages to
    print there doesn't seem to be a print preview in the sense I
    can specify and define what I want to print of a document.
    I found the 'grab' feature/crosshairs to locate on a portion of
    a page so I can print a portion of one page yet doesn't give me
    a range selector to specifically set it to certain no. of pages.
    Even if I have two page document I like to have the control
    to print one page so i can turn page over and print the 2nd
    page of a document versus having a bunch of one sided
    printed pages. Is there a double side print feature? Where do I
    find these settings in the Leopard 10.5 o/sys? Intuitively I'd think
    File print yet I wasn't able to come up with it as yet?

    When the print dialog box comes up, the default looks pretty small. However, there is a button that looks like a triangle next to the pull down menu where it says "Printer:". This will give you some more options, including being able to print pages in a specific range.
    Should say Pages: From # to #.

  • Firefox "print" prints some text on top of other text. How can I fix it?

    I want to print a webpage with a travel itinerary on it. The itinerary is quite long, exceeds the page height and overflows onto the next page. Unfortunately the information below the itinerary is then printed on top of the itinerary information on the overflow page.
    I have tried the same page in Chrome, Safari and IE 10 and it prints correctly in all of them.
    I use a css (print.css media='print') to control some of the print output.
    Can anyone help please?
    Application Basics
    Name: Firefox
    Version: 24.0
    User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0
    Extensions
    Name: DownloadHelper
    Version: 4.9.14
    Enabled: true
    ID: {b9db16a4-6edc-47ec-a1f4-b86292ed211d}
    Name: easy Xdebug
    Version: 1.5
    Enabled: true
    ID: [email protected]
    Name: Firebug
    Version: 1.11.2
    Enabled: true
    ID: [email protected]
    Name: Live HTTP headers
    Version: 0.17
    Enabled: true
    ID: {8f8fe09b-0bd3-4470-bc1b-8cad42b8203a}
    Name: Page Speed
    Version: 1.12.9
    Enabled: true
    ID: {e3f6c2cc-d8db-498c-af6c-499fb211db97}
    Name: DivX Plus Web Player HTML5 <video>
    Version: 2.1.2.145
    Enabled: false
    ID: {23fcfd51-4958-4f00-80a3-ae97e717ed8b}
    Name: FreeHDSport.TV
    Version: 1.2
    Enabled: false
    ID: [email protected]
    Name: Translate This!
    Version: 2.0
    Enabled: false
    ID: jid0-k75TfRGfOXPHfEZmJ9cKu5eCgLc@jetpack
    Important Modified Preferences
    accessibility.typeaheadfind: true
    accessibility.typeaheadfind.flashBar: 0
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size_cached_value: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.places.smartBookmarksVersion: 4
    browser.startup.homepage_override.buildID: 20130910160258
    browser.startup.homepage_override.mstone: 24.0
    dom.mozApps.used: true
    dom.w3c_touch_events.expose: false
    extensions.lastAppVersion: 24.0
    gfx.blacklist.webgl.msaa: 4
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1382955114
    places.history.expiration.transient_current_max_pages: 104858
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    plugin.state.ovshelper: 0
    print.macosx.pagesetup-2: PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHBsaXN0IFBVQkxJQyAiLS8vQXBwbGUvL0RURCBQTElTVCAxLjAvL0VO
    print.print_bgcolor: false
    print.print_bgimages: false
    print.print_colorspace:
    print.print_command:
    print.print_downloadfonts: false
    print.print_duplex: 0
    print.print_evenpages: true
    print.print_in_color: true
    print.print_margin_bottom: 0.5
    print.print_margin_left: 0.5
    print.print_margin_right: 0.5
    print.print_margin_top: 0.5
    print.print_oddpages: true
    print.print_orientation: 0
    print.print_page_delay: 50
    print.print_paper_data: 0
    print.print_paper_height: 11.00
    print.print_paper_name:
    print.print_paper_size_type: 1
    print.print_paper_size_unit: 0
    print.print_paper_width: 8.50
    print.print_plex_name:
    print.print_resolution: 0
    print.print_resolution_name:
    print.print_reversed: false
    print.print_scaling: 1.00
    print.print_shrink_to_fit: true
    print.print_to_file: false
    print.print_unwriteable_margin_bottom: 57
    print.print_unwriteable_margin_left: 25
    print.print_unwriteable_margin_right: 25
    print.print_unwriteable_margin_top: 25
    privacy.cpd.offlineApps: true
    privacy.cpd.siteSettings: true
    privacy.donottrackheader.enabled: true
    privacy.sanitize.migrateFx3Prefs: true
    privacy.sanitize.timeSpan: 0
    security.csp.enable: false
    security.OCSP.enabled: 0
    security.warn_viewing_mixed: false
    storage.vacuum.last.index: 1
    storage.vacuum.last.places.sqlite: 1381489144
    user.js Preferences
    Your profile folder contains a user.js file, which includes preferences that were not created by Firefox.
    Graphics
    Device ID: 0x fd5
    GPU Accelerated Windows: 1/1 OpenGL
    Vendor ID: 0x10de
    WebGL Renderer: NVIDIA Corporation -- NVIDIA GeForce GT 650M OpenGL Engine
    windowLayerManagerRemote: false
    AzureCanvasBackend: quartz
    AzureContentBackend: none
    AzureFallbackCanvasBackend: none
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10
    Version in use: 4.10
    NSS
    Expected minimum version: 3.15.1 Basic ECC
    Version in use: 3.15.1 Basic ECC
    NSSSMIME
    Expected minimum version: 3.15.1 Basic ECC
    Version in use: 3.15.1 Basic ECC
    NSSSSL
    Expected minimum version: 3.15.1 Basic ECC
    Version in use: 3.15.1 Basic ECC
    NSSUTIL
    Expected minimum version: 3.15.1
    Version in use: 3.15.1

    Hi midnig-
    I found this article on troubleshooting print issues:
    http://mzl.la/MCCq7H
    I see that you have covered some of the basic troubleshooting tips- but you might try resetting the printer. Here are some other suggestions:
    - If you have made changes to Advanced font settings like increasing the minimum/default font size then try the default minimum setting "none" and the default font size 16 in case the current setting is causing problems.
    - Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow pages to choose their own fonts.
    - Tools > Options > Content : Fonts & Colors > Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"
    It is better not to increase the minimum font size, but to use an extension to set the default page zoom to prevent issues with text not being displayed properly.
    - You can use an extension to set a default font size and page zoom on web pages.
    Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • While saving a pdf file opened by foxit reader, the filename will be some strings

    '''''i opened a pdf file in firefox with foxit reader, the filename was ,for
    example, ol20120327.pdf, and i click the save and i got i file , the filename just some strings , not the real name. It really bothers me for a long time. ps: while in ie, maxhon ,they got the right name.
    i don't want change my default browser; i love firefox. i hope the problem would be solved. Thanks a lot''.'''

    try adobe reader

Maybe you are looking for

  • How to restore new mac book from time machine

    i curentley have a mac book and am planing on upgrading to a pro but i have to sell this one first. can i restore my new mac pro using the time machine backup from this mac book or is there another way i have to do this being as i wont have both lapt

  • Event 03 in table maintenance generator

    Hello All, I have created a event 03 in table maintenance generator. Because I need to check if the deleted key is still referenced in an other table. I tried the following code, but only if I use the message the entry will not be deleted.   MOVE ueb

  • Joining tables : Smart Access Connection

    Here's my scenario... I have data from 1 system existing as standard HANA tables. I have data from a second system, coming into HANA as a Smart Access Connection. My task is to build queries against each system's tables to obtain relevant data from e

  • How do I change the color of the desktop fonts from white to black?

    How do I change the color of the fonts on the desktop to black?

  • Deploying my first servlet in tomcat

    I have HTML form using get method as below <HR><FORM method="GET" action="http://localhost:8080/Project/Formservlet"> and the Formservlet is in project/Web-INF/classes web.xml is in project/Web-INF set the context to Project directory in server.xml T