How to access MultiDataSource in Weblogic 10.3  using jmx

Hi ,
I am looking for some sample jmx code or document which provides enough details to access JDBC Multi DataSource in Weblogic 10.3.
Thanks in Advance

http://www.oracle.com/technology/products/weblogic/howto/rac/index.html
For the java code to do it you can start a WLST recording before you create the multi-data source which should get you started.

Similar Messages

  • How to access the Text Frame, when we use scrollable frame,

    Hi Friends,
    How to access the Text Frame, when we use scrollable frame,
    Thank you,
    [ Nav ]

    That's the same question:
    how can I access something (a page item) on a page…
    Answer: you need something unique in that object you can get a handle on.
    Or you use the selection a user of your script is doing and work with that selection…
    A "scrollable frame" is nothing special. What it makes it a "scrollable frame" is the DPS software.
    So you have to look for attached labels on the object, that identify the object for the PDS plug-in "Overlay Creator" as a "scrollable frame". That's possible with the "extractLabel("KeyString")" function. But you need to know the appropriate key-string in advance.
    In another of your thread in the DPS forum, I basically answered the question how to obtain those key-strings.
    When knowing the key-string you could loop through all your page items (you can skip all text frames) in the allPageItems-collection, to identify the "scrollable frame" by extracting the right label.
    If you have more than one "scollable frames" you need a second unique identifier for the particular object.
    That could be nearly any property.
    Keep in mind, there is no "scrollableFrames" collection in the DOM !
    Uwe

  • How to Create MultiDataSource in Weblogic 10.3

    Hi ,
    I am looking for some sample code (java code not the WLS code) or document which provides enough details to create JDBC Multi DataSource in Weblogic 10.3.
    I am able to create the dataSource but not able to do for MDS.
    Thanks in Advance
    Edited by: user774261 on Aug 25, 2009 3:51 AM

    WebLogic Server has a scripting environment called WLST which is provided for this exact purpose.
    WLST uses Python (Jython) as a language and can facilitate the creation of WLS resources, such as datasources, multi data sources. It ultimately uses the set of WLS MBeans and the AdministrationServer to perform configuration and management operations.
    There's a specific book in the documentation which covers WLST, which I'd recommend reading to get up to speed on this:L
    http://download.oracle.com/docs/cd/E12839_01/web.1111/e13715/toc.htm
    There are some sample scripts in the WLS installation which should give you some idea of how to do what you need -- jdbc_data_source_creation.py for example.
    Further, there's also a very nice facility exposed in the WLS console to help you get going. Using the console, you can record a set of actions, which are generated out as a WLST script. This means you can go into the console, start recording, execute the sequence of steps required to construct your multi data source, and have the sequence saved into a script.
    You can then use the script as it stands, or edit it to support whatever specific changes you need.
    You could then execute the WLST script from whatever installation process you have -- there's documentation existing on how to invoke WLST as an embedded interpreter directly from Java code.
    If you want to do it purely from Java using JMX and the WLS MBeans, then take a look at the WLS JMX guide:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/e13728/toc.htm
    -steve-

  • How to access PPC contacts into my application using Flash

    Hi,
    I am new to flash lite anybody help me how to access PPC
    contacts into my application.

    Hi,
    I am new to flash lite anybody help me how to access PPC
    contacts into my application.

  • Weblogic database resources using JMX

    Does anyone have an idea on how to get user defined Datasource information from Weblogic server using JMX?
    I have tried with different ObjectNames but none of them seems to work
    ObjectName service = new ObjectName("com.bea:Name=EditService,Type=weblogic.management.mbeanservers.edit.EditServiceMBean");
    and
    connection.getAttribute(service, "JDBCSystemResources");
    Thank you very much for your help.

    I would encourage you to use WLST because it's much easier IMHO. What is your use case?
    But if you must use java, this should get you started:
    package foo;
    import java.util.Hashtable;
    import javax.management.MBeanAttributeInfo;
    import javax.management.MBeanInfo;
    import javax.management.MBeanServerConnection;
    import javax.management.ObjectName;
    import javax.management.remote.JMXConnector;
    import javax.management.remote.JMXConnectorFactory;
    import javax.management.remote.JMXServiceURL;
    public class TestJMX {
         public static void main(String[] args) throws Exception {
              JMXConnector jmxCon = null;
              try {
                   JMXServiceURL serviceUrl = new JMXServiceURL(
                             "service:jmx:t3://localhost:7011/jndi/weblogic.management.mbeanservers.edit");
                   System.out.println("Connecting to: " + serviceUrl);
                   Hashtable env = new Hashtable();
                   env.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
                             "weblogic.management.remote");
                   env.put(javax.naming.Context.SECURITY_PRINCIPAL, "weblogic");
                   env.put(javax.naming.Context.SECURITY_CREDENTIALS, "welcome1");
                   jmxCon = JMXConnectorFactory.newJMXConnector(serviceUrl, env);
                   jmxCon.connect();
                   MBeanServerConnection con = jmxCon.getMBeanServerConnection();
    //               Set<ObjectName> mbeans = con.queryNames(null, null);
    //               for (ObjectName mbeanName : mbeans) {
    //                    System.out.println(mbeanName);
                   System.out.println("***** JDBC System Resources ********" );
                   ObjectName domain = new ObjectName("com.bea:Name=medrec,Type=Domain");
                   ObjectName[] objNames = (ObjectName[]) con.getAttribute(domain, "JDBCSystemResources");
                   System.out.println("JDBCSystemResources");
                   for( ObjectName objName : objNames )
                        System.out.println( objName );
                        MBeanInfo info = con.getMBeanInfo(objName);
                        MBeanAttributeInfo[] attributes = info.getAttributes();
                        for( MBeanAttributeInfo attrInfo : attributes )
                             String name = attrInfo.getName();
                             System.out.println( name + " " + attrInfo.getType() + " " + con.getAttribute(objName, name) );
              } finally {
                   if (jmxCon != null)
                        jmxCon.close();
    }For me that prints:
    <pre>
    Connecting to: service:jmx:t3://localhost:7011/jndi/weblogic.management.mbeanservers.edit
    ***** JDBC System Resources ********
    JDBCSystemResources
    com.bea:Name=MedRecGlobalDataSourceXA,Type=JDBCSystemResource
    Parent javax.management.ObjectName com.bea:Name=medrec,Type=Domain
    Resource javax.management.ObjectName com.bea:Name=MedRecGlobalDataSourceXA,Type=weblogic.j2ee.descriptor.wl.JDBCDataSourceBean,Parent=[medrec]/JDBCSystemResources[MedRecGlobalDataSourceXA],Path=JDBCResource[MedRecGlobalDataSourceXA]
    Type java.lang.String JDBCSystemResource
    CompatibilityName java.lang.String null
    ModuleType java.lang.String null
    SourcePath java.lang.String ./config/jdbc/MedRec-jdbc.xml
    JDBCResource javax.management.ObjectName com.bea:Name=MedRecGlobalDataSourceXA,Type=weblogic.j2ee.descriptor.wl.JDBCDataSourceBean,Parent=[medrec]/JDBCSystemResources[MedRecGlobalDataSourceXA],Path=JDBCResource[MedRecGlobalDataSourceXA]
    DescriptorFileName java.lang.String jdbc/MedRec-jdbc.xml
    Notes java.lang.String null
    Name java.lang.String MedRecGlobalDataSourceXA
    SubDeployments [Ljavax.management.ObjectName; [Ljavax.management.ObjectName;@3219762f
    DeploymentPrincipalName java.lang.String null
    Targets [Ljavax.management.ObjectName; [Ljavax.management.ObjectName;@178aab40
    DeploymentOrder java.lang.Integer 100
    </pre>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How do I get the WebLogic server to use the XMLRegistry?

    I'm using WebLogic 7.0.2, and I want to use the Apache TransformerFactory and DocumentBuilderFactory
    instead of the default weblogic.* classes. I've found the documentation, where
    I define an XML Registry as follows (snippet from my config.xml)...
    <Server ListenAddress="####" ListenPort="####" Name="myserver"
    NativeIOEnabled="true" ServerVersion="7.0.2.0"
    StdoutEnabled="true" StdoutSeverityLevel="8"
    StuckThreadMaxTime="14400"
    XMLEntityCache="XMLCacheMBean_myserver" XMLRegistry="CT XML Registry">
    <COM Name="myserver"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="myserver"/>
    <JTAMigratableTarget Cluster="" Name="myserver" UserPreferredServer="myserver"/>
    <JTARecoveryService Name="myserver"/>
    <KernelDebug Name="myserver"/>
    <Log FileName="myserver/myserver.log" Name="myserver"/>
    <SSL Enabled="true" HostnameVerificationIgnored="true"
    ListenPort="###" Name="myserver"
    ServerCertificateFileName="democert.pem"
    ServerPrivateKeyAlias="demokey" ServerPrivateKeyPassPhrase="{3DES}gAuVwsR68oAlLdIfO1PAtw=="/>
    <ServerDebug Name="myserver"/>
    <ServerStart Name="myserver"/>
    <WebServer DefaultWebApp="DefaultWebApp"
    LogFileName="myserver/access.log" LoggingEnabled="true" Name="myserver"/>
    </Server>
    <XMLEntityCache Name="XMLCacheMBean_myserver"/>
    <XMLRegistry
    DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
    Name="CT XML Registry"
    SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"
    TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"
    WhenToCache="cache-on-reference"/>
    I've played aorund with xercesImpl being in and out of classpaths, etc. But no
    matter what I do, calls to TransformerFactory.newInstance creates an instance
    of weblogic.xml.jaxp.RegistrySAXTransformerFactory and DocumentBuilderFactory.newInstance()
    creates an instance of weblogic.xml.jaxp.RegistryDocumentBuilderFactory.
    I don't want to use these classes, and supposedly I can control which classes
    I will use, but it's not working for me. Has anyone been able to get this working?
    Is there anything else that I'm missing?
    Thanks,
    Ed

    I was unable to use the XMLRegistry touse the Xerces2 libraries with WebLogic 7.
    I did find in WebLogic 7 doco that the latest release of Xerces that it would
    internally support was 1.4.4 (http://e-docs.bea.com/wls/docs70/xml/xml_admin.html#1066271).
    If I wanted to use this version of Xerces, I would need to use WebLogic 8. This
    is not an option for me at this stage.
    So, I used this approach. When starting the WebLogic server, you can assign ClassPath
    entries to an environment variable called PRE_CLASSPATH. This will prepend the
    class path used by the App Container's JVM with the values in the variable. I
    added the xercesImpl and xalan jars to this entry.
    Because the WebLogic class loaders will always defer to the parent class loader,
    it will check this class path first. So now I can directly instantiate the apach
    implementation classes (typecasting them back to their API interface definitions)
    and use them within the container.
    "Ed Hillmann" <[email protected]> wrote:
    >
    I'm using WebLogic 7.0.2, and I want to use the Apache TransformerFactory
    and DocumentBuilderFactory
    instead of the default weblogic.* classes. I've found the documentation,
    where
    I define an XML Registry as follows (snippet from my config.xml)...
    <Server ListenAddress="####" ListenPort="####" Name="myserver"
    NativeIOEnabled="true" ServerVersion="7.0.2.0"
    StdoutEnabled="true" StdoutSeverityLevel="8"
    StuckThreadMaxTime="14400"
    XMLEntityCache="XMLCacheMBean_myserver" XMLRegistry="CT XML Registry">
    <COM Name="myserver"/>
    <ExecuteQueue Name="default" ThreadCount="15"/>
    <IIOP Name="myserver"/>
    <JTAMigratableTarget Cluster="" Name="myserver" UserPreferredServer="myserver"/>
    <JTARecoveryService Name="myserver"/>
    <KernelDebug Name="myserver"/>
    <Log FileName="myserver/myserver.log" Name="myserver"/>
    <SSL Enabled="true" HostnameVerificationIgnored="true"
    ListenPort="###" Name="myserver"
    ServerCertificateFileName="democert.pem"
    ServerPrivateKeyAlias="demokey" ServerPrivateKeyPassPhrase="{3DES}gAuVwsR68oAlLdIfO1PAtw=="/>
    <ServerDebug Name="myserver"/>
    <ServerStart Name="myserver"/>
    <WebServer DefaultWebApp="DefaultWebApp"
    LogFileName="myserver/access.log" LoggingEnabled="true" Name="myserver"/>
    </Server>
    <XMLEntityCache Name="XMLCacheMBean_myserver"/>
    <XMLRegistry
    DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
    Name="CT XML Registry"
    SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"
    TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"
    WhenToCache="cache-on-reference"/>
    I've played aorund with xercesImpl being in and out of classpaths, etc.
    But no
    matter what I do, calls to TransformerFactory.newInstance creates an
    instance
    of weblogic.xml.jaxp.RegistrySAXTransformerFactory and DocumentBuilderFactory.newInstance()
    creates an instance of weblogic.xml.jaxp.RegistryDocumentBuilderFactory.
    I don't want to use these classes, and supposedly I can control which
    classes
    I will use, but it's not working for me. Has anyone been able to get
    this working?
    Is there anything else that I'm missing?
    Thanks,
    Ed

  • How to access C/C++ functions in Java using existing .dll library

    Hi JNI Guru's,
    I am having well written API in C/C++.This C/C++ files are made into *.dll files.The api are working fine.
    I wan't access the C/C++ api functions in Java., just using System.LoadLibrary("*.dll").Is it possible.I kindly request you to suggest some examples and how to do this.
    Its Urgent !.
    Thanks and Regards,
    V K LAL

    In general you cannot simply access dlls that have already been written. The DLLs called using JNI must conform to JNI calling standards.
    This means you will probably have to write one or more "wrapper" dlls which a) provide the correct JNI interface, and b) call the existing dlls.
    There are some programs around that claim to be able to generate such wrappers. Try a google search for "wrapper", "jni", "generate".
    The JNI tutorial covers creating wrappers.

  • How to access the function in loaded application using swfloader?

    Hi,
    I have a main flex application which has a view stack, panel
    and swfloader in the below hierarchy.
    Flex main app --> Canvas1(Viewstack) --> Panel1 -->
    Swfloader
    Please view
    http://www.probe7.com/flex_ques.gif
    for better understanding.
    I have a function in the loaded application which has to be
    called from a function within the main application. I am not sure
    of the syntax to access the swfloader content which is placed in a
    canvas -> panel.
    I tried this example (
    http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html),
    it works when the swfloader is placed in the main application
    without the viewstack or panel. How can I do this, Is there a way
    to access all the running applictaions, regardless of the
    hierarchy? Any help will be greatly appreciated.
    Also any links for quick reference on various components and
    their access will be helpful.
    Thanks for your time.

    You are probably seeing the deferred instantiation behavior
    which is the default for ViewStack.
    The Swfloader component does not exist until a user navigates
    to the View that contains it.
    Use events to determine when the swfloader content is ready
    for interaction. Here is an example:
    http://www.cflex.net/showFileDetails.cfm?ObjectID=690
    Tracy

  • How to access task payloads in a taskflow using EL by using pageflowscope

    Hi All,
    I have a taskflow with task parameter PurchaseOrderBO which has a string attribute named PurchaseOrderId.
    What code should I write to access PurchaseOrderId in EL? I think these values are automatically stored in pageflowscope variables.
    Regards,
    Sam
    Edited by: Sam on Oct 24, 2011 1:29 AM

    You have to check the input parameters definitions from the task flow definition file to find out how to refer your input parameters.
    For example if the definition is:
    <input-parameter-definition id="1">
    <name id="2">inputBo</name>
    <value id="3">#{pageFlowScope.selectedBo}</value>
    <class id="4">myPackage.PurchaseOrderBO</class>
    </input-parameter-definition>
    and the type of the BO is PurchaseOrderBO, then you will refer your property with pageFlowScope.selectedBo.purchaseOrderId

  • How to access mobile camera and address book using j2me?

    I m using sun java wireless toolkit 2.5 beta and jdk1.5
    how can i access my mobile camera using j2me ?
    please give some example codes and links .....
    reply as soon as possible.!!!!

    Try this. Hope it help
    try
    Player m_player;
    m_player = Manager.createPlayer("capture://video");
    m_player.realize();
    m_vc = (VideoControl)m_player.getControl("VideoControl");
    m_vc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
    m_vc.setDisplayLocation(0, 0);
    m_vc.setDisplayFullScreen(true);
    m_player.start();
    m_vc.setVisible(true);
    catch ( IOException io )
    catch ( MediaException mx)
    Message was edited by:
    RiekeyLee

  • How to access internal photo storage of iPad using Mac

    Hi,
    Usually I will import photos including RAW and jpeg from my camera to iPad, and import photos from iPad to PC later. After finishing importing photos from iPad to PC, I will delete all RAW files from iPAD.
    It is OK when I connect my iPAD to a Windows based PC, I can find out my iPAD in 'My Computer' and access the internal storage.
    But I cannot find out a way to the same on my MacBook Pro.
    Can anybody give me a hint how to delete RAW files in iPAD? Thanks.

    Phone Disk (free until 1 December http://www.macroplant.com/phonedisk/ ) does what you want; so does PhoneView (http://ecamm.com/mac/phoneview/ )

  • How to access Oracle Data Base on Unix using Visual Basic ?

    Hi !
    I want to use visual basic and access the Oracle Data Base on Unix server. How can i do that ? Do i need any software?
    .Prashant

    You need an oracle client installation and setup your TNS names.

  • How to access SMP if I don't use SAP product but only MaxDB?

    Hi All,
    I am sorry if this is answered elsewhere, I am a MaxDB user and our company operates a website with MaxDB as the data engine behind it since 2003. Recently I am evaluating if we can use synchronization to scale out, however I hit road blocks when I research information and most are on SMP which requires a login. How can I get access there ?
    Regards,
    Chris

    Hi Chris,
    the SAP Service Marketplace is for SAP customers only.
    Anyhow, especially for MaxDB there are many information available for public use.
    There's the [WIKI|https://www.sdn.sap.com/irj/scn/wiki?path=/display/maxdb/main] and the [MaxDB Website|http://maxdb.sap.com/] that includes online searchable documentation, as well as trainings materials and presentations from the MaxDB events.
    A good starting point is always the [MaxDB Homepage here in SDN|https://www.sdn.sap.com/irj/sdn/maxdb].
    If you don't find your questions answered with these options, you can always post your question here to the forum.
    Anyhow, what information did you want to look up and only find them in the SAP notes on SMP?
    Especially if you're an "Open Source"-MaxDB user, most of the available documentation is already made accessible via the resources I mentioned.
    regards,
    Lars

  • How to access attribute value from another VO using groovy?

    Hello, I am using JDeveloper 11.1.2.3.0
    I read a lot of information about this but still I am missing something. I am trying to set the value of a bind variable through Groovy expression in my VO. I want this Bind variable
    to have the value from an attribute from another VO. I tried ''adf.object.MyAppModuleImpl.findViewObject('Users1').currentRow.Iduser''
    I am getting "oracle.jbo.expr.JISyntaxError: Variable MyAppModuleImpl not recognized". I tried with 'MyAppModule' only but the result is the same.
    Can anyone help please?
    Thanks

    Check out http://www.oracle.com/technetwork/developer-tools/adf/learnmore/august2011-otn-harvest-457288.pdf Page 18 'Optimized Groovy data access to view objects'
    Timo

  • How To Access Variables In Process Model For Use In Main Sequence

    Hi everyone, in my sequence file I callback the PreUUT sequence file.  I want to be able to use one of the local variables I assign in this callback sequence in my main sequence.  In my main sequence this variable will trigger if I should run some tests or not in my main sequence.  Is this possible?  How would I do this?
    Thanks so much!

    U need to make a parameter in your Callback, parameters are seen outside of sequences, then in PreUUT u will make statement to update parameter, or use the parameter in your callback  directly
    Parameters.MyPara=Locals.MyLoc
    etc

Maybe you are looking for

  • How do I add the Displays icon to the Menu Bar?

    In prior OS on my iMac, I was able to add the Display icon to the Menu Bar, making it a quick fix to adjust the resolution.  That option no longer appears in the Display section of System Preferences.  I am using multiple displays.  Could that make a

  • Vendor Line Item Display (FBL1N)

    Hi, I would like to prepare a new layout for transaction FBL1N (Vendor Line Item Display). I only want to see a summarized view of the open line items per Profit Center. How can I change the summation levels? Thanks. Kind regards, Linda

  • Maintain activity relation

    hello gurus, I have used BAPI_NETWORK_MAINTAIN bapi to maintain network and activity relationship. bellow is the code written by me . START-OF-SELECTION.   PERFORM modify_int_table.   PERFORM write_msg.   LOOP AT it_tab INTO wa_tab.     IF wa_tab-con

  • Access a NetFlix account with Samsung TV, Samsung home theatre system w/netgear wireless router

    I just want to know what is required to wirelessly access a NetFlix account using my Samsung TV & Samsung home (DVD) theatre system with a Netgear wireless router.

  • Import ID Configuration Scenarios and keep the same Business System names

    Hi Guys, Is it possible to transport ID Configuration Scenarios Objects between 2 XI systems and keep the same names for both sender and receiver Business Systems ? That is, to skip the SLD lookup for transport Source and Transport Targets systems ?