API for modifyting config.xml (or reading it)

In 5.1 there used to be T3ServicesDef.config() to get the weblogic.properties
file.
Since this file has been changed to XML format, is there any API
to read it or modify it.
In the Admin Guide it says:
"WebLogic Server includes a configuration Application Programmatic
Interface (API) which can be used by programs to modify configuration
attributes of resources in the domain. "
but I don't find any documentation on API and T3Services.config()
has disappeared in 6.0.
Can someone help me.
Sushil

There are Config MBeans to get information about the server configuration. Have
a look at the Javadocs for the weblogic.management.configuration package for more
info...
Sushil Goel wrote:
In 5.1 there used to be T3ServicesDef.config() to get the weblogic.properties
file.
Since this file has been changed to XML format, is there any API
to read it or modify it.
In the Admin Guide it says:
"WebLogic Server includes a configuration Application Programmatic
Interface (API) which can be used by programs to modify configuration
attributes of resources in the domain. "
but I don't find any documentation on API and T3Services.config()
has disappeared in 6.0.
Can someone help me.
Sushil

Similar Messages

  • Does it actualy matter what you have on your remote server for services-config.xml

    Hi there, does it actualy matter what you have on your remote server for services-config.xml ?
    Does the information not just get baked into the flex 3 app at compile time on my local computer?

    I don't think this is right!
    If you don't have any config file, you can set up a remote object. The config file handles the default settings.
    If you implement something like
        <mx:RemoteObject id="myService"
            destination="amf"
            source="remoteServiceName"
            endpoint="http://myDomain/amfphp/gateway.php"
            fault="handleFault(event)">
            <mx:method name="test" result="handleResult(event)"/>
        </mx:RemoteObject>
    it will work!
    Dany

  • Question for faces-config.xml

    How can I make <redirect/> as the default behavior in the faces-config.xml?
    Thanks.
    Shawn

    Thanks Frank.
    JSF 2.0 has introduced a new scope, flash scope, for just such a requirement. With the flash scope, the request scoped variables are available after a redirect. Variables in the Flash scope are available for the subsequent request and then cleared.

  • How to  configure  for struts-config.xml

    Hi
    I am having a JSp which is Mapped to anothr action through the registration.The registartion is mapped to action
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@ page import="org.apache.struts.validator.ValidatorPlugIn" session="true" %>
    <%@ page import="org.apache.struts.Globals" %>
    <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
    <%@ taglib uri="/tags/struts-html" prefix="html" %>
    <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
    <html:html locale="true">
    <head>
    <title><bean:message key="index.title"/></title>
    <html:base/>
    </head>
    <body bgcolor="white">
    <logic:notPresent name="<%= Globals.MESSAGES_KEY %>" >
      <font color="red">
        ERROR:  Application resources not loaded -- check servlet container
        logs for error messages.
      </font>
    </logic:notPresent>
    <%-- :TODO: Need code to do this with moudles
    <logic:notPresent name="<%= ValidatorPlugIn.VALIDATOR_KEY %>" >
      <font color="red">
        ERROR:  Validator resources not loaded -- check Commons Logging
        logs for error messages.
      </font>
    </logic:notPresent>
    --%>
    <h3><bean:message key="registrationForm.title"/>1222AAAAAAAAAAAAA</h3>
    <ul>
      <li><html:link action="Test.jsp">Test212121.jsp</html:link >
       <li><html:link action="/registration"><bean:message key="registrationForm.title"/></html:link></li>
       <%System.out.println("hellooooooooooooo");%>
       <!-- :TODO: Should have a non-JaveScript message-by-field example -->
       <li>
          <html:link action="/jsRegistration"><bean:message key="jsRegistrationForm.title"/></html:link> -
          <bean:message key="jsRegistrationForm.description"/>
       </li>
       <li>
          <html:link action="/multiRegistration"><bean:message key="multiRegistrationForm.title"/></html:link> -
          <bean:message key="multiRegistrationForm.description"/>
       </li>
    </ul>
    <a href="registration.jsp">Registration Test</a>
    <p> </p>
    <h3><bean:message key="typeForm.title"/></h3>
    <ul>
       <li>
          <html:link action="/type"><bean:message key="typeForm.title"/></html:link> -
          <bean:message key="typeForm.description"/>
       </li>
       <li>
          <html:link action="/editJsType"><bean:message key="jsTypeForm.title"/></html:link> -
          <bean:message key="jsTypeForm.description"/>
       </li>
    </ul>
    <p> </p>
    <h3>Change Language | Changez Le Langage</h3>
    <ul>
       <li><html:link action="/locale?language=en">English | Anglais</html:link></li>
       <li>
          <html:link action="/locale?language=fr">French | Francais</html:link> -
          <bean:message key="localeForm.fr"/>
       </li>
       <li>
          <html:link action="/locale?language=fr&country=CA">French Canadian | Francais Canadien</html:link> -
          <bean:message key="localeForm.frCA"/>
       </li>
       <li>
          <html:link action="/locale?language=ja" useLocalEncoding="true">Japanese | Japonais</html:link> -
          <bean:message key="localeForm.ja"/>
       </li>
    </ul>
    <p> </p>
    ==============struts-config.xml=================\<?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
    "http://struts.apache.org/dtds/struts-config_1_2.dtd">
    <struts-config>
    <!--============================================== Form Bean Definitions -->
    <form-beans>
    <!-- Registration form bean -->
    <form-bean name="registrationForm" type="validator.RegistrationForm" />
    <!-- Multi-Part Registration form bean -->
    <form-bean name="multiRegistrationForm" type="validator.RegistrationForm" />
    <!-- Type form bean -->
    <form-bean name="typeForm" type="validator.TypeForm" />
    <!-- JavaScript Type form bean -->
    <form-bean name="jsTypeForm" type="validator.TypeForm" />
    </form-beans>
    <!-- ======================================== Global Forward Definitions -->
    <global-forwards>
    <forward name="home" path="/index.jsp" />
    </global-forwards>
    <!-- ========================================= Action Mapping Definitions -->
    <action-mappings>
    <action path="/welcome" forward="/index.jsp" />
    <!-- Registration Action
         -->
    <forward name="registration" path="/registration.do" /> //// ==========>here it is mapped
         <action path="/registration" forward="/registration.jsp" />
         <action path="/registration-submit" type="validator.RegistrationAction" name="registrationForm" scope="request" validate="true" input="input">
    <forward name="input" path="/registration.do" />
    <forward name="success" path="/index.jsp" />
    </action>
         <action path="/jsRegistration" forward="/jsRegistration.jsp" />
    <!-- Multi-Part Registration Action -->
    <action path="/multiRegistration" forward="/multiRegistration1.jsp" />
    <action path="/multiRegistration-submit" type="validator.MultiRegistrationAction" name="multiRegistrationForm" scope="request" validate="false">
    <forward name="success" path="/welcome.do" />
    <forward name="input1" path="/multiRegistration1.jsp" />
    <forward name="input2" path="/multiRegistration2.jsp" />
    </action>
    <!-- Type Action -->
    <action path="/type" forward="/type.jsp" />
    <action path="/type-submit" type="validator.TypeAction" name="typeForm" scope="request" validate="true" input="input">
    <forward name="input" path="/type.do" />
    <forward name="success" path="/welcome.do" />
    </action>
    <!-- JavaScript Type Action -->
    <action path="/editJsType" type="validator.EditTypeAction" scope="request" validate="false">
    <forward name="success" path="/jsType.do" />
    </action>
    <action path="/jsType" forward="/jsType.jsp" />
    <action path="/jsType-submit" type="validator.TypeAction" name="jsTypeForm" scope="request" validate="true" input="input">
    <forward name="input" path="/editJsType-submit.do?typeForm.reset=false" />
    <forward name="success" path="/welcome.do" />
    </action>
    <!-- Locale Action -->
    <action path="/locale" type="validator.LocaleAction" name="localeForm" scope="request">
    <forward name="success" path="/welcome.do" />
    </action>
    </action-mappings>
    <!-- ============================================= Controller Definition -->
    <controller inputForward="true" />
    <!-- ===================================== Message Resources Definitions -->
    <message-resources parameter="validator.MessageResources" />
    <!-- ============================================ Plug Ins Configuration -->
    <!--
    Add multiple validator resource files by setting the pathnames property
    with a comma delimitted list of resource files to load.
    -->
    <plug-in className="validator.ValidatorPlugIn">
    <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validator/validation.xml" />
    <set-property property="stopOnFirstError" value="true" />
    </plug-in>
    </struts-config>
    <html:img page="/struts-power.gif" altKey="index.powered"/>
    </body>
    </html:html>

    Hey,
    U can do it the way u want. Use DispatchAction Class instead of Action Class. Just go through the documentation for this. If u still have problem let me know.
    Thanks
    KM
    Hi,
    I am new to struts and when i am doing my application i find some >>difficulty i.e,
    I have two buttons on a jsp page Save,Delete.when I click on >>save ,saveAction must be called.if we click delete deleteAction to be >>called.
    for this how can I configure in struts-config.xml file. and how it >>knows which button has been clicked.
    Can any one please guid me.
    Thanks

  • Searching for SESCrawlerExport config xml

    Where would I go to find the repository name and config XML URL generated by SESCrawlerExport? I am creating a Content Server source in Oracle Enterprise Search. When I click to start the SESCrawler on its way to create an image of a repository I get a message that the SESCrawler is already running. Great! Where is this config XML? I don't know what the repository had been named when the SESCrawler was first started. I was not present when it was first started and there is no one I can ask that has worked with UCM enough to be able to find it.
    Keith
    Edited by: user8698823 on Feb 4, 2010 11:55 AM

    Hi
    config<crawler>.xml and the repository image would be present in the installed directory for SES . It is there that the files are created everytime you start the Crawler export from content server.
    The details where the SES is installed and where the content server is looking to put the xml files are there in
    config.cfg under <cs home>/data/component/sescrawlerexport
    In the config.cfg sceFeedLoc is where the image and the config xml would be residing.
    Thanks
    Srinath
    Edited by: srinathmenon on Feb 5, 2010 2:09 PM

  • Looking for sample config.xml

    After some changes config.xml is corrupted. Need a config.xml with following descriptors -
    <admin-server-name>
    <app-deployment>
    <jms-server>
    <mail-session>
    <jms-system-resource>
    <jdbc-system-resource>

    If you had configuration auditing enabled, you'd have backup copies in a configArchive folder. You should enable this; by default it is not.
    You can create a configuration quickly by just using the configuration builder script in linux ( common/bin/config.sh ) or the configuration wizard in windows.

  • Use  LogRotationType="date" for WebServer in config.xml eats 99% CPU

    FYI. By accident I found out to set LogRotationType="date" for WebServer in config.xml eats 99%
    of CPU on my NT server constantly. To remove it fixed the problem. I don't understand why, assume
    this may be a bug.
    The is the setup I had for WebServer in my config.xml.
    <WebServer
    HttpsKeepAliveSecs="120"
    KeepAliveSecs="60"
    LogFileName="./config/myserver/logs/access.log"
    LogRotationType="date"
    LoggingEnabled="true"
    Name="myserver"
    Targets="myserver"
    />

    This looks like a bug for technical support. I suggest that you submit a
    bug report to [email protected]
    Be sure to include a complete test case.
    Michael Girdley
    BEA Systems
    Learning WebLogic? http://learnweblogic.com
    "Vivien" <[email protected]> wrote in message
    news:3a704ace$[email protected]..
    >
    FYI. By accident I found out to set LogRotationType="date" for WebServerin config.xml eats 99%
    of CPU on my NT server constantly. To remove it fixed the problem. Idon't understand why, assume
    this may be a bug.
    The is the setup I had for WebServer in my config.xml.
    <WebServer
    HttpsKeepAliveSecs="120"
    KeepAliveSecs="60"
    LogFileName="./config/myserver/logs/access.log"
    LogRotationType="date"
    LoggingEnabled="true"
    Name="myserver"
    Targets="myserver"
    />

  • � XML Api for 1.3 java version?

    Hello friends!! I need a little help...
    I always have work in my programms with jbuilder, using java 1.3 version. The programs after will be installed in pc's where have de jre 1.3 or the 1.4 java version.
    I need now to do a module wich need to work with XML.. exactly read xml only, for take some information.
    I tried to use an famous api i have discover by "google":
    import org.xml.sax.*But it not works in java 1.3!! Only for 1.4 or supperior...
    Do you know any api for work with xml compatible with 1.3? I've tried to look this for google.com but it's a very complicated for me...
    Thanks, all i need is the name : )

    If you need to work with java 1.3 you can use the Xerces XML parser
    http://xerces.apache.org/xerces2-j
    You only have to download it and add the jars to your classpath (see the xerces documentation for details)
    Xerces-J also contains the org.xml.sax.* package
    http://xerces.apache.org/xerces2-j/javadocs/api/index.html

  • DTD for config.xml is this accurate.

    Where is the current DTD for the config.xml. The one I copied from the bea web site
    seems inconsistent with the config.xml generated when I did the installation. I
    tried using it with XEmacs and psgml. It didn't like the attributes in the Domain
    tag. Perhaps I am doing something wrong, it's been known to happen. Before I start
    trying to debug this on my side, I'd like to know if I have the correct DTD. Can
    some one clarify this for me?
    STH

    Deepak Vohra <[email protected]> wrote:
    Steven,
    The config.xml DTD :
    http://edocs.bea.com/wls/docs70/config_xml/configdtd.html#111643
    Deepak
    Thanks Deepak,
    That generates errors when I open it in Tibco's Schema Editor. For one it didn't
    like the '(Deprecated)' strings. There were a few values assigned as default, which
    were not in the list of constraints, and, perhaps a couple of other reported errors.
    Also, once I fixed up the few error I encountered in the DTD, I found errors in
    the config.xml generated by WL 7.0. For example there are attributes in the xml
    file which are not in the DTD. One of these is "Deployed" in the "Application" Element.
    Methinks something is amiss here.
    STH

  • Clarification on services-config.xml files for RemoteObject services

    I am currently preparing an AMFPHP environment for exchanging
    data with Flex and AIR applications. I can connect to the services
    via Netconnection, but using RemoteObject won't work.
    Documentation for the necessary configuration files
    (services-config.xml, remoting-config.xml and the like) is, um,
    sparse and seems to be slightly incorrect or misleading at times.
    So I'm looking for clarification about
    changes in the syntax of services-config.xml · in
    examples for Flex 2.01, there are "class" attributes with values
    beginning with "flex.", in Flex 3 examples the attribute name has
    changed to "type", values beginning with "flex." have mostly
    vanished and been replaced with similar looking values beginning
    with "mx.". Are "flex." and "mx." prefixes interchangable?
    correct syntax for linking other files into
    services-config.xml · the livedocs state that Adobe
    prefers linking files into services-config.xml (using something
    like <service-include file-path="remoting-config.xml"/>)
    instead of defining all service parameters there. But in the
    example from the Flex 2.01 livedocs, the root element of the
    service-config.xml file is <services> instead of
    <services-config>. Assuming that <services> is meant as
    a
    child of the <services-config> root element, there
    seems to be a mandatory <service> child element missing.
    That's either intended, illogical, and misleading, or simply
    erroneous.
    which classes are still valid in Flex 3, which have changed?
    · Most of the examples for using RemoteObjects out there are
    for FlexBuilder 2 (e.g.
    here)
    and don't seem to work with FlexBuilder 3 Beta 2. But there is no
    statement to be found in the Flex 3 documentation about what has
    changed.
    a meaningful example for services-config.xml · In the
    Flex 3 Beta 2 documentation here are plenty of references to using
    services-config.xml, as I can find even information about the
    ServerConfig class in the ActionScript 3 Language Reference, a sort
    of wrapper class for the information provided in
    service-config.xml, but there is no information about what
    constitutes a
    working service-config.xml configuration (which XML tags of
    what names containing what attributes need to be present).
    As I'd really like to create cutting-edge Flex and AIR OCC
    applications, I'm eager to have those ambiguities clarified.
    Best regards,
    Cathness

    From the docs it looks like this is used for web services as
    well:
    http://livedocs.adobe.com/flex/201/html/dataservices_config_100_3.html#260186
    If this isn't the right config file, which file should I be
    looking at?
    Mike

  • JSR-173: Streaming API for XML (StAX)

    http://www.jcp.org/en/jsr/detail?id=173
    "The Streaming API for XML (StAX) is a Java based API for pull-parsing XML."
    BEA is the spec lead.

    http://www.xml.com/pub/a/2003/09/17/stax.html

  • Multiple Apex Listeners on one server trouble with apex-config.xml

    I'm using 0C4J to deploy apex on a windows server. I want to be able to have multiple instances of OC4J running pointing to different databases. I've read through documentation and forum posts and this looks simple enough.
    I've got one instance running at E:\OC4J and working fine. I've to added a second OC4J instance at E:\OC4J2. I've rebuilt and redeployed the apex.war file after editing web.xml to specify a new location for apex-config.xml. I'm trying to specify the config directory as E:\OC4J2\config but can't seem to get the syntax right, because it keeps picking up the default file the first OC4J instance is using.
    <context-param>
    <param-name>config.dir</param-name>
    <param-value>E:\oc4j2\config</param-value>
    </context-param>
    I've tried multiple versions of the path E:\oc4j2\config, E:/oc4j2/config, /oc4j2/config, \oc4j2\config but none seem to work.
    Could anybody confirm the proper syntax for specifying the path to apex-config.xml in web.xml on a windows server?
    Thanks in advance

    Got it working
    Had the syntax right.
    <context-param>
    <param-name>config.dir</param-name>
    <param-value>E:\oc4j2\config</param-value>
    </context-param>
    Issue seems to be if there is an apex-config.xml file at C:\Users\username\AppData\Local\Temp\apex it picks up on it first.
    Once I had both web.xml files specified to different directories for the config file and I deleted the one at C:\Users\username\AppData\Local\Temp\apex things worked as expected.
    Thanks

  • Services-config.xml documentation?

    Hello -
    I'm getting a bit frustrated, not being able to find any complete documentation for services-config.xml and related config files (remoting-config.xml, messaging-config.xml, etc). Anyone know where I can find that? All I can find are various blog posts that gloss over lots of details.  If it's in the Flex 4 docs, I sure haven't found it.
    Thanks in advance.
    Cory

    Thanks for the reply. I had incorrectly thought that the
    proxy was an embedded/transparent entity within the AIR engine. I
    had set the endpoint URI to be the webservice, not the URI of a
    some kind of AMF proxy.
    My initial goal was to be able to set HTTP Authentication
    Headers, as in 'Authentication: Basic ...'. I'd be a bad engineer
    if I set up a proxy just so that I could use
    AbstractWebService.set[Remote]Credentials(). My first attempt at
    not using a proxy was to do:
    var ws:WebService = new WebService();
    ws.useProxy = false;
    ws.wsdl = '...';
    ws.endpointURI = '...';
    var header:URLRequestHeader =
    new URLRequestHeader("Authentication", "Basic ...");
    ws.httpHeaders = header;
    The header was being ignored however. The documentation
    available to me isn't doing much to tell me if httpHeaders:Object
    wanted a URLRequestHeader or just a string, or just a name:value
    pair object ... none of them seem to make a difference. Is the
    httpHeaders parameter only used in the useProxy=true setting?
    Thanks again for the help. Any more help in pushing me in the
    right direction toward doing HTTP Authenticated SOAP communication
    would be greatly appreciated.

  • Data-management-config.xml issue

    My question is if i can have multiple
    data-management-config.xml files? for a better administration i am
    separating it into multiple files but when trying to access a
    destination it fails so i assume this is not possible, is that
    right?

    Ok imagine i have 30 destinations in one
    data-management-config.xml, that's a lot of destinations, so when i
    want to modify something in that file i need to look all over it to
    find what i want, so instead of that it would be nice to being able
    to have 3 data-management-config.xml files, with 10 destinations on
    each, that way it would be easier to manage and update them.
    This is requirement of the QA department, they don't want to
    review a gigantic data-management-config.xml, they would prefer to
    manage 3 or 4 files instead of one.
    So the question is: IS this possible? or do i necessarily
    need to use one and just one data-management-config.xml?

  • Jps-config.xml (No such file or directory)

    Hi Experts,
    I created a Java proxy for a web service, deployed on a separate server (not WLS), with no ws policy. When I used POJO client, the invocation of the web service worked fine. But when I put the same invocation code in a concurrent program in EBS R12.2 (running on WLS), I got error when running the program:
    oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
    SEVERE: java.io.FileNotFoundException: /u01/R122_EBS/inst/apps/xxxx/logs/appl/conc/log/./config/jps-config.xml (No such file or directory)
    I didn't use any JPS related feature in the proxy client. I don't know why it asks for jps-config.xml in EBS 12.2.
    Any input is appreciated.
    Thanks.

    Thanks Hussein!
    I saw this from the note ID 972284.1:
    Output:-
    30/11/2009 6:27:24 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory initDefaultConfiguration
    SEVERE: java.io.FileNotFoundException: D:\JDeveloper\Middleware_JDev11.1.1.2\jdeveloper\jdev\mywork\SimpleOWSM_Application\Proxy\.\config\jps-config.xml (The system cannot find the path specified)
    INFO: WSM-09004 Component auditing cannot be initialized.
    INFO: WSMAgent is initialized for category=security, function=agent.function.client, topologyNodePath=TopologyRoot/Service/null/SimpleWSPort, isJ2EE=false
    INFO: empty.bindings
    INFO: empty.bindings
    INFO: Recipient Alias property not configured in the policy. Defaulting to encrypting with signers certificate.
    Hello >> Peter Pan
    Looks like it's the output when successful. Does that mean the SEVERE FileNotFound Exception can be ignored? If the jps-config.xml is not used in the example, why the runtime keeps looking for it?
    Appreciate your help very much.

Maybe you are looking for