How to build an ObjectName pattern to list all objs of type=ServerConnector

Hi,
I would like to list all the MX objects of type=ServerConnector. How to build the pattern?
The example below doesn't work (with pattern: resin:type=ServerConnector").
It works when I want to list all objects and use pattern ("resin:*") or when I choose a specific ("resin:type=ServerConnector,name=b");
Thanks for any advice,
Ala
{code}
Object Name pattern = new ObjectName("resin:type=ServerConnector");
MBeanServer mBeanServer = Jmx.getGlobalMBeanServer();
Set poolNames = mBeanServer.queryNames(pattern, null);
{code}
And here all listed MX objects:
resin:type=SessionManager,Host=default,WebApp=/
resin:type=ServerConnector,name=i
resin:type=ServerConnector,name=h
resin:type=ServerConnector,name=b
resin:type=Resin
resin:type=ServerConnector,name=j
resin:type=ProxyCache
resin:type=Host,name=default
resin:type=ServerConnector,name=c
resin:type=ServerConnector,name=e
resin:type=Port,name=192.68.1.50-6802
resin:type=ServerConnector,name=g
resin:type=ServerConnector,name=a
resin:type=ThreadPool
resin:type=WebApp,Host=default,name=/
resin:type=WebApp,Host=default,name=/mya
resin:type=ConnectionPool,Host=default,WebApp=/mya,name=jdbc/mya
resin:type=ServerConnector,name=f
resin:type=Cluster,name=cluster1
resin:type=ServerConnector,name=d
resin:type=SessionManager,Host=default,WebApp=/mya
resin:type=Server

You need to add a comma and asterisk to your pattern:
Object Name pattern = new ObjectName("resin:type=ServerConnector,*");The pattern you are using will only match a single MBean with that exact name. There has to be an asterisk in the string in order for it to match like-named MBeans which have key/value pairs other than those in the string.
For more on this, search in this javadoc for the string "property pattern":
http://java.sun.com/j2se/1.5.0/docs/api/javax/management/ObjectName.html

Similar Messages

  • How to Build an Auto-Expanding Select list

    Hi everyone,
    I want to know if it's possible How to Build an Auto-Expanding Select list ?
    I saw some discussions which tell us to use Jquery to acheive this. Is it the only solution ?
    I want a solution that it is easy to implement.
    Thanks in advance. Bye.

    Hi,
    Not sure what you've seen before, but anywhoo:
    In my select list, i set element attributes of :
    style="min-width: 130px"Just because some of the smaller values were getting truncated.
    Then I add this onload javascript code:
    $('#P10_AUTO_EXPANDING').change(function(){
      $(this).width($('option:selected', this).text().length*10)
    })It's not perfect for getting the right size (i.e. i think it increases exponentially, but you can play around with the multiplier)
    Which you can see: http://apex.oracle.com/pls/apex/f?p=45448:10:
    Edited by: trent on Dec 15, 2011 10:35 AM
    Probably best to add this line of code:
    $(this).width($('option:selected', this).text().length*10)
    into a dynamic action for a change event of the item, of which the true action is to execute javascript code.

  • How to build a report on a table containing ORDSYS.ORDIMAGE type?

    Hi
    I build a table with a column of type ORDSYS.ORDIMAGE then I
    build a form using wizard and populate the table by uploading
    intermedia type and I can make query on that form and see the
    image. But when I build a report using wizard, the report result
    shows image data as it is in text format.
    Am I doing something wrong or there is another way to make
    report on ORDSYS.ORDIMAGE column type.
    Thanks.
    bye

    This could be because, you might have the display type as text
    instead of html for this column.
    Could you pls verify this by selecting as html and try running
    the report. If it still not working then pls post your Portal
    Version so that we can verify it out here. Presently, it is
    working fine for me.
    Thanx,
    chetan.

  • How to build a dimension witch has a column with sdo_geometry type

    hello everybody;
    i'm working with owb 11g, i have designed my dimension and also my fact table.
    in the implemnation, i have created (designed, depolyed and populated) successfully some dimenstions without any problems.
    But when i arrived to create a spatial dimension which contains a column with sdo_geometry type, i have the following error;
    Error: ORA-30373: object data types are not supported in this context
    So how can y bypasse this problem.
    Is there any tutorial to "how create spatial dimension with owb"?
    i have googled for a long time but no solution up to now
    any help will be welcome
    Thank you at advance

    Sans,
    I am no Apex expert, but with a situation as "complex" as yours, have you thought about creating a VIEW that joins these 7/8 tables, placing an INSTEAD OF trigger on that view to do all the business logic in the database, and base your application on the view?
    This is the "thick-database" approach that has been gaining momentum of late. The idea is to put your business logic in the database wherever possible, and let the application (Form, Apex, J2EE, whatever) concentrate on UI issues,

  • How to write query to list all the employees of deptno 20

    Hi ,
    I am new to Oracle...Recently I got job.... Could you please help me....
    How to write a query for
    1) List all the Clerks of Deptno 20 and
    2) List the emps along with their exp and whose daily salary is more than 100rs

    its not wrong that you ask , but this is basic question and my suggestion is to start reading some manual specially since you got job , Read oracle documentation gogole what you want if you didn't find any answer post here and we will help you .
    Check this link
    http://www.oracle-dba-online.com/sql/oracle_sql_tutorial.htm
    http://www.w3schools.com/sql/default.asp
    http://www.java2s.com/Tutorial/Oracle/CatalogOracle.htm
    And you will find more & more .. create your own vmware oracle provide with learning database called XE (express edition) test it and hope this information is useful for you

  • How to determine pricing procedure for invoice list

    Hi ,
    Could you pl let me know "How to determine pricing procedure for invoice list"
    All other things are available i.e.
    Create Condition Tables
    Maintain access sequences
    Maintain pricing procedures
    Define condition types
    Basically how the pricing procedure will be assigned for the Invoice list.
    br
    pinky

    Hi Pinky,
    Create a billing doc type by coping std.(ZF1)
    Assign invoice list to billing type Zf1
    Now maintain a document pricing procedure (for Eg: Z )
    Assign this to billing type in pricing control - document pricing procedure.
    Now maintain the pricing procedure determination as per the sales area /doc pp/cust pp.
    Also in copy control in VTFL maintain pricing type as " B".
    REgards,
    Krishna O

  • How do i purchase the whole wish list in one charge to my credit card?

    how do i purchase a whole wish list all at once so there is only one credit charge instead fo 60 individual ones?

    As long as you buy everything in the same day, it should all come up as one charge on your bill.

  • F2 Key - List all of the Tab Pages

    Hi, I am trying to make F2 Key work to list all tab pages for client-server forms, but could not. I am not sure the F2 key feature for forms 6i is only for web forms or it works for client-server forms as well. The version of the 6i is:
    Forms [32 Bit] Version 6.0.8.18.3 (Production)
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    JServer Release 8.1.7.0.0 - Production
    Here is the help from Form builder 6i:
    New ability to list all tab pages
    A new key, called List Tab Pages (corresponding to the F2 key), has been added to the tab canvas functionality.
    If the end users press this key, they are shown a pop-down list of all the tab-page names for that canvas. From this list, they can pick the tab-page that they want to activate.
    This feature is handy in those cases where there are so many tabs for the canvas that not all can appear simultaneously.
    Please help!
    Thanks,
    LL

    I use Forms [32 Bit] Verzia 6.0.8.17.1 (Produkcia) and there is no F2 key. Do you see F2 key if you press CTRL+F1 ?

  • List all DataTypes in Integration Repository

    Hi all,
    is there a way I can get a list of all my datatypes (from all SWCV and all namespaces)?
    thanks!
    roberti

    Waldemar,
    Yes you can. If you want to look all your data types in particular Software component then do the following.
    -Right click on Software component and click Export
    -Let the Transport mode be either CMS or File Transport
    -Click Continue
    -In Select Object (Objects Set -Choose Individual Objects)
    - Down You can see help icon . Click that
    - Now in the drop down choose Data type.
    - Now it will list all the data types in the SWCV.
    <b>Note:</b> Please don't click Finish unless you want to export those objects.
    Best regards,
    raj.

  • Getting list of Sales condition types based on matnr , vkorg,vtweg

    Hi ,
               I would like to know if there are any FM that retrieve condition values similar to transaction:VK13 based on access sequence.What I mean by access sequence is if there are no records maintained for the first key combination then it should search for the next key combination until a condition value exist.
    I have all the mandatory information like VKORG,VTWEG,MATNR,VKGRP..etc similar to VK13
    for all the key combinations of VK13.
    i tried using FM's
       WV_KOMK_FILL_V
       WV_KOMP_FILL_V
       CONDITION_RECORD_READ
       SALES_PRICE_COND_TYPE_GET
       PRICING_GET_CONDITIONS
       PRICING_LOAD_CONDITION_TYPS
      SD_COND_TYPES_OF_PRICING_PROC
      WB2_SD_MAUNAL_PRICING_COND_GET
    CONDITION_TYPS_FOR_PRICING
    SALES_PRICE_CALCULATE_01
    SD_COND_AUTH_CHECK
    SD_GET_ALL_CONDTYPE_FROM_KOTAB
      But i couldn't get the solution . Plz guide me in using these FM's  in which order.
      My input will be MATNR(Article Number),Sales Organisation(VKORG),Division(VTWEG),Customer(kunnr) .
    I want to list all the condition types . 
    Thanks in advance .
    Regards,
    S.Sivakumar
    Edited by: sivakumar subramaniam on Oct 31, 2009 4:29 PM

    You can try the function : SD_CONDITION_TIME_INTERVAL_GET
    This func reture condition records and types:
          KOMG-VKORG = P_VKORG.
          KOMG-VTWEG = P_VTWEG.
          KOMG-MATNR = P_MATNR.
          KOMG-VKGRP = P_VKGRP.
          CALL FUNCTION 'SD_CONDITION_TIME_INTERVAL_GET'
            EXPORTING
              KOMG_I      = KOMG
              DATVO_I     = S_DATAB-LOW
              DATBI_I     = S_DATAB-HIGH
            TABLES
              PERIODS_TAB = GT_PREDATE
              KSCHL_TAB   = GT_TKSCH
            EXCEPTIONS
              OTHERS      = 1.
          READ TABLE GT_PREDATE INDEX 1.
          CHECK SY-SUBRC = 0.
          LOOP AT GT_PREDATE.
            SELECT SINGLE H~ERNAM H~ERDAT P~KBETR
                INTO (GT_ITAB-ERNAM, GT_ITAB-ERDAT,GT_ITAB-KBETR)
                FROM KONH AS H
                JOIN KONP AS P
                  ON P~KNUMH = H~KNUMH
               WHERE H~KNUMH = GT_PREDATE-KNUMH.
            APPEND GT_ITAB.
          ENDLOOP.
    Edited by: Song Huang on Jan 20, 2010 11:46 AM

  • How  to build jdbc-jsr 169

    Hi,
    I read some instuctions about how to build jdbc-jsr 169 but I could not understand them. Can somebody tell me in details how to build and where to put it?
    I am tring to connect cdc app with derby 10.1.
    Thanks.
    Regards,
    tron

    You need to add a comma and asterisk to your pattern:
    Object Name pattern = new ObjectName("resin:type=ServerConnector,*");The pattern you are using will only match a single MBean with that exact name. There has to be an asterisk in the string in order for it to match like-named MBeans which have key/value pairs other than those in the string.
    For more on this, search in this javadoc for the string "property pattern":
    http://java.sun.com/j2se/1.5.0/docs/api/javax/management/ObjectName.html

  • How to get total value from checkbox list?

    I have a list of checkbox items - all number values. I want to then get the total value from all of the check items and add that value to the database. Can this be done?
    Also, anyone know of one source where I can get detailed information on how to best use Web Apps and all of it's possibilities and limitations? Most of the tutorials that I have seen so far say that you can do most anything with Web Apps; however, the tutorial examples leave a lot of questions unanswered. I saw that Adobe has an article that shows how to build a basic web app and that it is "part 1" in a series. Anyone know where to find parts 2, 3, etc?
    Thanks,

    Hi there,
    Good day, i hope this will give you some ideas
    for example this is your html
    <input type="checkbox" name="test" value="1">1
    <input type="checkbox" name="test" value="2">2
    <input type="checkbox" name="test" value="3">3
    <input type="checkbox" name="test" value="4">4
    and this is your jquery script
    <script type="text/javascript">
    jQuery("input@[name='test']").click(function() {
        var istrue = jQuery(this).is(":checked");
        if(istrue == true) {
            var urvalue = jQuery(this).val();
            alert(urvalue);
    </script>
    hope this helps you

  • How to build a search engine in the database?

    Hi there,
    say I have 3 tables:
    1. Table_empl: idEmpl, fname, lname, dob...
    2. table_department: idDpartment, idEmpl, departmentName, section...
    3. table_fligths: idFlight, idEmapl, departure date, destination, carrier...I would like to provide the end-user a text box (in my GUI) where he can write whatever he would like to get info about. If, for example, he'll write: british-airways, I expect the system to search everything in the db that matches this input.
    Question: How can I design such a search engine that retrieve information from every possible table in the db with reference to every column.
    thanks for any pointers

    thanks darted for your reply. so what do you recommend? should i give the end user all names of tables and columns and ask him to choose from the list and than build a query based on that?
    this is optional but i'd rather have one exec button and to return all possible results from the db. if (in the example i provided) it found 'british airways' in the carrier - than that a result. if it founds 'british' in the lname of table_emple - that's another result. so the output should be something like:
    found 2 matches:
    1. british airways, 10/10/2006, LHR
    2. British, John, 12/01/63,
    any idea how to build that?

  • How to build a query based on(UNION) 3 vendor InfoObject

    Dear Experts:
    I have a requirement to build one query based on 3 vendor InfoObjct: 0VENDOR + 0VEN_COMPC + 0VEN_PURORG.
    I tried to build a multiprovider upon these 3 infoobjects, but when I Identify(Assign) the key for each InfoObject, supposely there should be 3 InfoObject for me to check (0VENDOR, 0VEN_COMPC and 0VEN_PURORG) so that I can UNION these 3 infoobjects together on vendor number. But since the reference infoobject of these 3 vendor master data is different, I can not check the 3 together.
    Can anybody let me know how to build that query? I only need vendor number show once, and the attributes of 0VEN_COMPC and 0VEN_PURORG can be union to 0vENDOR.
    Any post would be appreciated and thank you all in advance!
    Best Regards!
    Tim

    Hi,
    you can create a link between the vendor objects itself, means link 0vendor with 0ven_compc and 0ven_purorg. This should give you a list of all vendors multiplied with the comp codes multiplied with the purch. org. May be here it is possible to create another link between a attribute (eg. comp_code of 0ven_purorg with comp_code of 0ven_compc). In case it is not possible you need to add this link information somehow. Another option might be to create 2 queries. One on a infoset of 0vendor and 0ven_purorg and another one on 0vendor and 0ven_compc.
    regards
    Siggi

  • How to build a query dynamically....

    hi...i want to build a query dynamically. i don't want to build query by using string buffer. i want to create it directly by using sql query itself.
    my situation is like this....i have four drop down list in a page. The user can search the things based on one or two or three or four selected values.
    how to build a query for this kind of situation....pls let me know.
    Edited by: success_shiva6mca on Mar 3, 2008 12:39 PM

    there are two problems with building sql directly.
    1. it allows sql injection
    2.it allows XSS
    google them and you will understand if you dont already.
    I will recoment catching the values and using preparedStatements

Maybe you are looking for

  • Appointments in BB won't sync to Outlook / duplicates

    HI all I have two questions. 1. I have a number of appointments on the BB which don't transfer to Outlook when I sync. I have tried adding text to the comments to try to trigger a sync (as it's changed) but it makes no difference. Any ideas? 2. I hav

  • Using Standard text in scripts

    Hi all, I had a problem while printing standard texts in scripts. I Know how to print standard text if we have to print it from the begining of window using INCLUDE &T024E-TXADR& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS& PAR But my problem id i have

  • Ipad is connected to my wifi hotspot but will not connect

    hello so i have recenly moved to a new appartment, and the complex provides the internet thru a adsl cable, i buy the weekly subscription for the internet, i guess a bit like at the airport where u buy it for an hour ec. i have tried several times to

  • Gallery image size strangeness

    My link: http://squarehead.myvnc.com/sbliss/ The illustration gallery works fine, all the time. The photos gallery, however, doesn't properly size the images. Example: Switch to photos, select second photo (with seagull), it extends beyond the contai

  • User management and Access Control in HCM Cloud

    Hello, Information is scarce about User management and Access Control in Oracle Cloud generally. Today, I have two questions : - How can I bridge HCM Cloud user store with my on-premise IDM or security repository in order to allow identty governance