OSB: API to create SLA alert on proxy

Hi,
does anyone know how to set an SLA alert for a large number of proxy services automatically ? I went through http://docs.oracle.com/cd/E21764_01/apirefs.1111/e15033/toc.htm but haven't found anything useful.
There is close to a hundred of proxies in my configuration and I need to set two SLA rules for all of them. Obviously, I don't want to do that through /sbconsole one by one. Additionally, I want to have sort of after-deploy-script to make sure that all deployed proxies have those SLA alerts set without checking anything manually.
Any idea?

Was looking at this and just realised the exact issue that is reported in this thread.
It would be really useful to have a way of executing a config file via the API to setup these SLAs.
Is there a place where I can vote for enhancements or see the release roadmap for OSB?
Many thanks
Murph

Similar Messages

  • OSB  - Creating SLA Alerts using WLST

    Hi,
    I'd like to create SLA Alerts on proxy services using WLST rather than via the service bus console.
    The MBean described at:
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/sb/management/configuration/ProxyServiceConfigurationMBean.html
    only seem to allow enabling or disabling SLA alerts not creating them.
    Can anyone point me in the right direction?
    Thanks
    Nick

    Please refer -
    http://blogs.oracle.com/MarkSmith/entry/osb_alerts_purging_is_essentia
    From the blog -
    The components that make up WLDF will be targeted to a single managed server in a clustered environment or to the Admin server in a single server environment. To establish what managed server this is, check to see where the WLI Aggregator application is targeted to. The WLDF data will be stored under this single managed server in the following location: //domain_name/servers/server_name/data/store/diagnostics/Check that on which server WLI Aggregator application is targeted and connect to that server from your script.
    Regards,
    Anuj

  • Need JAVA API to list down all the Proxy Services in OSB Console 11g

    Hi,
    I need a java API to List down all the Proxy Services present in OSB Console for SOA 11g (11.1.1.5). I am in a situation where I cant use python script for the same.
    any help will be much appreciated.
    Thanks in Advance,
    Ravi
    Edited by: 899443 on Oct 1, 2012 4:13 AM

    AFAIK it is proprietary.
    What I do in a similar situation is to form XML for the services, package them into JAR the same way as an import JAR is packaged (creating ExportInfo resource, ...) and deploy with standard WSLT script. Works for simplest services only (direct proxies mostly) but I can also form security, alerts, throttling etc etc etc -- all in one shot.
    Out of sheer interest, may I ask you a question? Why do you need to create OSB services from Java?
    Vlad
    http://vladimirdyuzhev.com

  • SLA Alerts in DB polling proxy

    Hi
    I have created a DBAdapter to poll a table in the database for any inserts/updates. Have adopted the Logical Delete processing.
    Now I need to configure an SLA alert for the proxy service based on this DBAdapter.
    The alert needs to be raised when no records have been updated/inserted for more than say 10 minutes.
    The SLA Alert Rule I have defined is as follows:
    Rule Name   TriggerAlert
    Alert Destination   Poll_SLA/SLAQueue
    Start Time (H:MM)   3:00 AM
    End time (H:MM)   1:30 PM
    Rule Expiration Date (M/D/YYYY)   12/31/2011
    Rule Enabled   true
    Alert Severity   Critical
    Alert Frequency   Every Time
    Stop Processing More Rules   true
    Conditions
    Condition Expression   Aggregation Interval 0 Hour(s) and 5 Minutes
    Operation.receive.Message Count = 0
    But somehow the SLA Alert is not raised even if there are no inserts or updates for 5 minutes. The proxy service is polling the records correctly as I can see the log actions being executed.
    Could someone help me in pointing out the configuration that I have missed or have wrongly done asap.
    Thanks & Regards
    Kshama
    Edited by: Kshama Tamhankar on Dec 20, 2011 9:30 PM

    Hi,
    I changed the Alert rule to Message Count=0 and the main setting that I had to change to raise the alert was in the Operational Settings tab of the Proxy service.
    Monitoring: Enabled Pipeline Monitoring for Service Level and above. By default this is set as Pipeline Level.
    Thanks & Regards
    Kshama

  • SLA alert doesn't display in the OSB console's dashboard

    Greetings,
    I defined several SLA alerts for a proxy service and I'm using a client which creates on the purpose the required conditions to raise the alerts, but nothing displays in the Dashboard. I also enabled the monitoring checkbox but I don't know if the level has to be pipeline, service or action. Did I miss something ?
    Many thanks in advance,
    Nicolas

    1° Monitoring is enabled at service level.
    2° The aggregation interval for the condition is the same as the monitoring one.
    There is no message in the Dashboard, neither SLA Alerts nore any other one. What is very strange is that the Service Health tab says that the avg. response time is 0 seconds while the proxy service reply takes 30 seconds. The proxy service is based on a JAX-RPC WSDL generated in Workshop. I also tried JAX-RPC with the same result? The client is an Axis one generated in Workshop (not a WebLogic clientgen one) and it calls the proxy service as follows:
    //JAX-RPC
    TestService service = new TestServiceProxy().getTestService();
    // Service will reply in 30 seconds
    service.delay30();
    //JAX-WS
    TestService service = new TestServiceLocator().getTestServiceSoapPort();
    // Service will reply in 30 seconds
    service.delay30();
    Once called, the operation logs a message at its begin and at its end. The message shows that the processing takes 30 seconds. The SLA alert rule says that an alert has to be raised, having the console as the destination, whenever the processing time of this operaztion invocation takes more than 5 seconds. However, no message apears in the dashboard, no SLA alert and the service's avg processing time is displayed as being 0 seconds.
    Many thanks in advance for any help.
    Nicolas

  • Configuring and using SLA alerts and Monitoring in OSB.

    Hi,
    I am having a business service which logically represents composite endpoint URI. Now I want to enable Monitoring and generate an SLA alert if the composite URI that the business service is representing is DOWN for some reason and the proxy routing to the BS is not able to invoke it.
    How do I do that? Pls suggest!

    Hi Deb,
    Please refer section "46.5 How to Generate Alerts Based on Endpoint URI Status" at below link -
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15867/endpointurimgmt.htm#i1080465
    Also refer -
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15867/monitoring_ops.htm#i1108778
    Please post OSB related questions in Oracle SOA Suite forum only -
    SOA Suite
    Regards,
    Anuj

  • OSB: Retrieve list of proxy service/business service operations via OSB API

    Hi,
    I would like to retrieve the list of proxy service/business service operations using OSB API. I was able to retrieve References to all services on given server using examples from documentation (http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/sb/management/configuration/ALSBConfigurationMBean.html). I'm also able to retrieve the Reference to any given service I want.
    My problem is - what do I do next? I've read here[http://www.theserverlabs.com/blog/2012/03/14/alsbosb-customization-using-wlst/] , that one can use ServiceConfigurationMBean.
    But when I execute this code:
              ServiceConfigurationMBean servConfMBean = (ServiceConfigurationMBean) domainService
              .findService(
                        ServiceConfigurationMBean.NAME + "." + sessionName,
                        ServiceConfigurationMBean.TYPE,null);
    The servConfMBean object is null.
    I know that there might be some useful info in the statistics, but my proxys are enabled for monitoring, and therefore I'm unable to obtain statistics programatically.
    I've also learned that thereis a TransportManagerHelper.getWsdlDescription(ref) method. But it throws null pointer exception. I dont understand how to use it.
    Any help would be greatly appreciated.
    Veronica
    Edited by: Veronica on Apr 11, 2012 2:33 AM

    There is an API change from the OSB release 11.1.1.3 and later....
    There is a solution, but this is based on Java & JMX:
    See support on this note:
    WLST scripting needed for note [ID 1431254.1]

  • OSB - SLA Alert Details

    Is it possible to include dynamic messages in the SLA alerts you can configure for Proxy Services? I would like to include the final $body contents of the alerts that are generated, but do not see a way to do it.

    I dont see a way for including the $body content in the alert.
    But you may consider writing the $body through a business service to a file or jms queue before invoking the alert action.

  • OSB: Cannot found SLA Alert Log

    Dear all,
    http://docs.oracle.com/cd/E17904_01/doc.1111/e15867/alert_destinations.htm
    "+Alert Logging: If you select Yes, alerts sent to this alert destination are logged to the alert log.+"
    From this document, Where can I found the alert log ?
    Thank you very much

    As given in the documentation:
    An alert destination can include one or more of the following types of destinations: console (default), Reporting Data stream, SNMP trap, e-mail, JMS queue, or JMS topic.You will need to configure the Alert destination to be able to see the messages there.
    By default you should see them on the OSB Console.
    {Operations > Monitoring > Dashboard > SLA ALerts}
    {Operations > Monitoring > Dashboard > Pipeline ALerts}
    Please refer to the section 6.2 in the same link to get more details on how to configure diff. alert destinations.
    Thanks,
    Patrick

  • OSB 11g: Can I create an Alert Destination to call another webservice?

    Hi All,
    We would like to send Alert message via SMS to speified person.
    As we have already a web service to send SMS, can we just create an Alert Destination to call this web service to do that?
    Thanks for your help!
    Edited by: FrankieHuang on May 2, 2013 12:44 AM

    you can use a JMS queue as your alert destination and have a process listening on the JMS queue to invoke the webservice.#
    You dont have a direct option to call a service from your alert mechanism..
    http://docs.oracle.com/cd/E14571_01/doc.1111/e15867/alert_destinations.htm

  • WLST Script for Disabling/Enabling Global SLA Alerting.

    Hello,
    I wanna find a way from the WLST to disable and enable the SLA Alerting which is under Operations-->Global Settings in the sbconsole. This is the global setting not per sercive!
    I have found how to create a session and how to disable the alerts per service, but i cannot find which MBean is accessed when throught the sbconsole the global SLA alerting is disabled/enabled.
    Can anybody point me to the right direction or help me to find how to do this from WLST.
    Thanks.

    Hi Ganesh,
    I have finally created the script i was looking for.. I copy-paste it below as a sample... For sure you need all the lines of code until the comment i have put "#####you need this code above"
    now the code you see below the comment is for disabling the global sla alerting... you have to write a bit to target a specific service that you want to disable.
    Keep in mind that after you make your change you hava to include those lines in order to activate the changes and disconnect and exit..
    sessionMBean.activateSession(sessionName, "enable SLA")
    disconnect()
    exit()
    If you have access to oracle support search for wlst script for osb it has a lot and you can find how to target a specific service...
    I hope that i help a little bit
    import sys
    import wlstModule
    from com.bea.wli.sb.management.configuration import SessionManagementMBean
    from com.bea.wli.sb.management.configuration import ALSBConfigurationMBean
    #from com.bea.wli.sb.management.configuration import ProxyServiceConfigurationMBean
    from com.bea.wli.sb.management.configuration.operations import OperationsConfigMBean
    from com.bea.wli.config import Ref
    from com.bea.wli.sb.util import Refs
    # Connect (username, password, URL)
    connect('weblogic', 'password', 't3://localhost:7001')
    domainRuntime()
    # Create a session name
    sessionName =sessionName = String("SessionScript"+Long(System.currentTimeMillis()).toString())
    print('... after session. Session is: ', sessionName)
    # Get the session MBean and create a session
    sessionMBean = findService(SessionManagementMBean.NAME,SessionManagementMBean.TYPE)
    print('-debug-this is the sessionbean',sessionMBean)
    print('SessionMBean is: ', sessionMBean)
    sessionMBean.createSession(sessionName)
    print(String('Session was created ... ').concat(sessionName))
    #####you need this code above
    domainCustom()
    cd('com.bea')
    #path='com.bea:Name=OperationsConfig.'+sessionName+',Location=AdminServer,Type=com.bea.wli.sb.management.configuration.operations.OperationsConfigMBean'
    cd('com.bea:Name=OperationsConfig.'+str(sessionName)+',Location=AdminServer,Type=com.bea.wli.sb.management.configuration.operations.OperationsConfigMBean')
    set('DomainSLAAlertingEnabled',java.lang.Boolean("true"))
    # Now commit (activate) the changes
    sessionMBean.activateSession(sessionName, "enable SLA")
    disconnect()
    exit()

  • OSB Email Can't find wsdl for Proxy?

    Hi,
    OSB 11G
    Req: System A will invoke OSB Service and OSB should send an email.
    I have created a Business Service and Proxy Service for Email in OSB like:-
    Business Service:
    1.Selected Service Type as Message Service.
    2. Req Message Type as Text
    3.Select Protocol=Email ad gave End Point URI
    4. Selected SMTP Server .
    Proxy Service
    1. I created XML(for incoming request content in Proxy) and imported in my Proxy and selected http Protocol in Proxy.
    2. In Proxy, I created Route Node. In Route Node, I used Communication->Transport. and set the Transport Headers Subject as $body/ema:Email/ema:subject/text() =expression
    To as $body/ema:Email/ema:to/text() =expression.
    3. I added an action -replace with variable body and expression=$body/ema:Email/ema:content/text().
    Both Business and Proxy are working fine. But I cannot see WSDL for OSB Service? As I want this OSB Service to be called from System A.
    Thanks

    You will not find a WSDL for http type service.
    You have to create your own WSDL and create a WSDL based proxy service.

  • Using relative-URI  in creating the REST based proxy service

    Hi,
    I am facing an issue when i am trying to create REST based proxy. i am looking at the urls given in the forum post Using Business Service that supports XML over HTTP in OSB
    I have created a conditional branch with xpath expression like *./ctx:transport/ctx:request/http:relative-URI/text()*
    and i am copying this value to $inbound as showin in the blog http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html. But when i typed the uri in browser its saying xml parser error unable to find <.
    Not sure of the reason. If i modify my proxy to use http-method as shown in the blog its working fine and that too only when i copied ./ctx:transport/ctx:request/http:http-metho/text() to $inbound. But when i copied the same to another variable like branchcond, i am getting same parsing error. And Is it that the variable has to be always $inbound?  So what should be the variable name for using relativeURI
    And my uri is going to be like the following, thats why i am planning to create the conditonal branch on relative-uri.
    http:/localhost:8001/proxy/RESTbasedPS/getGreeting?name=23
    http:/localhost:8001/proxy/RESTbasedPS/getFullName?firstName=Some&lastName=Thing
    Any leads in above error will help me.
    Thanks
    Siva

    When i created the Conditonal branch, its asking for two mandatory properties. One is 'selected path' and the other is 'variable'. My scenario i am trying to base my conditional branch based on relative uri, so i have given './ctx:transport/ctx:request/http:relative-URI/text()' for 'selected path' variable and giving the value 'inbound' for 'variable' property of conditional branch.
    i was trying to do this in similar fashion as given in the blog http://blogs.oracle.com/jeffdavies/2009/06/restful_services_with_oracle_s_1.html, only thing is that i am using http:relative-URI rather http:http-method as shown in the blog.
    I am geting the following error in exact:
    XML Parsing Error: no element found
    Location: http://localhost:7001/proxy/RESTBasedPS/getGreeting?name=siva
    Line Number 1, Column 1:
    Please let me know if i am missing something or doing wrong with inbound variable.
    Thanks
    Siva

  • Setting monitoring and SLA Alerts via Workspace studio

    Hi,
    Is it possible to set monitoring and SLA Alert rules via workspace studio. If yes, could you please help me how to do it.
    Thanks
    James

    Hi..
    Operational settings such as enabled, tracing, monitoring etc are easily set within eclipse by editing with the text editor rather than the proxy editor..
    The SLA Alerts are possible to modify in the same way, but they're a bit more tricky to figure out..
    ..Mark.

  • SLA alerts

    Hello,
    I have installed SOA Suite 11.1.1.5.0. At Oracle Service Bus I have define sla alert rules and I can monitor at the administrator console if there is any violation. I would like
    to know if these violations are written at a file? I want to have a file with the timestamp , the alert name, alert severity, service etc.. and every time a violation occurs these information are written at it.
    Thanks in advamce

    Hi,
    I changed the Alert rule to Message Count=0 and the main setting that I had to change to raise the alert was in the Operational Settings tab of the Proxy service.
    Monitoring: Enabled Pipeline Monitoring for Service Level and above. By default this is set as Pipeline Level.
    Thanks & Regards
    Kshama

Maybe you are looking for

  • Charging from PC

    I have a relatively simple issue with my 9720 but can't seem to find any solution.  It's a gripe more than a problem, but I feel there is a solution out there somewhere that someone will have found. I want to be able to plug my BB into [various] lapt

  • Which ECC table stores shipment # condition type level data?

    Hi all: Here I have a requirement to get freight data at condition type level for each shipment number. Does anybody know which ECC table/field maintain such data? Any post would be appreciated and thank you all in advance! Tim

  • Crystal Reports XI Developer Release 2

    What is the upgrade method of going from Crystal Reports XI Developer to Crystal Reports XI Developer Release 2. I've seen mention on other forums and help-desk websites that it is a free upgrade for a registered user of Crystal Reports XI Developer.

  • Error when update "locate" database

    I'm running a Lion system (10.7.3) that was upgraded from Snow Leopard. I want to update the "locate" database. I tried what is prescribed everywehre I've searched on line: sudo /usr/libexec/locate.updatedb That gives errors: shell-init: error retrie

  • Chapter thumbnail stills, iDVD 7

    I am trying to create thumbnails in iDVD 7 for the Scene tabs. Chapter markers were created from FCE export as QT with Chapter markers iDVD 7 themes "Modern" Sometimes this works, some times it does nto and I can not work out why I have initially the