Edit XQuery  using WLST?

Hi All,
I have an xml properties file that I load as an XQuery resource. The values in this xml file changes as we move to next environment ( dev, UAT, prod)
How would I automate editing this xquery resource
Or is there a way to automate creating XQuery resource from an XMl file?
Please suggest

Hi, You are right, Its not working in Xquery , but I am sure I have seen at a customer site where they made something similar to work using search string replace, I can get back to you on Monday after cross checking .
You can still make this work using customisation file using the ReferenceCustomizationType , also discussed on the link I gave you before. Create the environment specific properties xquery files say properties-dev , properties-stage etc and in dev in the assign action within the proxy service refer to properties-dev xquery. When you move to stage you can alter the assign to refer properties-stage by executing the reference customization .. here is the sample customization file i used for testing this.
<?xml version="1.0" encoding="UTF-8"?>
<cus:Customizations xmlns:cus="http://www.bea.com/wli/config/customizations" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xt="http://www.bea.com/wli/config/xmltypes">
  <cus:customization xsi:type="cus:EnvValueCustomizationType">
    <cus:description/>
    <cus:envValueAssignments>
      <xt:envValueType>UDDI Auto Publish</xt:envValueType>
      <xt:location xsi:nil="true"/>
      <xt:owner>
        <xt:type>ProxyService</xt:type>
        <xt:path>TestCustomisationFile/TestProxy</xt:path>
      </xt:owner>
      <xt:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">false</xt:value>
    </cus:envValueAssignments>
    <cus:envValueAssignments>
      <xt:envValueType>Service URI</xt:envValueType>
      <xt:location xsi:nil="true"/>
      <xt:owner>
        <xt:type>ProxyService</xt:type>
        <xt:path>TestCustomisationFile/TestProxy</xt:path>
      </xt:owner>
      <xt:value xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">/TestCustomisationFile/TestProxy</xt:value>
    </cus:envValueAssignments>
  </cus:customization>
  <cus:customization xsi:type="cus:FindAndReplaceCustomizationType">
    <cus:description/>
    <cus:query>
      <xt:resourceTypes>ProxyService</xt:resourceTypes>
      <xt:envValueTypes>UDDI Auto Publish</xt:envValueTypes>
      <xt:envValueTypes>Service URI</xt:envValueTypes>
      <xt:refsToSearch xsi:type="xt:ResourceRefType">
        <xt:type>ProxyService</xt:type>
        <xt:path>TestCustomisationFile/TestProxy</xt:path>
      </xt:refsToSearch>
      <xt:includeOnlyModifiedResources>false</xt:includeOnlyModifiedResources>
      <xt:searchString>Search String</xt:searchString>
      <xt:isCompleteMatch>false</xt:isCompleteMatch>
    </cus:query>
    <cus:replacement>Replacement String</cus:replacement>
  </cus:customization>
  <cus:customization xsi:type="cus:ReferenceCustomizationType">
    <cus:description/>
    <cus:refsToBeConsidered xsi:type="xt:ResourceRefType">
      <xt:type>ProxyService</xt:type>
      <xt:path>TestCustomisationFile/TestProxy</xt:path>
    </cus:refsToBeConsidered>
    <cus:externalReferenceMap>
      <xt:oldRef>
        <xt:type>Xquery</xt:type>
        <xt:path>TestCustomisationFile/properties-dev</xt:path>
      </xt:oldRef>
      <xt:newRef>
        <xt:type>Xquery</xt:type>
        <xt:path>TestCustomisationFile/properties-stage</xt:path>
      </xt:newRef>
    </cus:externalReferenceMap>
  </cus:customization>
</cus:Customizations>

Similar Messages

  • Edit diameter.xml file using WLST

    Hi,
    I need to automate creating new Peers like RfSimulator and Rocharging Peers for hssclient using WLST Script.
    Please can anyone help me in creating a WLST script(.py) for the Example below.
    <?xml version='1.0' encoding='utf-8'?>
    <diameter xmlns="http://www.bea.com/ns/wlcp/diameter/300" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls">
    <configuration>
    <peer>
    <host>RfSimulator</host>
    <address>localhost</address>
    <port>3900</port>
    <protocol>tcp</protocol>
    <watchdog-enabled>true</watchdog-enabled>
    </peer>
    <route>
    <name>RoCharging</name>
    <realm>bea.com</realm>
    <application-id>4</application-id>
    <action>relay</action>
    <server>ocf</server>
    </route>
    <route>
    </configuration>
    </diameter>

    xml or plist , just the extension differs.(Both are Extended Markup Language).
    If u want to edit it manually - u can use property list editor (which is in XCode )
    or u can open with dashcode , which can be edited easily.
    If ur question was to edit dynamically.
    U can do that with write to file functionality.
    For example u may check this.
    http://www.iphonedevsdk.com/forum/iphone-sdk-development/1613-read-write-create- data-files.html

  • Updating XQuery with WLST

    Hi,
    I'm new to Weblogic. Need a little help with this.
    I have two separate applications : 1 which does the dynamic invocation callout (application A) and the other serving as the xquery repository (application B).Application A does a dynamic transformation using a uri pointing to a xq file on application B, Application A seems to cache the xq file. If I update the xq file on application B, the only way Application A will pick up the changes is to redeploy application A (i.e. crudely flush it's cache). Is there any way I can update the XQuery file using WLST?
    Thanx

    As I am not able to use IF-ELSE in Oracle for select statementsHow about a CASE statement?
    If each query is always meant to return a single aggregated column (and of course only one row), then you can use this :
    SELECT CASE WHEN param_1 IN ('VAL1', 'VAL2')
                 THEN (
                   SELECT ...
                   FROM emptable, XMLTable( ... )
                WHEN param_1 IN ('VAL3', 'VAL4')
                 THEN (
                   SELECT ...
                   FROM addresstable, XMLTable( ... )
            END AS Orders
    FROM dual;If you prefer the UNION approach, then :
    Here, if the Param.1 is "NAME" then the outcomes as <Rowset></Rowset> + Output of other query (which only thing I want)That's because of the XMLAgg aggregate function.
    An aggregate function without GROUP BY always returns one row, even though there's no row in the original result set.
    SQL> SELECT XMLElement("Rowset", XMLAgg(rw.column_value))
      2  FROM emptable ul
      3     , XMLTable('/Rowsets/Rowset/Row' passing ul.text) as rw
      4  WHERE 1 = 0
      5  ;
    XMLELEMENT("ROWSET",XMLAGG(RW.
    <Rowset></Rowset>
    You can group by an empty list of column to force the required behaviour :
    SQL> SELECT XMLElement("Rowset", XMLAgg(rw.column_value))
      2  FROM emptable ul
      3     , XMLTable('/Rowsets/Rowset/Row' passing ul.text) as rw
      4  WHERE 1 = 0
      5  GROUP BY ()
      6  ;
    XMLELEMENT("ROWSET",XMLAGG(RW.
    You should also use UNION ALL instead of UNION so that Oracle doesn't bother performing any unneeded sort operation.
    What is the purpose of RTRIM in your examples? I don't see any reason to call it over an XMLType instance, furthermore it performs an implicit datatype conversion to VARCHAR2 which can potentially cause errors.
    If you need to serialize the resulting XMLType column then use the appropriate methods getStringVal(), getClobVal() or XMLSerialize function (11g).
    Edited by: odie_63 on 7 nov. 2012 23:24

  • How do you use WLST to get a deployed Apps name?

    I am writing an application update script to make updating our environments quicker/easier with the following code from an ant build file:
    <wlst debug="true" failOnError="true">
    <script>
    connect('login','pwd','t3://...')
    updateApplication('${app.name}',block='true')
    </script>
    </wlst>
    However, b/c our application has a version in the manifest file, our application name looks like this:
    AppName-BuildNumber-TimeOfBuild
    Since the TimeOfBuild is always different from build to build it is impossible to hard code this value. Is there a way to get the application's name using WLST?
    connect(...)
    cd('AppDeployments')
    This shows me all applications deployed on the server, but inorder to go any farther I need the name of a specific app. I'm sure I am just overlooking an mbean somewhere, but I can't seem to find it! Any ideas??
    Thanks.
    Message was edited by:
    bftanner

    Ok, so I figured out how to get an applications name but I can't get the following script to work from an ant build file:
    <wlst debug="true" failonerror="false">
    <script>
    connect('system','weblogic','t3://...')
    apps=cmo.getAppDeployments()
    for app in apps:
    if app.getName().startswith("4X"):
    stopApplication(app,block='true')
    undeploy(app.getName(),targets='MS1,MS2',block='true')
    deploy('4X','//box/domains/applications/4X.ear',targets='MS1,MS2',stageMode='stage',block='true')
    apps=cmo.getAppDeployments()
    for app in apps:
    if app.getName().startswith("4X"):
         startApplication(app.getName(),block='true')
    </script>
    </wlst>
    When this is run I get the following error:
    BUILD FAILED
    C:\docume~1\dtanner\desktop\RELupdate.xml:134: Error executing the script snippe
    t
    connect('system','weblogic','t3://192.168.0.250:
    7001')
    apps=cmo.getAppDeployments()
    for app in apps:
    if app.getName().startswith("reporting-r
    eport"):
    stopApplication(app,block='true'
    undeploy(app,targets='MS1,MS2',b
    lock='true')
    deploy('reporting-report-server','//bfediapp3/do
    mains/applications/reporting-report-server.war',targets='MS1,MS2',stageMode='sta
    ge',block='true')
    apps=cmo.getAppDeployments()
    for app in apps:
    if app.getName().startswith("reporting-r
    eport"):
    startApplication(app,block='true
    due to:
    Traceback (innermost last):
    (no code object) at line 0
    SyntaxError: ('invalid syntax', ('<string>', 2, 33, '\t\t\t\tapps=cmo.getAppDepl
    oyments()'))
    Any Ideas??? Also, how can you keep the format i.e. tabs and spaces at the front of a line in these forums???
    Thanks.

  • Enable Node Manager debug using WLST

    Hi,
    I would like to enable debug for node manager using WLST instead of using the Admin console - by selecting the check box for "Debug Enabled" property under Environment > Machine > Configuration > Node Manager in the Admin console.
    I could locate the MBean name to 'NodeManagerMBean' and the property to 'DebugEnabled', but I'm not sure how to script it.
    Can anybody please guide me?
    Thanks in advance
    Edited by: vikascv on Apr 29, 2009 9:23 AM

    Here you go
    Enable Node Manager debug using WLST
    <a class="jive-link-external" href="http://www.togotutor.com">http://www.togotutor.com</a> (Learn Programming and Administration for Free at Togotutor)
    def connection_to_Admin():
    try:
    connect(username, password, URL)
    except wlst.WLSTException, ex:
    print "Caught exception while connecting: %s" % ex
    else:
    print "------- Connected successfully! ---------"
    connection_to_Admin() #Calling the connect Function
    edit()
    startEdit()
    cd('/Machines/MS1/NodeManager/Machine_1')
    cmo.setDebugEnabled(true)
    activate()
    Thanks
    Togotutor
    <b><a class="jive-link-external" href="http://www.togotutor.com">http://www.togotutor.com</a> (Learn Programming and Administration for Free)</b><</td>

  • Unable to edit XQuery map

    Is anyone else having problems editing XQuery maps in WL Workshop? I have created
    my own schema and then use it to map the input parameters to internal Java types
    for a Web Service. The XQuery editor works fine the first time - that is I bring
    up the graphical editor and draw the lines to define the mapping. After I close
    the editor, I am unable to open up the map again. I get an XQuery Transformation
    error as follows: "Failed to parse the XQuery after user edits". This even happens
    if I try to open a map in the BEA examples project (i.e. InputMapMultiple.jws).
    I am using BEA Platform 8.1 sp2. I opened a case for this issue(482983) and
    it is still being researched, so I thought I would see if anyone else reading
    these newsgroups had some suggestions.

    Hi Bob,
    Yes, this is a known issue.
    A bug report CR168591 has been created to address the issue. Engineering is looking
    into it.
    Let me know if you have any further questions.
    Thanks a lot,
    Vimala Ranganathan
    "Bob H" <[email protected]> wrote:
    >
    Is anyone else having problems editing XQuery maps in WL Workshop? I
    have created
    my own schema and then use it to map the input parameters to internal
    Java types
    for a Web Service. The XQuery editor works fine the first time - that
    is I bring
    up the graphical editor and draw the lines to define the mapping. After
    I close
    the editor, I am unable to open up the map again. I get an XQuery Transformation
    error as follows: "Failed to parse the XQuery after user edits". This
    even happens
    if I try to open a map in the BEA examples project (i.e. InputMapMultiple.jws).
    I am using BEA Platform 8.1 sp2. I opened a case for this issue(482983)
    and
    it is still being researched, so I thought I would see if anyone else
    reading
    these newsgroups had some suggestions.

  • Request Class in Work Manager using WLST

    Hi,
    How can I configure a fair share request class and assign it to a WorkManager using WLST ?
    Edited by: Chintan Parekh on Jul 10, 2011 11:53 PM

    Hi,
    i m not sure whether it's an issue with Spring or not. But i tried using Thread.sleep(1000) in a Simple webapplication to see Workmanagers works properly or not. I found that it works extremely great: http://weblogic-wonders.com/weblogic/2010/01/24/workmanager-at-webapplication-level/
    Thanks
    Jay SenSharma

  • 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

  • Create a persistent JDBC Store using WLST

    Hi,
    I want to create persistent JDBC store. i am unable to set the value for Datasource using WLST set command. Below are the steps which I followed. Please help me out.
    connect('weblogic','welcome1','t3://hostname:port')
    edit()
    startEdit()
    servermb=getMBean("Servers/soa_server1")
    ts = create('SampleJMSDataStore','JDBCStore')
    ts.addTarget(servermb)
    cd('JDBCStores/SampleJMSDataStore')
    set('DataSource','SOADataSourceName')
    activate()
    After I executed above commands, i logged into Admin console to check whether the values are set. But it is not. please let me know how to solve this issue.
    Thanks,
    Gomathi

    Which is the output of the script? Do you receive any errors?

  • How to Upload XSD into MDS by using WLST/ANT only

    Hi,
    Can anyone help me out how to upload an XSD into MDS using WLST/ANT only (Not JDEV)
    Please help me out its urgent
    Edited by: 943121 on Dec 28, 2012 8:11 AM

    If you are using AIA, then you will have MDS deployment scripts. Check this link for details - http://docs.oracle.com/cd/E23549_01/doc.1111/e17361/ch18.htm#BABGHIGG
    If not AIA, then you need to build custom ant scripts which will use the api "com.soamds.util.MdsImportTask" for mds deploy and "com.soamds.util.MdsDeleteTask" for mds undeploy.
    Hope this helps.
    -Sriharish.

  • Grant Datasource resume actions to the Operator using WLST?

    Hi gurus,
    I'm trying to grant the JDBC datasource suspend/resume action to the 'Operator' role. I understand this is an admin task and the 'Operator' role cannot do this. I've tried to edit weblogic.management.runtime -> JDBCDataSourceRuntime -> suspend/resume policy Mbean via the JMX editor and added the Opertor role in a new policy, but I haven't been successful.
    Is it possible to provide a user with a script (which can run as an Admin user), without providing the admin credentials to an operator user, so that he can resume a suspended data source?
    Thanks.

    Hi I am trying to test my conncetion pool using WLST testPool()..
    Here are the steps i followed
    wls:/Mydomain/domainRuntime/ServerRuntimes/ms1/JDBCServiceRuntime/ms1/JDBCDataSourceRuntimeMBeans/testdatasrc> x = cmo.testPool()
    wls:/Mydomain/domainRuntime/ServerRuntimes/ms1/JDBCServiceRuntime/ms1/JDBCDataSourceRuntimeMBeans/testdatasrc>print x
    None
    Getting value of x ="None" (i did test from admin console test success)
    If i uncheck TestConncetionsOnReserve and apply above wlst command getting same error what i am getting in admin console.
    "Warning! Connectivity to backend database not verified. This is either because required connection pool attribute "TestConnectionsOnReserve" has not been enabled, or an invalid value has been specified for attribute "TestTableName". Please check the server log for more details.. "
    Only case when test is succesful i am getting "*None*"
    Any help
    Thanks
    Subba

  • Configuring Credential mapper using WLST script

    Is it possible to use a wlst script to define a new credential mapper.i.e.to [perform the following steps:
    Check Use cross-domain protocol.
    And then fill in the the values of the attributes which follow like remote host remote user and remote password.
    I tried using the wlst recording for the same.However got the following message.
    A security change to a role, policy, user, group or credential mapping was made, but this change was not recorded.
    I was wondering if we can access the security MBeans using WLST.
    Please advise.
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    It is possible if you export the properties with:
    connect(url='t3://localhost:7001',adminServerName='AdminServer',timeout=60000)
    serverConfig()
    cd('/')
    currentDomainName=cmo.getName()
    cd('serverConfig:/SecurityConfiguration/' + currentDomainName + '/Realms/myrealm/CredentialMappers/DefaultCredentialMapper')
    prop=Properties()
    cmo.exportData('DefaultCreds','/tmp/credentialmapper_properties.txt',prop)Edit them, then import them with:
    cmo.importData('DefaultCreds','/tmp/credentialmapper_properties.txt',prop)You can list the Credential Mapper configuration with:
    connect(url='t3://localhost:7441',adminServerName='AdminServer',timeout=60000)
    serverConfig()
    cd('/')
    currentDomainName=cmo.getName()
    cd('serverConfig:/SecurityConfiguration/' + currentDomainName + '/Realms/myrealm/CredentialMappers/DefaultCredentialMapper')
    cursor=cmo.listMappingsByPattern('*',10)
    while cmo.haveCurrent(cursor):
        # A resource ID looks like:  'type=<remote>, protocol=cross-domain-protocol, remoteHost=testDomain'
        current_mapping_resource_id=cmo.getCurrentMappingResourceID(cursor)  
        cmo.getRemoteUserName(current_mapping_resource_id,'cross-domain')
        cmo.advance(cursor)
    cmo.close(cursor)See also: [url http://download.oracle.com/docs/cd/E12839_01/web.1111/e13707/security_data_migration.htm]Securing WebLogic Server 11g Release 1 (10.3.1) - Migrating Security Data
    Edited by: Mircea Vutcovici on Jun 22, 2011 3:49 PM

  • Domain creation using WLST offline mode

    Hi,
    We are migrating from WL8.1SP5 to WL10MP2. After reading through the various options (WLST online, WLST offline, WLST.configToScript(), and Configuration Wizard) , I have concluded that we will use WLST in offline mode to create domains in our prod, qa, and dev environments. In 8.1 I had a silent script that would create domains for me repeatedly in any environment very easily. I want to map this script into the corresponding SOME_NAME.py script to be used for WL10MP2 domain.
    I have the BEA provided basicWLSDomain.py (please see below) script. I have difficulty in understanding more than half of that script! I know the basic concept is to traverse the MBean tree and creat and/or set parameters. But I do not know which MBean I will need to modify/create.
    Example 1:
    readTemplate("C:/bea/wlserver_10.0/common/templates/domains/wls.jar")
    cd('Servers/AdminServer')
    Q1] I went through http://e-docs.bea.com/wls/docs90/wlsmbeanref/core/index.html but could not find either ServersMBean or AdminServerMBean.
    Example 2:
    cd('/')
    create('myJMSServer', 'JMSServer')
    cd('/')
    create('myJmsSystemResource', 'JMSSystemResource')
    cd('JMSSystemResource/myJmsSystemResource/JmsResource/NO_NAME_0')
    Q2] What is a JMSSystemResource? (If I remember correctly, there is no such thing in WL8.1)
    Q3] What is JmsResource?
    Example 3:
    cd('/')
    create('myDataSource', 'JDBCSystemResource')
    cd('JDBCSystemResource/myDataSource/JdbcResource/myDataSource')
    create('myJdbcDriverParams','JDBCDriverParams')
    cd('JDBCDriverParams/NO_NAME_0')
    set('DriverName','com.pointbase.jdbc.jdbcUniversalDriver')
    set('URL','jdbc:pointbase:server://localhost/demo')
    set('PasswordEncrypted', 'PBPUBLIC')
    set('UseXADataSourceInterface', 'false')
    create('myProps','Properties')
    cd('Properties/NO_NAME_0')
    create('user', 'Property')
    cd('Property/user')
    cmo.setValue('PBPUBLIC')
    cd('/JDBCSystemResource/myDataSource/JdbcResource/myDataSource')
    create('myJdbcDataSourceParams','JDBCDataSourceParams')
    cd('JDBCDataSourceParams/NO_NAME_0')
    set('JNDIName', java.lang.String("myDataSource_jndi"))
    cd('/JDBCSystemResource/myDataSource/JdbcResource/myDataSource')
    create('myJdbcConnectionPoolParams','JDBCConnectionPoolParams')
    cd('JDBCConnectionPoolParams/NO_NAME_0')
    set('TestTableName','SYSTABLES')
    Q4] Can you please explain the above snippet line by line?
    Q5] Why are certain attributes set like this --- set('TestTableName','SYSTABLES') while certain attributes like below are set like this -- myq.setJNDIName('jms/myqueue')?
    Example 4:
    myq=create('myQueue','Queue')
    myq.setJNDIName('jms/myqueue')
    myq.setSubDeploymentName('myQueueSubDeployment')
    cd('/')
    cd('JMSSystemResource/myJmsSystemResource')
    create('myQueueSubDeployment', 'SubDeployment')
    Q6] What us a SubDeployment?
    I apologize for the long question. I would greatly appreciate any help!
    Thanks!
    Edited by: user10045656 on Oct 29, 2008 11:03 AM
    Edited by: user10045656 on Oct 29, 2008 11:06 AM

    1 - What is the best way to create a schema, for reporting application, during automated domain build process as we need to create new domains from the script and also be able to start and deploy applications on it. which will also require to have db schema for reporting application.
    My suggestion would be to execute the scripts under /neelapu/bea/post31/RC4-samples/osb_10.3/dbscripts/oracle/*.sql with your automated process. OSB requires two simple tables WLI_QS_REPORT_DATA and WLI_QS_REPORT_ATTRIBUTE.
    If reporting is not required then we can modify (I guess) in wlst offline mode to delete the below applications from domain.
    <app-deployment>
    <name>JMS Reporting Provider</name>
    <target>osb_server1</target>
    <module-type>ear</module-type>
    <source-path>/neelapu/bea/xyz/load4/Oracle_OSB1/lib/common/jmsreportprovider.ear</source-path>
    <deployment-order>125</deployment-order>
    <security-dd-model>DDOnly</security-dd-model>
    </app-deployment>
    <app-deployment>
    <name>Message Reporting Purger</name>
    <target>osb_server1</target>
    <module-type>ear</module-type>
    <source-path>/neelapu/bea/xyx/load4/Oracle_OSB1/lib/common/msgpurger.ear</source-path>
    <deployment-order>126</deployment-order>
    <security-dd-model>DDOnly</security-dd-model>
    </app-deployment>
    Thanks
    Manoj

  • JMS Runtime  - production pause using WLST OR runtime mbeas ?

    hi there,
    is there any way to script the "production pause" and "production resume" of JMS Server at runtime using WLST or any other script?.
    need help at the earliest.
    regards,

    USER='weblogic'
    PASSWORD='weblogic'
    ADMIN_URL='t3://localhost:9000'
    SERVER_NAME='ManServer_1'
    JMS_SERVER='JMSServer_1'
    JMS_MODULE='Module.1'
    DESTINATION='Queue.1'
    connect(USER,PASSWORD,ADMIN_URL)
    domainRuntime()
    cd('ServerRuntimes/'+SERVER_NAME+'/JMSRuntime/'+SERVER_NAME+'.jms/JMSServers/'+JMS_SERVER+'/Destinations/'+JMS_MODULE+'!'+DESTINATION)
    cmo.pauseProduction()
    disconnect()
    exit()
    For resume use cmo.resumeProduction()
    Edited by: atheek1 on Jun 11, 2010 5:56 AM

  • 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()

Maybe you are looking for

  • How to use COM component in Forms 6.0 ??

    Dear All, We are developing Retail-Chain s/w and have a 3rd party s/w for credit card and they give a .dll (not a ordinary dll ), .tlb file and sample VB code to integrate the 3rd party s/w. Now i want to do the same task in my application using Form

  • Receiver File adapter not able to handle the special Char

    We have asynchronous interface from MDM file to CRM (Seibel) file. XI picks up the file from MDM and process them with transformation. It is observed that if the file contains the special character such as ®, it is not writing the output file. The tr

  • ABAP proxy transmit data to XI asynchronous,how to capture the status

    We are facing a problem when using ABAP proxy to transmit record asynchronous to XI system. Situation is we canu2019t capture the status in   XI system , as if XI failed to receive the record, in R3 we need to update the record as not successful rece

  • Cooling fan 902

    Suddenly yesterday I turned on my computer and it ran fine but then the screen went black so I turned it off and when I turned it back on it gave me a black screen and said "the bios has detected that your cooling fan is not working...press enter to

  • Problems with Premiere Elements 9.0.1 on Mac OS X Lion

    Hi, I recently upgraded to Mac OS X Lion and I am having several stability issues with Premiere Elements 9.0.1 now.  None of these issues occurred on Snow Leopard.  I experienced these issues on a machine that was upgraded from Snow Leopard to Lion a