How to monitor Message Bridge runtime using WLST

Hi Readers,
I would like to monitor Message Bridge runtime on weblogic 8.1 using WLST script.
Can anybody tell if there is any possibility? Is there a MBEAN avaialble for Messaging Bridge.?
Edited by: user13254842 on 09-Sep-2010 23:17

Hi,
I don't recall whether the console provides a way to monitor the bridge, or whether the MessagingBridgeRuntimeMBean hangs off of some parent mbean, but you can obtain arbitrary mbeans using standard JMX query calls.
Some scratch code that I have:
  private static MBeanServerConnection getConnection(
    String urlStr,
    String username,
    String password,
    String mbeanServer
  ) throws Exception {
    // This code implicitly requires weblogic classes to be in the classpath
    // in order to run efficiently, but its possible to get it to work without
    // any WL at all.   See
    //   http://e-docs.bea.com/wls/docs90/jmx/accessWLS.html#1118690
    // The code could be changed to automatically detect if WL is in
    // the classpath, and switch to "iiop" mode if it isn't.
    URI url = new URI(urlStr);
    Hashtable h = new Hashtable();
    h.put(Context.SECURITY_PRINCIPAL, username);
    h.put(Context.SECURITY_CREDENTIALS, password);
    h.put(
      JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
      JMX_PROTOCOL_PROVIDER
    JMXServiceURL serviceURL = new JMXServiceURL(
       url.getScheme(), url.getHost(), url.getPort(), JMX_JNDI_ROOT + mbeanServe
    JMXConnector connector = JMXConnectorFactory.connect(serviceURL, h);
    return connector.getMBeanServerConnection();
conn = getConnection(url, user, pass, "weblogic.management.mbeanservers.domainruntime")
String type = "JMSServerRuntime";    // not sure may need to add "MBean" or strip off "Runtime", bridge = "MessagingBridgeRuntime"
Set xxx =    conn.queryMBeans(new ObjectName("*:Type=" + type + ",*"), null);Hope this helps,
Tom
Edited by: TomB on Jun 10, 2009 2:57 PM

Similar Messages

  • Messaging Bridge status using WLST

    Hi,
    I am trying to build a WLST script which tells the state of n number of messaging bridges that I have on AdminServer.
    connect('uname','pswd','t3://localhost:7001');
    serverRuntime();
    bd= cmo.getMessagingBridgeRuntime();
    print bd.getName()
    print bd.getState();
    I am having issues in finding the mbean instance, error is as follows
    AttributeError: getMessagingBridgeRuntime
    would be of great help if you already have this script which is working or help me in solving this.
    I am using weblogic 10.3.1

    It can be done using weblogic.Admin utility, below is the script...you can modify this according to requirement...
    java weblogic.Admin -url t3://$admURL -username weblogic -password $admpasswd GET -pretty -type MessagingBridgeRuntime -mbean $domain:ServerRuntime=$mserver,Name=$bridge,Type=MessagingBridgeRuntime,Location=$mserver -property Description -property Name -property State | grep -v MBeanName

  • How to Montior Messaging Bridge weblogic 10.1?

    I got few message bridges in wlS 10.1 environment . i am unable to find where the option to monotor bridge. ( wls docs showing got to server -> services-> bridge) "This page summarizes the messaging bridge instances that have been explicitly targeted to this Server" but its telling no items to display. I went throug the following steps but no luck
    Monitor messaging bridge instances
    To monitor the status of all configured messaging bridges in your domain:
    In the left pane of the console, expand Environment and select Servers.
    Select the specific server instance where the messaging bridge is configured.
    In the right pane, select the top Services tab, then select Bridge.
    Select the bridge instance whose status you want to monitor.
    Same thing i do in 8.1 is servrver -> services->bridge under this tab there is optin "Monitor all messaging bridge runtimes" when we click on this it shows about ste status of all bridges configured for this sever (Active /Inactive)
    Can some one help same option in wls 10.1
    Thanks
    Subba
    Edited by: Subba R Kancharla on Feb 1, 2010 1:31 PM

    Perhaps you're running into a bug, please consider opening a case with customer support. As a work-around, you might want to try using Java or WLST to find and display the bridge's JMX runtime mbean (MessagingBridgeRuntime).
    Tom

  • How to find the NodeManager Status using WLST

    Hi All,
    can anyone please let me know how to find the nodemanager status using wlst, the nodemanager status whether it is 'Reachable' or not.
    Thank you.

    Hi Bob,
    As James pointed, we faced the same. We could not find any mbean to find the Node Manager Stat that we can monitor from Weblogic console.
    The best I can suggest, use the below WLST command after connecting to 'Node Manager:
    nm()
    Currently connected to Node Manager to monitor the domain xxxdomain.Grep for 'connected to Node Manager to monitor the domain <Your WLS domain name>' and if successfull, your node manager is UP & Connected other wise not 'Reachable'.
    Regards,
    qumar

  • How to create users and groups using WLST Offline with Weblogic 8.1.4

    How to create users and groups using WLST Offline with Weblogic 8.1.4?
    Any ideas?

    Hi this is how i created a user using WLST Offline?
    cd('/Security/' + domainName)
    # Delete the default user name weblogic
    # incase you want to remove the defualt user weblogic
    delete('weblogic','User')
    # Creating a new user defined
    create(userName, 'User')
    # Setting the password of the user you created.
    cd ('/Security/' + domainName + '/User/' + userName)
    cmo.setPassword(password)
    Regards
    Makenzo

  • How to monitor self signed certificates using scom 2007 R2

    How to monitor self signed certificates using scom 2007 R2.  i need to monitor specifically self signed certificates expiration. if  possible in two state monitor...please suggest me the best way..
    B John

    Hi,
    Based on my understanding, that you want to create a monitor to monitor certificate expiration, with two state, when the certificate is about expiration for 21 days,, send warning, when the certificate is about expiration for 10 days, then send
    alert. I think we need to create scripts to do so, hope the below links can be helpful:
    Monitoring Certificates In SCOM
    http://blogs.technet.com/b/omx/archive/2013/01/30/monitoring-certificates-in-scom.aspx
    Monitoring Expiring Certificates using SCOM
    http://blogs.technet.com/b/sgopi/archive/2012/05/18/monitoring-expiring-certificates-using-scom.aspx
    Regards,
    Yan Li
    Regards, Yan Li

  • How to set XPoweredByHeaderLevel to NONE using wlst

    How to set XPoweredByHeaderLevel to NONE using wlst (by default the value is SHORT).
    I mean, I have created a domain using wlst.
    Now I want to set XPoweredByHeaderLevel of WebAppContainerMBean to NONE using wlst.
    It will be helpful if a sample python(Jython) script is provided.
    Please help.

    Here is a quick Jython example of how to do what you want:
    #assuming you already have correct imports for wlst module
    #connect to the AdminServer using proper credentials and host information
    wlst.connect(username, password, host_info)
    #extract domain name
    domainName = wlst.domainName
    #start an edit session and navigate to the WebAppContainerMBean
    wlst.edit()
    wlst.cd("/WebAppContainer/" + domainName)
    wlst.startEdit()
    #set the value of the XPoweredByHeaderLevel attribute to "NONE"
    wlst.cmo.setXPoweredByHeaderLevel("NONE")
    #activate the change
    wlst.activate()

  • How to monitor messages using CIDX Communication Channel

    I created a CIDX Communication Channel. XI failed to get a message from the source. How to monitor the messages using CIDX communication channel.

    Not sure about the monitoring but u may recheck the communication channel settings as shown:
    Sender
    http://help.sap.com/saphelp_nw2004s/helpdata/en/0a/512041cfb7f423e10000000a155106/content.htm
    Receiver
    http://help.sap.com/saphelp_nw2004s/helpdata/en/68/1b20410e91f523e10000000a155106/content.htm
    Regards,
    Prateek

  • How to monitor messages in PI 7.1

    Dear SAP,
    We are using PI 7.1. We would like to monitor messages in PI 7.1.
    There are the RWB in PI 7.1 and the NWAPI in PI 7.11.
    Question :
    I have a found a guide called "How To ... Monitoring Exchange Infrastructure 3.0)".
    This guide can be used to monitor message in XI 3.0 and PI 7.0.
    Do you know if there a more recent guide to implement the PI 7.0 monitoring ?
    Thanks
    Best regards
    NetWeaverAdmin

    Dear Shabarish,
    If I understand you well, even for PI 7.1 EHP1, you recommand to continue to use the RWB to monitor our PI system ?
    And we have to wait PI 7.3 to use the NWAPI ?
    Is it right ?
    Thanks
    Best regards
    NetWeaverAdmin

  • How to monitor message in BPM?

    Hi all
    I try to find in forums but I did not find. Could you please to guide me how I can to see message content in each step in BPM.
    Thanks and Regards
    Park

    Hi park,
    To monitor messages for BPM... got transaction SXMB_MONI_BPE
    there u can check each step.....
    hey... check the slide....also useful......
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1db5e190-0201-0010-1c90-d9de570c6b18
    Regards
    Biplab
    <i>Reward with point if useful</i>

  • How to configure Message bridge

              Hi,
              I am trying to setup a JMS Message Bridge for prove of concept purpose in Weblogic
              7.0. Here is my configurations from config.xml:
              <JMSBridgeDestination
              AdapterJNDIName="eis.jms.WLSConnectionFactoryJNDIXA"
              ConnectionFactoryJNDIName="weblogic.jms.testConnectionFactory"
              ConnectionURL="t3://localhost:7001"
              DestinationJNDIName="examples.queue2" Name="LocalBridge"
              UserName="kyang" UserPassword="{3DES}2LeceOSYOaRuCvrFshnBZg=="/>
              ConnectionFactoryJNDIName="weblogic.jms.ClientConnectionFactory"
              ConnectionURL="t3://localhost:7001"
              DestinationJNDIName="examples.queue1"
              Name="MQWeblogicDestination" UserName="kyang"/>
              <JMSConnectionFactory DefaultDeliveryMode="Persistent"
              DefaultTimeToDeliver="200" DefaultTimeToLive="1000"
              JNDIName="weblogic.jms.ClientConnectionFactory"
              LoadBalancingEnabled="false" MessagesMaximum="100"
              Name="ClientConnectionFactory" OverrunPolicy="KeepNew"
              ServerAffinityEnabled="false" Targets="examplesServer"/>
              <JMSConnectionFactory DefaultDeliveryMode="Non-Persistent"
              DefaultTimeToDeliver="200" DefaultTimeToLive="1000"
              FlowControlEnabled="false"
              JNDIName="weblogic.jms.testConnectionFactory"
              Name="testConnectionFactory" OverrunPolicy="KeepNew" Targets="examplesServer"/>
              <MessagingBridge Name="MyMessaging Bridge" Selector="*"
              SourceDestination="LocalBridge"
              TargetDestination="MQWeblogicDestination" Targets="examplesServer"/>
              I used a test client get InitialContext with url:"t3://localhost:7001" and send
              the message to "examples.queue2" which is "MyJMSQueue".
              From the monitor screen I found the message was put on "MyJMSQueue" but the message
              was nerver delieveried to the "examples.queue1".
              From the log, I got following message:
              <Jun 20, 2002 10:05:53 AM CDT> <Info> <MessagingBridge> <200012> <Bridge "MyMess
              aging Bridge" suceesfully found the two adapters configured for it.>
              Do you have any suggestions?
              Thanks a lot!
              

    Don't worry about the log messages about
              "comp/env/wls-connector-resref".
              It is not a problem for the Messaging Bridge feature.
              The real problem is that you have an invalid selector for the
              MessagingBridge. A bridge selector has the same syntax as a JMS message
              selector. As you can see from the JMS specification, a message selector
              syntax is based on a subset of the SQL92 conditional expression syntax.
              I would suggest you try the bridge feature without any selection first
              and add the selector later.
              Dongbo
              Kenny Yang wrote:
              >
              > Mr.Xiao,
              > Thanks! Things are getting better after I made changes according to your suggestion.
              > Now the status is showing: Forwarding Messages. But I still have following exceptions
              > from the logging window:
              >
              > <Jun 20, 2002 1:38:50 PM CDT> <Info> <MessagingBridge> <200020> <Bridge "MyMessa
              > ging Bridge" is stopped.>
              > <Jun 20, 2002 1:38:55 PM CDT> <Info> <MessagingBridge> <200033> <Bridge "MyMessa
              > ging Bridge" is getting the connections to the two adapters.>
              > <Jun 20, 2002 1:38:55 PM CDT> <Info> <Connector> <190011> <Unable to locate cont
              > ext: java:/comp/env/wls-connector-resref>
              > <Jun 20, 2002 1:38:55 PM CDT> <Info> <Connector> <190010> <Unable to determine R
              > esource Principal for Container Managed Security Context.>
              > <Jun 20, 2002 1:38:55 PM CDT> <Info> <Connector> <190011> <Unable to locate cont
              > ext: java:/comp/env/wls-connector-resref>
              > <Jun 20, 2002 1:38:55 PM CDT> <Info> <Connector> <190010> <Unable to determine R
              > esource Principal for Container Managed Security Context.>
              > <Jun 20, 2002 1:38:55 PM CDT> <Info> <Connector> <190035> <There was/were 1 phys
              > ical connection(s) created with the following Meta Data: Product name of EIS ins
              > tance: Java Messaging Service Product version of EIS instance: 1.0.2 Maximum num
              > ber of connections supported from different processes: 0 User name for connectio
              > n: kyang>
              > <Jun 20, 2002 1:38:55 PM CDT> <Info> <Connector> <190011> <Unable to locate cont
              > ext: java:/comp/env/wls-connector-resref>
              > <Jun 20, 2002 1:38:55 PM CDT> <Info> <Connector> <190010> <Unable to determine R
              > esource Principal for Container Managed Security Context.>
              > <Jun 20, 2002 1:38:55 PM CDT> <Info> <MessagingBridge> <200031> <Bridge "MyMessa
              > ging Bridge" is configured to allow degradation of its quality of service in cas
              > es where the configured quality of service is not reachable.>
              > <Jun 20, 2002 1:38:55 PM CDT> <Info> <MessagingBridge> <200030> <Bridge "MyMessa
              > ging Bridge" is configured to work in "Atmost-once" mode and it is actually work
              > ing in "Atmost_once" mode.>
              > <Jun 20, 2002 1:38:55 PM CDT> <Info> <MessagingBridge> <200028> <Bridge "MyMessa
              > ging Bridge" starts transferring messages.>
              > <Jun 20, 2002 1:38:55 PM CDT> <Info> <MessagingBridge> <200026> <Bridge "MyMessa
              > ging Bridge" encountered some problems to one of its adapters or underlying syst
              > ems. It stopped transferring messages and will try to reconnect to the adapters
              > shortly. (Exception caught was java.lang.reflect.UndeclaredThrowableException)
              > java.lang.reflect.UndeclaredThrowableException: java.lang.reflect.InvocationTarg
              > etException: javax.resource.ResourceException: Error creating asynchronous consu
              > mer or setting message lisenter
              > at weblogic.jms.adapter.JMSBaseConnection.throwResourceException(JMSBase
              > Connection.java:1086)
              > at weblogic.jms.adapter.JMSBaseConnection.setMessageListenerInternal(JMS
              > BaseConnection.java:984)
              > at weblogic.jms.adapter.JMSBaseConnection.setMessageListener(JMSBaseConn
              > ection.java:892)
              > at weblogic.jms.adapter.JMSConnectionHandle.setMessageListener(JMSConnec
              > tionHandle.java:121)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.connector.common.internal.ConnectionWrapper.invoke(Connectio
              > nWrapper.java:92)
              > at $Proxy131.setMessageListener(Unknown Source)
              > at weblogic.jms.bridge.internal.MessagingBridge.beginForwarding(Messagin
              > gBridge.java:842)
              > at weblogic.jms.bridge.internal.MessagingBridge.execute(MessagingBridge.
              > java:922)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
              > >
              >
              > where can I get the context:"comp/env/wls-connector-resref"?
              

  • How to monitor Data downloaded, bandwidth used, Url hit in Client machine through SCOM

    Hi,
    Is there is any way which can monitor Data downloaded, bandwidth used, Url hit in Client machine(windows 7 and Windows 8.1) through SCOM.

    adawson wrote:
    Hi,
    I installed and running ebusiness suite 12.1.1 in Oracle Linux server 6.3, below is the url I used to run ebs in the Linux Server,
    http://aserver.localdomain:8000/OA_HTML/AppsLogin
    Can you access this URL on the server itself? Do you see the login page on the server?
    I need to access the ebs from my laptop which is having windows 7 operating system.
    My laptop (with IP Address 10.0.0.4) is connected to network and I can ping with my linux server's IP Address- 10.0.0.2 (ping 10.0.0.2 works)
    but when I ping from my laptop with the server 's hostname ( ping aserver.localdomain) it says "ping request could not find host aserver.localdomain" .What if you access http://10.0.0.2/OA_HTML/AppsLogin from the client, can you see the main login page then?
    when I tried to access the url "http://aserver.localdomain:8000/OA_HTML/AppsLogin" from the laptop ebs page is not opening.
    Please post the contents of the hosts file on the server and the client.
    Is there any configuration to be made in Linux server where ebs is installed or tell me what things to be done to access ebs from another system.Just make sure the firewall is disabled on the Linux server.
    I also have static ip configured in my router, So tell me what settings to be made to access this same ebs through internet.You do not need an internet access here since your server and client on the same network.
    Thanks,
    Hussein

  • How to monitor messages on PI 7.3 AEX

    Hi Experts,
                       We are going to use PI 7.3 with a Java only service (AEX) for our project. While going through the SAP documentation for 7.3, found the following link which mentiones in a Note :
    "When you use the Advanced Adapter Engine Extended (AEX), the Runtime Workbench cannot be used for monitoring purposes"
    Link : http://help.sap.com/saphelp_nw73/helpdata/en/af/d36bc882e846f29ddef9dc1741527b/frameset.htm
    I searched in SDN and service marketplace but could not find any document specific to AEX monitoring only where 7.3 is used as a Java only installation.
    Do we need to do the monitoring via Solman only in this case?
    Would be helpful if anyone can provide me with any helpful links
    Regards
    Shiladitya

    Hi,
    1.Go to Monitoring tab -> Adapter Engine -> Message Monitor.
    When accessing Message Monitoring, you initially see an overview of messages according to a time range.
    2.Integration Directory offers one-click navigation from Communication Channel editor to the web channel monitoring using new channel PING function. This enables testing a channel in the local channel monitor .
    3.Support only Java-based adapter types.
    regards,
    ganesh.
    Edited by: ganesh.nijampudi on Dec 13, 2011 12:56 PM

  • How to monitor messages going out of XI? Kindly help!

    Hi Experts,
          I have a XI scenario where my IDOC message is going out from XI to TIBCO. I am using the JMS adapter as the receiver here. Once message is sent from XI we don't know if it really reached TIBCO?
    How do we monitor such messages?
    Basically my requirement is that there should be a email sent to the stakeholder once TIBCO fails to receive the message even though XI has sent. The stakeholder
    here is the business who just need to get an email alert. The objective behind this requirement is that, end to end XI scenario can be monitored and business does not have to check XI and TIBCO separately. They will no exactly where is the problem.
    How to accomplish this? Please provide suggestions.
    Thanks
    Gopal

    Hi Gopal,
    If you have already configured the alert rules then you just need to configure SAP connect and maintain the e-mail address for all the users attached to your alert category. You can go to transaction SU01 and maintain e-mail address for the each user attached to the alert category and the e-mails will automatically be sent if SAP connect is configured.
    Refere the link below for SAP connect configuration.
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
    You will need to set the flag under the RWB for e-mail as well.  You will need to login the RWB for each user and go to Alert Inbox - Personalization. Under the Time-Independent Delivery you will to check the box "Mail" as well.
    Also check Michal's blog on Alert Config:-
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    Hope this provides you a solution.
    Regards.
    Praveen

  • Does anyone know how to monitor a microphone when using Voice Over tool?

    I use Final Cut studio in conjunction with an AJA Kona LHe card. Audio inputs are via the AJA. I monitor the output from FCP through the AJA card via a Samson C-Control (monitor matrix). Here's my problem. When I'm recording voice over, I am unable to monitor the sound from the microphone through the headphones (or speakers). There is definitely an audio feed being routed to the headphones as I am able to hear the audio cue countdown. The microphone is working fine too - when it comes to playing back the voice over through the headphones (or speakers), I can hear the track absolutely fine. Has anyone experienced the same problem... and do you know how to solve it? Many thanks, AW

    its not that you've anything screwy going on .. this is the way it is engineered to work.
    the pre-existing audio (and cues) is routed to the headphones but not the voice being recorded.
    the solution is to use an audio mixer to monitor both the voice over and the timeline

Maybe you are looking for