Helps to create a queue using JMX

Hello!
I use OpenMQ, and try to query all queues in a broker.
First of all, I would like to create a queue, so I can get it back later, after some research, I came to this code:

HashMap environment = new HashMap();
String [] powers = new String() {'user', 'pass'};
JMXServiceURL url = new JMXServiceURL ("service: jmx:rmi://IAI82180.tis:8686/jndi/rmi://IAI82180.tis:8686/jmxrmi"); ")
JMXConnector jmxc = JMXConnectorFactory.connect (url, environment);
MBeanServerConnection fairs = jmxc.getMBeanServerConnection ();
String brokerNameQuery = "org.apache.openmq:BrokerName = localhost, Type = Broker";
String addQueueOperationName = "addQueue";
Object [] params = {"myQueue"};
String [] sig = {"java.lang.String"};

BrokerObjName ObjectName = new ObjectName (brokerNameQuery);
MBSC. Invoke (brokerObjName, addQueueOperationName, params, GIS);

But I get the error:

Exception in thread "main" javax.management.InstanceNotFoundException: org.apache.openmq:BrokerName = localhost, Type = Broker

Also, I went to the control panel and manually added a broker, but it does not solve the problem.

I guess that the problem is in this string: org.apache.openmq:BrokerName = localhost, Type = Broker, that I adapted from the example I found.

Could someone help me, please?

Thank you
Oscar

The JMS specification does not define a management API. The JMX API provided by ActiveMQ and Open queue messages are non-standard and different.

Nigel

Tags: Oracle

Similar Questions

  • Need help to create and then using stored credentials

    I'm looking to automate several scripts to use the

    storage of credentials for script of Alans vCheck

    This post is exactly what I would do:

    # # Save the credentials of the Bank of VI credentials once
    Se connect-VIServer -Server myVC0.domain.com -Credential ()Get-Credential domain\user0() -SaveCredentials

    You could also add the elements of the VI credentials store using the New-VICredentialStoreItem cmdlet.  Using this cmdlet looks like:

    # # Add the credentials to the store
    New-VICredentialStoreItem -Host myVC0.domain.com -user domain\user0 -password supersecretpass

    I'm looking for a way to run my scripts PowerCLI by selecting a VC and calling the - user and - password. I don't know what format to create this? This is what I call the Victoria Cross.

    [CmdletBinding()]

    (param
    [Parameter (Position = 0, mandatory = $true)]
    [System.String]
    $VirtualCenterServer,
    [Parameter (Position = 1)]
    [System.String]
    $ClusterName,
    [Parameter (Position = 2)]
    [System.Boolean]
    $asLocalUser = $true
    )

    $user = C:\vmware\user.txt (not sure what type of file is needed)

    $password = C:\vmware\password.txt (not sure what type of file is needed)

    New-VICredentialStoreItem -Server $VirtualCenterServer -user $user -password $password


    before calling the script/scripts for the - user and - password
    SE connect-VIServer-Server $VirtualCenterServer - user $user-Password $password | Out-Null

    The release of the new VICredentialStoreItem is an XML file.

    You can use the store credenial as follows

    # Save

    New-VICredentialStoreItem-host $VirtualCenterServer - User Admin - password pass - file C:\cred.xml

    # Callback & use

    $cred = get-VICredentialStoreItem-User admin-host $VirtualCenterServer - file C:\cred.xml

    SE connect-VIServer-Server $cred. Home - user $cred. Username-password $cred. Password | Out-Null

  • helps to create a path using variables.

    Hello

    I; m trying to create a path to a movievclip created with attachMovie. I need tio create the path by using the variable:

    _root.var1.var2.gotoAndPlay ("Something");

    How can I tell flash that var1, var2, etc. are variable and not a relative path?

    TKS,

    rootTimeline = _root;

    You can set var1 and var2 on what you like.

    var1 = "mc2";
    var2 = "mc3".

    rootTimeline [var1] [var2] .gotoAndPlay ("something");

    I think that's what you wanted to do?

  • Help to create the view - error: ORA-00955: name is already used by an existing object

    Hello

    I am trying to create the following view but sqlplus displays a message and point of view has not been created. I use 11g Express.

    SQL > create view (client, f_pedido, total) orders as

    2     (

    3 select usr, date, sum (rising) as important

    4 of

    5             (

    6 select lineas_any.usuario as usr, lineas_any.fecha_pedido as date, lineas_any.cantidad * as rising referencia.precio

    7 of lineas_any

    inner join 8

    referencia 9

    10 on lineas_any.referencia = referencia.codbarras

    11             )

    Group 12 by usr, date

    13)

    14 order by date asc, usr;

    of lineas_any

    *

    ERROR on line 7:

    ORA-00955: name is already used by an existing object

    There are also descriptions of the two tables involved:

    SQL > describe lineas_any

    Name                                          Null?    Type

    ------------------------------------------------------ -----------------

    USER NOT NULL VARCHAR2 (60)

    FECHA_PEDIDO NOT NULL DATE

    REFERENCIA NOT NULL VARCHAR2 (15)

    AMOUNT NUMBER (2)

    SQL > describe referencia

    Name                                          Null?    Type

    ------------------------------------------------------ -----------------

    CODBARRAS NOT NULL VARCHAR2 (15)

    PRODUCT NOT NULL VARCHAR2 (50)

    FORMATO NOT NULL VARCHAR2 (20)

    SILTING NOT NULL VARCHAR2 (15)

    PRECIO NOT NULL NUMBER (7.2)

    STOCK NUMBER (5) NOT NULL

    MIN_STOCK NOT NULL NUMBER (5)

    MAX_STOCK NOT NULL NUMBER (5)

    Please, could someone help me in this matter?

    Thanks in advance.

    Kind regards

    It means that it is already an object named peridos. Question:

    Select object_type from user_objects where object_name = 'PERIDOS;

    to find out what type of object it is. Any chance you try to change the existing definition of peridos view? If so, use

    CREATE or REPLACE view orders (customer, f_pedido, total) as...

    SY.

  • Need help to create using the CLI power user ID

    Hello

    I am creating the ID using pslink.exe in CLI power, I get the error message or

    Server a command exit status 2
    use: useradd [u uid [-o]] [-g group] [-group g,...]
    [d home] [- s Shell] [-c review] [m [-model k]]
    [inactive f] [EI expire] [Pei passwd] [-M]. [-n]. [-r]. [- l] nam
    useradd-d [-g group] [b basis] [-s Shell]
    [inactive f] [EI expire]

    This is the script

    Get-VMHost | %{
    $User = "root".
    $Pswd = "xxxxxx".


    $plink = "C:\Progra~1\PuTTY\plink.exe".
    $plinkoptions = ""--v - lot - pw $Pswd ""
    $cmd1 = 'useradd u 10001 - G wheel s/bin/bash-d/home/xxxxx m Pei xxxxxx - c "xxxxxx" XXXXXX ".

    $remoteCommand = ""'+ $cmd1 + "'"
    $command = $plink + "" + $plinkoptions + "" + $User + '@' + $_.NAME + "" + $remoteCommand


    $msg = expression invoke-command $command

    }

    Help on this

    Why not use the New-VMHostAccount cmdlet? Something like:

    New-VMHostAccount-Id 1001 - password TopSecret-Description "user 1001' - UserAccount - AssignGroups - wheel GrantShellAccess.

  • Trying to create a certificate using the keytool - help!

    Hi, I followed a set of instructions using Terminal Server to create a certificate. Terminal has produced a file and when I open it using text edit its about 20 lines long of a code value. I was hoping that it would provide a certificate that I could use. Maybe there, I don't know what I was looking for!

    Im working in the viewer generator and I am tab Provisioning trying to get into the "ID of the Application.

    I'm totally stuck here. Help, please!

    For more information about creating certificates and mobileprovision file, see the Companion Guide PDF edition iPad.

    You are a customer company DPS?

    You create company signed construction app?

    In the affirmative, please follow link below:

    http://help.Adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f6063be51521300070dc55-80 00.primeras html

  • I do my job to the computer on a MAC computer. I want to create a document using Pages and then convert the document to PDF and send a group email. I want to send the PDF using the pdf for each receiver icon must click the icon to open t

    I do my job to the computer on a MAC book PRO. I want to create a document using Pages and then convert the document to PDF and send a group email. I want to send the PDF using the pdf for each receiver icon must click the icon to open the document. My problem is the document does not show the icon, but rather the document is already open. I spoke with 2 Apple. 'Experts' care and can help me. Can someone tell me what to do?

    It's a question of how the recipients e-mail programs deal with attachments. Many e-mail programs will open all the files they can handle, including files jpg and PDF, by default, and if the recipient has not changed that there is nothing you can do about it. The only solution is to the compress first, then it will be delivered as an attachment, allowing the recipient to decompress and open it.

  • Hi, I recently bought numbers in order to create a commercial newspaper. I'm the pen and paper. I need help to create a formula. A purchase column determines if the entry price column is subtracted from the price of output column or output subtracted

    Hi, I recently bought numbers in order to create a commercial newspaper. I'm the pen and paper. I need help to create a formula. A purchase column; Determines if the entry price column is subtracted from the price of output column (buy) or subtracted from (Sell) entry exit. Thank you for your help

    Hi B',.

    Buying and selling in column B

    Price of entry in column c.

    Exit in column D price

    Formula (and outcome) in column E

    If the column will B always contained 'Buy' or 'Sell', it works. It is default to a calculation of 'sell' if sale or has been specified.

    E2: = IF (B = "Buy", D - C, C - D)

    If you want to delay the calculation until the amounts entered in C and D, use this version:

    E2: = IF (OR (LEN (C) < 1, LEN (D) < 1,"", IF (B = "Buy", D - C, C - D) ")

    If you want to delay the calculation until all three ducks are on a line (B contains buy or sell, C and D contain both data), use this version:

    E2: = IF (OR (LEN (C) < 1, LEN (D) < 1,"", IF (B = "Buy", D - C, IF(B="Sell",C-D,) "" ")))

    Third version used in this table.

    Kind regards

    Barry

  • With the help of DataFileLoad within a use

    Hello

    When you import files of type *.7d7 using the existing use, some of the proparties are not loaded correctly. I tried to fix this by creating a new use. Given that I do not have access to the file format (and I don't really want to write the plugin from scratch) I tried to use the existing plugin and then clean the proparties loaded.

    Is it possible to use DataFileLoad inside the use vbs file? I get an error saying "Variable is undefined: «DataFileLoad»»

    Also, I tried to use the msgbox inside the use as a way easy to debug but is became a ' permission denied: "msgbox" "error."

    Thanks for the help.

    Hi Denis,.

    It is possible in a use VBScript to open an object file with the path of the data file.

    Set file = OpenFile (DataFilePath)

    It is possible in a use VBScript to open a store object with the path of the data file and the name of the use to use.

    Set store = OpenStore (DataFilePath, DataPluginName)

    It is NOT possible to make the function calls or variable reads/writes that are part of the DIAdem VBScript host (i.e. what normally run you in the SCRIPT Panel), because a series of VBScript in a VBScript use separate host that is embedded in ICU who has none of these orders or added variables.  Remember that VBScript DataPlugins can also be run on a computer that has LabVIEW on it.

    VBScript MsgBox and InputBox controls are also NOT allowed in a VBScript use because they would hang the DataFinder when trying to index the files of data headlessly.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit

    Hello

    How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit?

    I'm transferring a 32-bit application on 64-bit.  In visual Studio, I added the 64-bit project configuration.  He compiled the source very well but the reports link errors:

    error LNK2019: unresolved external symbol DAQmxReadAnalogF64 referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateAIVoltageChan referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxReadDigitalLines referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDIChan referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxWriteDigitalLines referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDOChan referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj

    These, of course, are the functions OR that I use.  The NIDAQmx.lib has been added to the Input of the link property.

    Any help would be appreciated.

    Thank you

    -Neil shore

    Hi LaserShore,

    Think you that you added the 64-bit platform settings target according to this page? : http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/64bitcore/

    Already running 32-bit application? Have you changed references to the 64-bit version?

    You use Measurement Studio? If so some features are not supported with 64 bit.

    Also when you say that you have added the NIDAQmx.lib, did you follow this KB:http://digital.ni.com/public.nsf/allkb/38F67B28D995C6958625706E000C580C

  • Publish a queue using the shared variable

    I have a 2D table queue and I would like to publish (the reference) in a shared variable, so that I can pay the items in the queue in an another vi. I tried to create a queue control and used the custom of the shared variable control option, but it gives me an error "invalid data type.

    You try to read from the queue to another computer? Passing the reference to the queue on the network to a another computer will not allow the application to read data from the queue. The queue data is stored only locally.

    I honestly don't know why you get an error trying, however. Other options to access a queue in the world on the same machine are to use a Global Variable, rather than a shared Variable, or to get your reference queue by using a well-known name who know the other parties of the request.

  • Upon resuming from hibernation my computer asks continue logon or delete restoration data. Restore data refers to a previous restoration or a restore point that was created for later use?

    Original title: F8 and troubleshooting.

    After starting my computer Gateway Profile4 after hibernation, I wonder to continue logon or delete restoration data. Restore data refers to a previous restoration or a restore point that was created for later use? If restoring the use of revert to a previous state, you can cancel that catering is also created which I think could be is requested.

    original title: after waking up from hibernation, he asked me to continue logon or delete restoration data.

    Recently, I had this problem.  This link above (http://support.microsoft.com/kb/294427) helped me.

    Basically, it seems to be a corrupted restore point created to go into hibernation.  I think that the system wants to remove that restore point and reboot "fresh."

    Restore data refers to a previous restoration or a restore point that was created for later use?


    A previous restore point.

    If restoring the use of revert to a previous state, you can cancel that catering is also created which I think could be is requested.


    If I understand you correctly, no.

    Hope this helps

    -Rich

  • By using only the keyboard, how can I create an email using Outlook Express, have the files of "painting" in the body of the email

    original title: only the keyboard

    By using only the keyboard, how can I create an email using Outlook Express, have the files of 'paint' in the body of the email, also registered another Web page?

    Hi r. Gull,.

    You can view using Outlook Express keyboard shortcuts, documented in:

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/mail_hotkeys.mspx?mfr=true

    I hope this helps.

  • Can someone help me create a Bootable ISO DVD from a windows bootable USB ISO file?

    OT: Burning ISO file.

    Can someone help me create a Bootable ISO DVD from a windows bootable USB ISO file?

    I tried to burn the ISO of the DVD file in my system through Image burning software. All copied and verified by himself and said ok.

    But, when I tried to open/run the file, it displays that autorun.dll is not a valid windows image file.  Whereas the same iso file is the opening of the bootable USB key.

    Therefore, I want to copy the file to the USB.iso on DVD.

    It would be simpler just take your. ISO file and use it to burn a DVD using ImgBurn. Don't forget to check the "Hash" value of your. ISO (before creating the DVD) from time to time people do they receive a corrupted download .iso.

    J W Stuart: http://www.pagestart.com

  • Get the 500 error trying to create a table using the REST API

    Hello

    I tried to create a table using the REST API for Business Intelligence Cloud, but I got 500 Internal Server Error for a while now.

    Here are the details that I use to create a table.

    Capture.JPG

    and the json to create the schema that I use is

    [{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ["ROWID"]}]

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['RELATIONID']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['ID']}

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['RESPONDEDDATE']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [255], 'columnName': ['RESPONSE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_CREATEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_CREATEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_LASTMODIFIEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_LASTMODIFIEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_SYSTEMMODSTAMP']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [10], 'columnName': ['SYS_ISDELETED']},

    [{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [50], 'columnName': ['TYPE']}]

    I tried this using postman and code, but I always get the following response error:

    Error 500 - Internal server error

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.5.1 500 internal Server Error

    The server encountered an unexpected condition which prevented him from meeting the demand.

    I am able to 'get' existing table schemas, delete the tables, but I'm not able to make put them and post operations. Can someone help me to identify the problem, if there is no fault in my approach.

    Thank you

    Romaric

    I managed to create a table successfully using the API - the only thing I see in your JSON which is different from mine is that you have square brackets around your values JSON where I have not. Here is my CURL request and extract my JSON file (named createtable.txt in the same directory as my CURL executable):

    curl u [email protected]: password UPDATED h x ' X-ID-TENANT-NAME: tenantname ' h ' Content-Type: application/json '-binary data @createtable.txt https://businessintell-tenantname.analytics.us2.oraclecloud.com/dataload/v1/tables/TABLE_TO_CREATE k

    [

    {

    'columnName': 'ID',

    'dataType': 'DECIMAL ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': false

    },

    {

    'columnName': 'NAME',

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'STATUS."

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'CREATED_DATE."

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    'columnName': 'UPDATED_DATE ',.

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    }

    ]

Maybe you are looking for

  • Data from the drop-down list box database

    Hello I'm trying to understand how to add information from a database to a drop-down list box. I read two columns, the first is used as the element and the second for the value. There are several lines in the table, and I need an entry for each. Curr

  • Officejet 4500 scanning settings

    Windows 7, Officejet 4500, HP TouchSmart I'm confused on the scanning settings that show in the window menu / machine.  I tried to change by using the software and then get questioned about the naming and registration of shortcuts.  Where will I see

  • FN key not working do not.

    Hello! I use HP EliteBook 8440p and my fn key works not properly. Ionce a while it works but these last days, it has stopped working completely especially if I want to connect an external device such as a projector, to control the battery indicator,

  • T9 Dialer

    First of all, I am big fan of mobile phones Sony since t68, and one of the reasons was an option of numbering quick throug t9 dialer.Somehow t9 dialer on my compact z3 does not work as it should. It is 'pick up' numbers but no names. If, for example,

  • SSL in switches

    Hello I was wondering if all the cisco switches have been able to manage the ssl? If the licenses are required to do? Thank you Stéphane